Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 `::`
- Host: GitHub
- URL: https://github.com/truqu/elm-review-noredundantcons
- Owner: truqu
- License: bsd-3-clause
- Created: 2020-05-17T10:08:41.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-10-12T10:21:54.000Z (over 2 years ago)
- Last Synced: 2024-05-08T23:40:44.956Z (8 months ago)
- Topics: elm, elm-review, lint
- Language: Elm
- Size: 24.4 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
]
```