Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

Latest commit

 

History

History
29 lines (20 loc) · 440 Bytes

README.md

File metadata and controls

29 lines (20 loc) · 440 Bytes

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
    ]