Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions docs/rules/template-no-nested-interactive.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,13 @@ Examples of **correct** code for this rule:

## Options

| Name | Type | Default | Description |
| --------------------------- | ---------- | ------- | ----------------------------------------------------------- |
| `additionalInteractiveTags` | `string[]` | `[]` | Extra tag names to consider interactive. |
| `ignoredTags` | `string[]` | `[]` | Tag names to skip checking. |
| `ignoreTabindex` | `boolean` | `false` | If `true`, `tabindex` does not make an element interactive. |
| `ignoreUsemap` | `boolean` | `false` | If `true`, `usemap` does not make an element interactive. |
| Name | Type | Default | Description |
| --------------------------- | ---------- | ------- | ------------------------------------------------------------- |
| `additionalInteractiveTags` | `string[]` | `[]` | Extra tag names to consider interactive. |
| `ignoredTags` | `string[]` | `[]` | Tag names to skip checking. |
| `ignoreTabindex` | `boolean` | `false` | If `true`, `tabindex` does not make an element interactive. |
| `ignoreUsemap` | `boolean` | `false` | If `true`, `usemap` does not make an element interactive. |
| `ignoreUsemapAttribute` | `boolean` | `false` | Alias for `ignoreUsemap` (original ember-template-lint name). |

## References

Expand Down
3 changes: 2 additions & 1 deletion lib/rules/template-no-nested-interactive.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ module.exports = {
ignoredTags: { type: 'array', items: { type: 'string' } },
ignoreTabindex: { type: 'boolean' },
ignoreUsemap: { type: 'boolean' },
ignoreUsemapAttribute: { type: 'boolean' },
},
additionalProperties: false,
},
Expand All @@ -99,7 +100,7 @@ module.exports = {
const additionalInteractiveTags = new Set(options.additionalInteractiveTags || []);
const ignoredTags = new Set(options.ignoredTags || []);
const ignoreTabindex = options.ignoreTabindex || false;
const ignoreUsemap = options.ignoreUsemap || false;
const ignoreUsemap = options.ignoreUsemap || options.ignoreUsemapAttribute || false;

const interactiveStack = [];
// Stack for saving/restoring label interactiveChildCount across GlimmerBlock boundaries
Expand Down
Loading