truqu/elm-review-noredundantcons - version: 1.0.1

for more information visit the package's GitHub page

Package contains the following modules:

elm-review-noredundantcons

Helps with preventing redundant usage of the cons operator, namely consing to a literal list.

This will flag expressions like these:

foo :: [ bar ]

And propose rewriting it like so:

[ foo, bar ]

Configuration

module ReviewConfig exposing (config)

import NoRedundantCons
import Review.Rule exposing (Rule)

config : List Rule
config =
    [ NoRedundantCons.rule
    ]