Provides elm-review rules to disallow single-pattern case expressions.
NoSinglePatternCase - Reports case...of expressions that match only a single pattern. Such case expressions typically are either unnecessary or may be written more concisely.module ReviewConfig exposing (config)
import NoSinglePatternCase
import Review.Rule exposing (Rule)
config : List Rule
config =
[ NoSinglePatternCase.rule
NoSinglePatternCase.fixInArgument
]You can try the example configuration above out by running the following command:
elm-review --template SiriusStarr/elm-review-no-single-pattern-case/exampleelm-syntax to v7.2.8, fixing issued with lambda ranges.
Unlikely to affect this rule in practice, however.let