Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/truqu/elm-review-noredundantcons

Provides an elm-review rule to prohibit redundant usage of `::`
https://github.com/truqu/elm-review-noredundantcons

elm elm-review lint

Last synced: about 1 month ago
JSON representation

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

Awesome Lists containing this project

README

        

# elm-review-noredundantcons

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

This will flag expressions like these:

```elm
foo :: [ bar ]
```

And propose rewriting it like so:

```elm
[ foo, bar ]
```

## Configuration

```elm
module ReviewConfig exposing (config)

import NoRedundantCons
import Review.Rule exposing (Rule)

config : List Rule
config =
[ NoRedundantCons.rule
]
```