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

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

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

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