Skip to content

lue-bird/elm-review-pattern

Repository files navigation

elm-review rules

Check their module documentation to find out why you might want to enable these rules.

try

You can try the example configuration below out using

elm-review --template lue-bird/elm-review-pattern/example

which will run both rules. Add --rules ... to select only one.

configure

module ReviewConfig exposing (config)

import Review.Pattern.As
import Review.Pattern.Record
import Review.Rule exposing (Rule)

config : List Rule
config =
    [ Review.Pattern.Record.forbid
    , Review.Pattern.As.forbid
    ]