astro/jsx-a11y/no-redundant-roles
apply
jsx-a11y/no-redundant-roles
rule to Astro components
This rule is the same rule as jsx-a11y/no-redundant-roles 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-redundant-roles rule documentation. See original documentation for more details.
Some HTML elements have native semantics that are implemented by the browser. This includes default/implicit ARIA roles. Setting an ARIA role that matches its default/implicit role is redundant since it is already set by the browser.
📚 Further Reading
🚀 Version
This rule was introduced in eslint-plugin-astro v0.11.0
🔍 Implementation
Taken with ❤️ from eslint-plugin-jsx-a11yEdit this page