Skip to content

Commit eff76dc

Browse files
committed
Rename rule to match template-lint
1 parent 8ead115 commit eff76dc

4 files changed

Lines changed: 22 additions & 22 deletions

File tree

README.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -178,23 +178,23 @@ rules in templates can be disabled with eslint directives with mustache or html
178178

179179
### Accessibility
180180

181-
| Name                                  | Description | 💼 | 🔧 | 💡 |
182-
| :------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------- | :- | :- | :- |
183-
| [template-link-href-attributes](docs/rules/template-link-href-attributes.md) | require href attribute on link elements | | | |
184-
| [template-no-abstract-roles](docs/rules/template-no-abstract-roles.md) | disallow abstract ARIA roles | | | |
185-
| [template-no-accesskey-attribute](docs/rules/template-no-accesskey-attribute.md) | disallow accesskey attribute | | 🔧 | |
186-
| [template-no-aria-hidden-body](docs/rules/template-no-aria-hidden-body.md) | disallow aria-hidden on body element | | 🔧 | |
187-
| [template-no-aria-unsupported-elements](docs/rules/template-no-aria-unsupported-elements.md) | disallow ARIA roles, states, and properties on elements that do not support them | | | |
188-
| [template-no-autofocus-attribute](docs/rules/template-no-autofocus-attribute.md) | disallow autofocus attribute | | 🔧 | |
189-
| [template-no-down-event-binding](docs/rules/template-no-down-event-binding.md) | disallow pointer down event bindings | | | |
190-
| [template-no-empty-headings](docs/rules/template-no-empty-headings.md) | disallow empty heading elements | | | |
191-
| [template-no-heading-inside-button](docs/rules/template-no-heading-inside-button.md) | disallow heading elements inside button elements | | | |
192-
| [template-no-invalid-aria-attributes](docs/rules/template-no-invalid-aria-attributes.md) | disallow invalid aria-* attributes | | | |
193-
| [template-no-invalid-interactive](docs/rules/template-no-invalid-interactive.md) | disallow non-interactive elements with interactive handlers | | | |
194-
| [template-no-invalid-link-title](docs/rules/template-no-invalid-link-title.md) | disallow invalid title attributes on link elements | | | |
195-
| [template-no-invalid-role](docs/rules/template-no-invalid-role.md) | disallow invalid ARIA roles | | | |
196-
| [template-no-nested-interactive](docs/rules/template-no-nested-interactive.md) | disallow nested interactive elements | | | |
197-
| [template-no-nested-landmark](docs/rules/template-no-nested-landmark.md) | disallow nested landmark elements | | | |
181+
| Name                                   | Description | 💼 | 🔧 | 💡 |
182+
| :--------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------- | :- | :- | :- |
183+
| [template-link-href-attributes](docs/rules/template-link-href-attributes.md) | require href attribute on link elements | | | |
184+
| [template-no-abstract-roles](docs/rules/template-no-abstract-roles.md) | disallow abstract ARIA roles | | | |
185+
| [template-no-accesskey-attribute](docs/rules/template-no-accesskey-attribute.md) | disallow accesskey attribute | | 🔧 | |
186+
| [template-no-aria-hidden-body](docs/rules/template-no-aria-hidden-body.md) | disallow aria-hidden on body element | | 🔧 | |
187+
| [template-no-aria-unsupported-elements](docs/rules/template-no-aria-unsupported-elements.md) | disallow ARIA roles, states, and properties on elements that do not support them | | | |
188+
| [template-no-autofocus-attribute](docs/rules/template-no-autofocus-attribute.md) | disallow autofocus attribute | | 🔧 | |
189+
| [template-no-empty-headings](docs/rules/template-no-empty-headings.md) | disallow empty heading elements | | | |
190+
| [template-no-heading-inside-button](docs/rules/template-no-heading-inside-button.md) | disallow heading elements inside button elements | | | |
191+
| [template-no-invalid-aria-attributes](docs/rules/template-no-invalid-aria-attributes.md) | disallow invalid aria-* attributes | | | |
192+
| [template-no-invalid-interactive](docs/rules/template-no-invalid-interactive.md) | disallow non-interactive elements with interactive handlers | | | |
193+
| [template-no-invalid-link-title](docs/rules/template-no-invalid-link-title.md) | disallow invalid title attributes on link elements | | | |
194+
| [template-no-invalid-role](docs/rules/template-no-invalid-role.md) | disallow invalid ARIA roles | | | |
195+
| [template-no-nested-interactive](docs/rules/template-no-nested-interactive.md) | disallow nested interactive elements | | | |
196+
| [template-no-nested-landmark](docs/rules/template-no-nested-landmark.md) | disallow nested landmark elements | | | |
197+
| [template-no-pointer-down-event-binding](docs/rules/template-no-pointer-down-event-binding.md) | disallow pointer down event bindings | | | |
198198

199199
### Best Practices
200200

docs/rules/template-no-down-event-binding.md renamed to docs/rules/template-no-pointer-down-event-binding.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ember/template-no-down-event-binding
1+
# ember/template-no-pointer-down-event-binding
22

33
<!-- end auto-generated rule header -->
44

lib/rules/template-no-down-event-binding.js renamed to lib/rules/template-no-pointer-down-event-binding.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module.exports = {
55
docs: {
66
description: 'disallow pointer down event bindings',
77
category: 'Accessibility',
8-
url: 'https://github.com/ember-cli/eslint-plugin-ember/tree/master/docs/rules/template-no-down-event-binding.md',
8+
url: 'https://github.com/ember-cli/eslint-plugin-ember/tree/master/docs/rules/template-no-pointer-down-event-binding.md',
99
templateMode: 'both',
1010
},
1111
fixable: null,

tests/lib/rules/template-no-down-event-binding.js renamed to tests/lib/rules/template-no-pointer-down-event-binding.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Requirements
33
//------------------------------------------------------------------------------
44

5-
const rule = require('../../../lib/rules/template-no-down-event-binding');
5+
const rule = require('../../../lib/rules/template-no-pointer-down-event-binding');
66
const RuleTester = require('eslint').RuleTester;
77

88
//------------------------------------------------------------------------------
@@ -14,7 +14,7 @@ const ruleTester = new RuleTester({
1414
parserOptions: { ecmaVersion: 2022, sourceType: 'module' },
1515
});
1616

17-
ruleTester.run('template-no-down-event-binding', rule, {
17+
ruleTester.run('template-no-pointer-down-event-binding', rule, {
1818
valid: [
1919
'<template><button {{on "click" this.handleClick}}>Click</button></template>',
2020
'<template><button {{on "keydown" this.handleKeyDown}}>Press</button></template>',
@@ -88,7 +88,7 @@ const hbsRuleTester = new RuleTester({
8888
parserOptions: { ecmaVersion: 2022, sourceType: 'module' },
8989
});
9090

91-
hbsRuleTester.run('template-no-down-event-binding', rule, {
91+
hbsRuleTester.run('template-no-pointer-down-event-binding', rule, {
9292
valid: [
9393
'<div {{on "mouseup" this.doSomething}}></div>',
9494
'<div {{action this.doSomething on="mouseup"}}></div>',

0 commit comments

Comments
 (0)