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 - Reports let in declarations that do not have a type annotation.NoMissingTypeExpose - Reports when types exposed by functions have not been exposed themselves.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
]Thanks to @sparksp for writing NoMissingTypeExpose.