Provides common linting rules for elm-review
.
NoExposingEverything
- 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
- Reports types that should be exposed but are not.
import NoExposingEverything
import NoImportingEverything
import NoMissingTypeAnnotation
import NoMissingTypeAnnotationInLetIn
import NoMissingTypeExpose
import Review.Rule exposing (Rule)
config : List Rule
config =
[ NoExposingEverything.rule
, NoImportingEverything.rule []
, NoMissingTypeAnnotation.rule
, NoMissingTypeAnnotationInLetIn.rule
, NoMissingTypeExpose.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
.