jsx-a11y/prefer-tag-over-role rule to Astro components
This rule is the same rule as jsx-a11y/prefer-tag-over-role rule but it applies to the Astro components.
You must have eslint-plugin-jsx-a11y >=v6.7.0 installed to use this rule.
The following is a partial excerpt from the jsx-a11y/prefer-tag-over-role rule documentation. See original documentation for more details.
Enforces using semantic DOM elements over the ARIA
📚 Further Reading
This rule was introduced in eslint-plugin-astro v0.22.0
Taken with ❤️ from eslint-plugin-jsx-a11y
Edit this page