Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lue-bird/elm-review-pattern
elm-review: Forbid as and record patterns
https://github.com/lue-bird/elm-review-pattern
as-pattern elm elm-review pattern record-pattern
Last synced: 6 days ago
JSON representation
elm-review: Forbid as and record patterns
- Host: GitHub
- URL: https://github.com/lue-bird/elm-review-pattern
- Owner: lue-bird
- License: mit
- Created: 2023-09-24T13:05:48.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-21T12:38:48.000Z (3 months ago)
- Last Synced: 2025-01-12T11:52:19.161Z (15 days ago)
- Topics: as-pattern, elm, elm-review, pattern, record-pattern
- Language: Elm
- Homepage: https://github.com/lue-bird/elm-review-pattern-as#elm-review-pattern-as/latest
- Size: 103 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: changes.md
- License: LICENSE
Awesome Lists containing this project
README
[`elm-review`](https://package.elm-lang.org/packages/jfmengels/elm-review/latest/) rules
- [`Review.Pattern.As.forbid`](https://package.elm-lang.org/packages/lue-bird/elm-review-pattern/1.0.3/Review-Pattern-As/#forbid): forbid `... as ..variable..` patterns
- [`Review.Pattern.Record.forbid`](https://package.elm-lang.org/packages/lue-bird/elm-review-pattern/1.0.3/Review-Pattern-Record/#forbid): forbid `{ field, ... }` record patternsCheck their module documentation to find out why you might want to enable these rules.
## try
```bash
elm-review --template lue-bird/elm-review-pattern/example
```
will run both rules. Add `--rules ...` to select only one.## configure
```elm
module ReviewConfig exposing (config)import Review.Pattern.As
import Review.Pattern.Record
import Review.Ruleconfig : List Review.Rule.Rule
config =
[ Review.Pattern.Record.forbid
, Review.Pattern.As.forbid
]
```