@herb-tools/linter 0.8.0 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/herb-lint.js +20 -13
- package/dist/herb-lint.js.map +1 -1
- package/dist/index.cjs +7 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/dist/loader.cjs +11 -4
- package/dist/loader.cjs.map +1 -1
- package/dist/loader.js +11 -4
- package/dist/loader.js.map +1 -1
- package/dist/package.json +7 -7
- package/dist/src/rules/html-head-only-elements.js +6 -1
- package/dist/src/rules/html-head-only-elements.js.map +1 -1
- package/dist/src/rules/rule-utils.js +2 -0
- package/dist/src/rules/rule-utils.js.map +1 -1
- package/dist/types/rules/rule-utils.d.ts +1 -1
- package/dist/types/src/rules/rule-utils.d.ts +1 -1
- package/docs/rules/html-head-only-elements.md +24 -2
- package/package.json +7 -7
- package/src/rules/html-head-only-elements.ts +6 -1
- package/src/rules/rule-utils.ts +3 -1
package/README.md
CHANGED
|
@@ -209,7 +209,7 @@ npx @herb-tools/linter --format=simple --github
|
|
|
209
209
|
|
|
210
210
|
**Example: `--github` (GitHub annotations + detailed format)**
|
|
211
211
|
```
|
|
212
|
-
::error file=template.html.erb,line=3,col=3,title=html-img-require-alt • @herb-tools/linter@0.8.
|
|
212
|
+
::error file=template.html.erb,line=3,col=3,title=html-img-require-alt • @herb-tools/linter@0.8.1::Missing required `alt` attribute on `<img>` tag [html-img-require-alt]%0A%0A%0Atemplate.html.erb:3:3%0A%0A 1 │ <div>%0A 2 │ <span>Test content</span>%0A → 3 │ <img src="test.jpg">%0A │ ~~~%0A 4 │ </div>%0A
|
|
213
213
|
|
|
214
214
|
[error] Missing required `alt` attribute on `<img>` tag [html-img-require-alt]
|
|
215
215
|
|
|
@@ -224,7 +224,7 @@ template.html.erb:3:3
|
|
|
224
224
|
|
|
225
225
|
**Example: `--format=simple --github` (GitHub annotations + simple format)**
|
|
226
226
|
```
|
|
227
|
-
::error file=template.html.erb,line=3,col=3,title=html-img-require-alt • @herb-tools/linter@0.8.
|
|
227
|
+
::error file=template.html.erb,line=3,col=3,title=html-img-require-alt • @herb-tools/linter@0.8.1::Missing required `alt` attribute on `<img>` tag [html-img-require-alt]%0A%0A%0Atemplate.html.erb:3:3%0A%0A 1 │ <div>%0A 2 │ <span>Test content</span>%0A → 3 │ <img src="test.jpg">%0A │ ~~~%0A 4 │ </div>%0A
|
|
228
228
|
|
|
229
229
|
template.html.erb:
|
|
230
230
|
3:3 ✗ Missing required `alt` attribute on `<img>` tag [html-img-require-alt]
|