astro/jsx-a11y/no-autofocus
apply
jsx-a11y/no-autofocus
rule to Astro components
This rule is the same rule as jsx-a11y/no-autofocus 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-autofocus rule documentation. See original documentation for more details.
Enforce that autoFocus prop is not used on elements. Autofocusing elements can cause usability issues for sighted and non-sighted users, alike.
📚 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/no-aria-hidden-on-focusable Next Page
astro/jsx-a11y/no-distracting-elements →
← astro/jsx-a11y/no-aria-hidden-on-focusable Next Page
astro/jsx-a11y/no-distracting-elements →