mirror of
https://github.com/jfmengels/elm-review.git
synced 2024-11-23 23:05:35 +03:00
39 lines
1.6 KiB
Elm
39 lines
1.6 KiB
Elm
module LintConfig exposing (config)
|
|
|
|
import Lint.Types exposing (LintRule, Severity(..))
|
|
import Lint.Rules.DefaultPatternPosition
|
|
import Lint.Rules.NoConstantCondition
|
|
import Lint.Rules.NoDebug
|
|
import Lint.Rules.NoDuplicateImports
|
|
import Lint.Rules.NoExposingEverything
|
|
import Lint.Rules.NoImportingEverything
|
|
import Lint.Rules.NoNestedLet
|
|
import Lint.Rules.NoUnannotatedFunction
|
|
import Lint.Rules.NoUnusedVariables
|
|
import Lint.Rules.NoUselessIf
|
|
import Lint.Rules.NoUselessPatternMatching
|
|
import Lint.Rules.NoWarningComments
|
|
import Lint.Rules.SimplifyPiping
|
|
import Lint.Rules.SimplifyPropertyAccess
|
|
import Lint.Rules.ElmTest.NoDuplicateTestBodies
|
|
|
|
|
|
config : List ( Severity, LintRule )
|
|
config =
|
|
[ ( Critical, Lint.Rules.DefaultPatternPosition.rule { position = Lint.Rules.DefaultPatternPosition.Last } )
|
|
, ( Critical, Lint.Rules.NoConstantCondition.rule )
|
|
, ( Critical, Lint.Rules.NoDebug.rule )
|
|
, ( Critical, Lint.Rules.NoDuplicateImports.rule )
|
|
, ( Critical, Lint.Rules.NoExposingEverything.rule )
|
|
, ( Critical, Lint.Rules.NoImportingEverything.rule { exceptions = [ "Html", "Ast.Expression", "Ast.Statement" ] } )
|
|
, ( Critical, Lint.Rules.NoNestedLet.rule )
|
|
, ( Critical, Lint.Rules.NoUnannotatedFunction.rule )
|
|
, ( Critical, Lint.Rules.NoUnusedVariables.rule )
|
|
, ( Critical, Lint.Rules.NoUselessIf.rule )
|
|
, ( Critical, Lint.Rules.NoUselessPatternMatching.rule )
|
|
, ( Warning, Lint.Rules.NoWarningComments.rule )
|
|
, ( Critical, Lint.Rules.SimplifyPiping.rule )
|
|
, ( Critical, Lint.Rules.SimplifyPropertyAccess.rule )
|
|
, ( Critical, Lint.Rules.ElmTest.NoDuplicateTestBodies.rule )
|
|
]
|