Provides elm-review rules detect incorrect usage of Html.Lazy and Html.Styled.Lazy .
UseMemoizedLazyLambda- Require callinglazyat the top level of a point-free function with a lambda expression as the first argument so that the lambda expression is always memoized.
module ReviewConfig exposing (config)
import UseMemoizedLazyLambda
import Review.Rule exposing (Rule)
config : List Rule
config =
[ UseMemoizedLazyLambda.rule
]You can try the example configuration above out by running the following command:
elm-review --template noredink/elm-review-html-lazy/example