astro/jsx-a11y/role-supports-aria-props
apply
jsx-a11y/role-supports-aria-props
rule to Astro components
This rule is the same rule as jsx-a11y/role-supports-aria-props 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/role-supports-aria-props rule documentation. See original documentation for more details.
Enforce that elements with explicit or implicit roles defined contain only
aria-*
properties supported by thatrole
. Many ARIA attributes (states and properties) can only be used on elements with particular roles. Some elements have implicit roles, such as<a href="#" />
, which will resolve torole="link"
.
📚 Further Reading
🚀 Version
This rule was introduced in eslint-plugin-astro v0.11.0
🔍 Implementation
Taken with ❤️ from eslint-plugin-jsx-a11yEdit this page
Back
← astro/jsx-a11y/role-has-required-aria-props Next Page
astro/jsx-a11y/scope →
← astro/jsx-a11y/role-has-required-aria-props Next Page
astro/jsx-a11y/scope →