Provides common linting rules for elm-review
.
NoConfusingPrefixOperator
- Reports the usage of confusing prefix operators.- 🔍
NoDeprecated
- Reports usages of deprecated functions and types. - 🔧
NoExposingEverything
"Provides automatic fixes" - Forbids exporting everything from a module. NoImportingEverything
- Forbids importing everything from a module.NoMissingTypeAnnotation
- Reports top-level declarations that do not have a type annotation.NoMissingTypeAnnotationInLetIn
- Reportslet in
declarations that do not have a type annotation.- 🔧
NoMissingTypeExpose
"Provides automatic fixes" - Reports types that should be exposed but are not. - 🔧
NoPrematureLetComputation
- Reports let declarations that are computed earlier than needed.
import NoConfusingPrefixOperator
import NoDeprecated
import NoExposingEverything
import NoImport
8000
ingEverything
import NoMissingTypeAnnotation
import NoMissingTypeAnnotationInLetIn
import NoMissingTypeExpose
import NoPrematureLetComputation
import Review.Rule exposing (Rule)
config : List Rule
config =
[ NoExposingEverything.rule
, NoConfusingPrefixOperator.rule
, NoDeprecated.rule NoDeprecated.defaults
, NoImportingEverything.rule []
, NoMissingTypeAnnotation.rule
, NoMissingTypeAnnotationInLetIn.rule
, NoMissingTypeExpose.rule
, NoPrematureLetComputation.rule
]
You can try the example configuration above out by running the following command:
elm-review --template jfmengels/elm-review-common/example
Thanks to @sparksp for writing NoMissingTypeExpose
.