Skip to content

Commit

Permalink
0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
perkee committed Feb 6, 2025
1 parent 5c2c2a2 commit 7978548
Show file tree
Hide file tree
Showing 4 changed files with 4,776 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# elm-review-prefer-html-extra

Provides [`elm-review`](https://package.elm-lang.org/packages/jfmengels/elm-review/latest/) rules to REPLACEME.
Provides [`elm-review`](https://package.elm-lang.org/packages/jfmengels/elm-review/latest/) rules to replace `Html.text ""` with
`Html.Extra.nothing`. Make sure you have installed `elm-community/html-extra` for this to work.

## Provided rules

- [`UseHtmlExtraNothing`](https://package.elm-lang.org/packages/perkee/elm-review-prefer-html-extra/1.0.0/UseHtmlExtraNothing) - Reports REPLACEME.
- [`UseHtmlExtraNothing`](https://package.elm-lang.org/packages/perkee/elm-review-prefer-html-extra/1.0.0/UseHtmlExtraNothing) -
Replaces `Html.text ""` with `Html.Extra.nothing`.

## Configuration

Expand Down
35 changes: 35 additions & 0 deletions example/elm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"type": "application",
"source-directories": [
"src"
],
"elm-version": "0.19.1",
"dependencies": {
"direct": {
"elm/core": "1.0.5",
"jfmengels/elm-review": "2.14.1",
"stil4m/elm-syntax": "7.3.8",
"perkee/elm-review-prefer-html-extra": "1.0.0"
},
"indirect": {
"elm/bytes": "1.0.8",
"elm/html": "1.0.0",
"elm/json": "1.1.3",
"elm/parser": "1.1.0",
"elm/project-metadata-utils": "1.0.2",
"elm/random": "1.0.0",
"elm/regex": "1.0.0",
"elm/time": "1.0.0",
"elm/virtual-dom": "1.0.3",
"elm-explorations/test": "2.2.0",
"rtfeldman/elm-hex": "1.0.0",
"stil4m/structured-writer": "1.0.3"
}
},
"test-dependencies": {
"direct": {
"elm-explorations/test": "2.2.0"
},
"indirect": {}
}
}
21 changes: 21 additions & 0 deletions example/src/ReviewConfig.elm
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
module ReviewConfig exposing (config)

{-| Do not rename the ReviewConfig module or the config function, because
`elm-review` will look for these.
To add packages that contain rules, add them to this review project using
`elm install author/packagename`
when inside the directory containing this file.
-}

import UseHtmlExtraNothing
import Review.Rule exposing (Rule)


config : List Rule
config =
[ UseHtmlExtraNothing.rule
]
Loading

0 comments on commit 7978548

Please sign in to comment.