-
-
Notifications
You must be signed in to change notification settings - Fork 480
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(linter): add jsx-a11y/no-noninteractive-tabindex rule #8167
feat(linter): add jsx-a11y/no-noninteractive-tabindex rule #8167
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. |
CodSpeed Performance ReportMerging #8167 will not alter performanceComparing Summary
|
crates/oxc_linter/src/rules/jsx_a11y/no_noninteractive_tabindex.rs
Outdated
Show resolved
Hide resolved
I added comments regarding the interactive html roles and elements, because it's convenient to have linked resources to relevant official spec sections, and specifically an explanation regarding the tabpanel role. If this is not desired I can remove. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
This PR implements the jsx-a11y/no-noninteractive-tabindex rule.
I set the default values as the ones that are in the recommended config.
I used this html spec section to source the interactive elements.
The interactive roles came from this article in the MDN docs.