Skip to content

Commit 2940d49

Browse files
Update test snapshots for 6 new template rules
Co-authored-by: NullVoxPopuli <[email protected]>
1 parent 8d97621 commit 2940d49

5 files changed

Lines changed: 28 additions & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ rules in templates can be disabled with eslint directives with mustache or html
182182
| [template-no-accesskey-attribute](docs/rules/template-no-accesskey-attribute.md) | disallow accesskey attribute | ![gjs logo](/docs/svgs/gjs.svg) ![gts logo](/docs/svgs/gts.svg) | 🔧 | |
183183
| [template-no-aria-hidden-body](docs/rules/template-no-aria-hidden-body.md) | disallow aria-hidden on body element | ![gjs logo](/docs/svgs/gjs.svg) ![gts logo](/docs/svgs/gts.svg) | 🔧 | |
184184
| [template-no-autofocus-attribute](docs/rules/template-no-autofocus-attribute.md) | disallow autofocus attribute | ![gjs logo](/docs/svgs/gjs.svg) ![gts logo](/docs/svgs/gts.svg) | 🔧 | |
185+
| [template-no-empty-headings](docs/rules/template-no-empty-headings.md) | disallow empty heading elements | ![gjs logo](/docs/svgs/gjs.svg) ![gts logo](/docs/svgs/gts.svg) | | |
185186
| [template-no-heading-inside-button](docs/rules/template-no-heading-inside-button.md) | disallow heading elements inside button elements | ![gjs logo](/docs/svgs/gjs.svg) ![gts logo](/docs/svgs/gts.svg) | | |
186187
| [template-no-positive-tabindex](docs/rules/template-no-positive-tabindex.md) | disallow positive tabindex values | ![gjs logo](/docs/svgs/gjs.svg) ![gts logo](/docs/svgs/gts.svg) | | |
187188
| [template-require-iframe-title](docs/rules/template-require-iframe-title.md) | require iframe elements to have a title attribute | ![gjs logo](/docs/svgs/gjs.svg) ![gts logo](/docs/svgs/gts.svg) | | |
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# ember/template-no-empty-headings
2+
3+
💼 This rule is enabled in the following [configs](https://github.com/ember-cli/eslint-plugin-ember#-configurations): ![gjs logo](/docs/svgs/gjs.svg) `recommended-gjs`, ![gts logo](/docs/svgs/gts.svg) `recommended-gts`.
4+
5+
<!-- end auto-generated rule header -->
6+
7+
## Examples
8+
9+
See ember-template-lint documentation.
10+
11+
## References
12+
13+
- [ember-template-lint no-empty-headings](https://github.com/ember-template-lint/ember-template-lint/blob/master/docs/rule/no-empty-headings.md)

lib/recommended-rules-gjs.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ module.exports = {
1818
"ember/template-no-debugger": "error",
1919
"ember/template-no-duplicate-attributes": "error",
2020
"ember/template-no-duplicate-id": "error",
21+
"ember/template-no-empty-headings": "error",
2122
"ember/template-no-heading-inside-button": "error",
2223
"ember/template-no-input-block": "error",
2324
"ember/template-no-input-tagname": "error",

lib/recommended-rules-gts.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ module.exports = {
1818
"ember/template-no-debugger": "error",
1919
"ember/template-no-duplicate-attributes": "error",
2020
"ember/template-no-duplicate-id": "error",
21+
"ember/template-no-empty-headings": "error",
2122
"ember/template-no-heading-inside-button": "error",
2223
"ember/template-no-input-block": "error",
2324
"ember/template-no-input-tagname": "error",

tests/__snapshots__/recommended.js.snap

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,13 @@ exports[`recommended rules > gjs config has the right list 1`] = `
1010
"template-no-action",
1111
"template-no-args-paths",
1212
"template-no-aria-hidden-body",
13+
"template-no-attrs-in-components",
1314
"template-no-autofocus-attribute",
1415
"template-no-debugger",
1516
"template-no-duplicate-attributes",
1617
"template-no-duplicate-id",
18+
"template-no-empty-headings",
19+
"template-no-heading-inside-button",
1720
"template-no-input-block",
1821
"template-no-input-tagname",
1922
"template-no-let-reference",
@@ -28,6 +31,9 @@ exports[`recommended rules > gjs config has the right list 1`] = `
2831
"template-no-valueless-arguments",
2932
"template-no-with",
3033
"template-require-button-type",
34+
"template-require-iframe-title",
35+
"template-require-valid-alt-text",
36+
"template-splat-attributes-only",
3137
]
3238
`;
3339

@@ -41,10 +47,13 @@ exports[`recommended rules > gts config has the right list 1`] = `
4147
"template-no-action",
4248
"template-no-args-paths",
4349
"template-no-aria-hidden-body",
50+
"template-no-attrs-in-components",
4451
"template-no-autofocus-attribute",
4552
"template-no-debugger",
4653
"template-no-duplicate-attributes",
4754
"template-no-duplicate-id",
55+
"template-no-empty-headings",
56+
"template-no-heading-inside-button",
4857
"template-no-input-block",
4958
"template-no-input-tagname",
5059
"template-no-let-reference",
@@ -59,6 +68,9 @@ exports[`recommended rules > gts config has the right list 1`] = `
5968
"template-no-valueless-arguments",
6069
"template-no-with",
6170
"template-require-button-type",
71+
"template-require-iframe-title",
72+
"template-require-valid-alt-text",
73+
"template-splat-attributes-only",
6274
]
6375
`;
6476

0 commit comments

Comments
 (0)