sparksp / elm-review-rules-to-avoid

Provides some elm-analyse rules for elm-review that we don't want to publish. These are written as an exercise to confirm they're possible.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

elm-review-rules-to-avoid

Provides some elm-analyse rules for elm-review that we don't want to publish. These are written to demonstrate that just because you can write a rule doesn't mean you should!

Provided rules

Configuration

module ReviewConfig exposing (config)

import NoFunctionInLet
import NoNothingToNothing
import NoSingleFieldRecord
import NoSingleLineRecords
import Review.Rule exposing (Rule)

config : List Rule
config =
    [ NoFunctionInLet.rule
    , NoNothingToNothing.rule
    , NoSingleFieldRecord.rule
    , NoSingleLineRecords.rule
    ]

Try it out

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

elm-review --template sparksp/elm-review-rules-to-avoid/preview

About

Provides some elm-analyse rules for elm-review that we don't want to publish. These are written as an exercise to confirm they're possible.

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


Languages

Language:Elm 96.9%Language:JavaScript 3.1%