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 types that should be exposed but are not.NoPrematureLetComputation - Reports let declarations that are computed earlier than needed.import NoExposingEverything
import NoImportingEverything
import NoMissingTypeAnnotation
import NoMissingTypeAnnotationInLetIn
import NoMissingTypeExpose
import NoPrematureLetComputation
import Review.Rule exposing (Rule)
config : List Rule
config =
[ NoExposingEverything.rule
, 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/exampleThanks to @sparksp for writing NoMissingTypeExpose.