Skip to content

Protects against incorrect usage of Html.Lazy and Html.Styled.Lazy

License

Notifications You must be signed in to change notification settings

NoRedInk/elm-review-html-lazy

Repository files navigation

elm-review-html-lazy

Provides elm-review rules detect incorrect usage of Html.Lazy and Html.Styled.Lazy .

Provided rules

  • 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

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:

elm-review --template noredink/elm-review-html-lazy/example

About

Protects against incorrect usage of Html.Lazy and Html.Styled.Lazy

Resources

License

Stars

Watchers

Forks

Packages

No packages published