elm-review
rules
Review.Pattern.As.forbid
: forbid... as ..variable..
patternsReview.Pattern.Record.forbid
: forbid{ field, ... }
record patterns
Check their module documentation to find out why you might want to enable these rules.
elm-review --template lue-bird/elm-review-pattern/example
will run both rules. Add --rules ...
to select only one.
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
]