mirror of
https://github.com/jfmengels/elm-review.git
synced 2024-12-26 11:13:39 +03:00
6f26e13714
The compiler now forbids redundant patterns 👍
23 lines
721 B
Elm
23 lines
721 B
Elm
module LintConfig exposing (config)
|
|
|
|
-- Do not rename the module or the exposed function.
|
|
-- `elm-lint` will look for these.
|
|
|
|
import Lint exposing (Severity(..))
|
|
import Lint.Rule exposing (Rule)
|
|
import Lint.Rule.NoDebug
|
|
import Lint.Rule.NoExtraBooleanComparison
|
|
import Lint.Rule.NoImportingEverything
|
|
import Lint.Rule.NoUnusedTypeConstructors
|
|
import Lint.Rule.NoUnusedVariables
|
|
|
|
|
|
config : List ( Severity, Rule )
|
|
config =
|
|
[ ( Critical, Lint.Rule.NoDebug.rule )
|
|
, ( Critical, Lint.Rule.NoExtraBooleanComparison.rule )
|
|
, ( Critical, Lint.Rule.NoImportingEverything.rule { exceptions = [] } )
|
|
, ( Critical, Lint.Rule.NoUnusedVariables.rule )
|
|
, ( Critical, Lint.Rule.NoUnusedTypeConstructors.rule )
|
|
]
|