astro/jsx-a11y/aria-unsupported-elements

apply jsx-a11y/aria-unsupported-elements rule to Astro components

This rule is the same rule as jsx-a11y/aria-unsupported-elements 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/aria-unsupported-elements rule documentation. See original documentation for more details.

Certain reserved DOM elements do not support ARIA roles, states and properties. This is often because they are not visible, for example meta, html, script, style. This rule enforces that these DOM elements do not contain the role and/or aria-* props.

📚 Further Reading

🚀 Version

This rule was introduced in eslint-plugin-astro v0.11.0

🔍 Implementation

Taken with ❤️ from eslint-plugin-jsx-a11y

Edit this page