SiriusStarr/elm-review-no-single-pattern-case/1.0.0

NOTE: the latest version is 2.1.2

elm-review-no-single-pattern-case

Provides elm-review rules to disallow single-pattern case expressions.

Provided rules

  • NoSinglePatternCase - Reports case...of expressions that match only a single pattern. Such case expressions are either unnecessary or may be written more concisely.

Configuration

module ReviewConfig exposing (config)

import NoSinglePatternCase
import Review.Rule exposing (Rule)

config : List Rule
config =
    [ NoSinglePatternCase.rule
    ]

Try it out

You can try the example configuration above out by running the following command:

elm-review --template SiriusStarr/elm-review-no-single-pattern-case/example