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

Provides an elm-review rule to prohibit redundant usage of `::`

License

Notifications You must be signed in to change notification settings

truqu/elm-review-noredundantcons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
    ]

About

Provides an elm-review rule to prohibit redundant usage of `::`

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages