Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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
```