jsx-a11y/no-interactive-element-to-noninteractive-rolerule to Astro components
This rule is the same rule as jsx-a11y/no-interactive-element-to-noninteractive-role rule but it applies to the Astro components.
You must have eslint-plugin-jsx-a11y installed to use this rule.
The following is a partial excerpt from the jsx-a11y/no-interactive-element-to-noninteractive-role rule documentation. See original documentation for more details.
Interactive HTML elements indicate controls in the user interface. Interactive elements include
Non-interactive HTML elements and non-interactive ARIA roles indicate content and containers in the user interface. Non-interactive elements include
WAI-ARIA roles should not be used to convert an interactive element to a non-interactive element. Non-interactive ARIA roles include
📚 Further Reading
This rule was introduced in eslint-plugin-astro v0.11.0
🔍 Implementationfrom eslint-plugin-jsx-a11y
Edit this page