Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/noredink/elm-review-html-lazy
Protects against incorrect usage of Html.Lazy and Html.Styled.Lazy
https://github.com/noredink/elm-review-html-lazy
Last synced: about 2 months ago
JSON representation
Protects against incorrect usage of Html.Lazy and Html.Styled.Lazy
- Host: GitHub
- URL: https://github.com/noredink/elm-review-html-lazy
- Owner: NoRedInk
- License: bsd-3-clause
- Created: 2022-05-18T13:46:56.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-02-04T11:49:18.000Z (almost 2 years ago)
- Last Synced: 2024-05-08T23:24:53.878Z (8 months ago)
- Language: Elm
- Size: 194 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# elm-review-html-lazy
Provides [`elm-review`](https://package.elm-lang.org/packages/jfmengels/elm-review/latest/) rules detect incorrect usage of [`Html.Lazy`](https://package.elm-lang.org/packages/elm/html/latest/Html.Lazy) and [`Html.Styled.Lazy`](https://package.elm-lang.org/packages/rtfeldman/elm-css/latest/Html.Styled.Lazy) .
## Provided rules
- [`UseMemoizedLazyLambda`](https://package.elm-lang.org/packages/noredink/elm-review-html-lazy/1.0.0/UseMemoizedLazyLambda) - Require calling `lazy` at the top level of a point-free function with a lambda expression as the first argument so that the lambda expression is always memoized.
## Configuration
```elm
module ReviewConfig exposing (config)import UseMemoizedLazyLambda
import Review.Rule exposing (Rule)config : List Rule
config =
[ UseMemoizedLazyLambda.rule
]
```## Try it out
You can try the example configuration above out by running the following command:
```bash
elm-review --template noredink/elm-review-html-lazy/example
```