Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mthadley/elm-review-unit
https://github.com/mthadley/elm-review-unit
elm elm-review
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/mthadley/elm-review-unit
- Owner: mthadley
- License: bsd-3-clause
- Created: 2021-06-26T18:56:34.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-21T02:18:09.000Z (about 2 years ago)
- Last Synced: 2024-10-12T17:41:15.210Z (2 months ago)
- Topics: elm, elm-review
- Language: Elm
- Homepage: https://package.elm-lang.org/packages/mthadley/elm-review-unit/latest/
- Size: 81.1 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# elm-review-unit
Provides [`elm-review`](https://package.elm-lang.org/packages/jfmengels/elm-review/latest/) rules to usage of Elm's "Unit" type, also known as `()`.
## Provided rules
- [🔧 `NoUnmatchedUnit`](https://package.elm-lang.org/packages/mthadley/elm-review-unit/2.0.2/NoUnmatchedUnit "Provides automatic fixes") - Reports when a `()` is ignored (`_`) instead of being matched.
## Configuration
```elm
module ReviewConfig exposing (config)import NoUnmatchedUnit
import Review.Rule exposing (Rule)config : List Rule
config =
[ NoUnmatchedUnit.rule
]
```## Try it out
You can try the example configuration above out by running the following command:
```bash
elm-review --template mthadley/elm-review-unit/example
```