sparksp / elm-review-common

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

elm-review-common

Provides common linting rules for elm-review.

Provided rules

Configuration

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
    ]

Try it out

You can try the example configuration above out by running the following command:

elm-review --template jfmengels/elm-review-common/example

Thanks

Thanks to @sparksp for writing NoMissingTypeExpose.

About

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Elm 94.8%Language:JavaScript 5.2%