-
-
Notifications
You must be signed in to change notification settings - Fork 496
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/jsx-a11y): add label-has-associated-control
#5163
feat(linter/jsx-a11y): add label-has-associated-control
#5163
Conversation
Your org has enabled the Graphite merge queue for merging into mainAdd the label “merge” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix. You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. |
CodSpeed Performance ReportMerging #5163 will not alter performanceComparing Summary
|
From a cursory glance, this looks awesome! Thanks for the PR 😄 With one so large, I'd like to get a few other pairs of eyes on this before merging. |
crates/oxc_linter/src/rules/jsx_a11y/label_has_associated_control.rs
Outdated
Show resolved
Hide resolved
crates/oxc_linter/src/rules/jsx_a11y/label_has_associated_control.rs
Outdated
Show resolved
Hide resolved
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.
LGTM too, thank you!
Merge activity
|
label-has-associated-control
## [0.9.1] - 2024-08-29 ### Features - 6633972 linter: Add fixer for `no-empty` (#5276) (camc314) - a58e448 linter/eslint: Add fixer to `no-var` (#5144) (camc314) - a6e9769 linter/jsx-a11y: Add `label-has-associated-control` (#5163) (Billy Levin) - c8e8532 linter/unicorn: Add fixer to `throw-new-error` (#5275) (camc314) - 7ccde4b linter/unicorn: Add fixer to `prefer-date-now` (#5147) (camc314) ### Bug Fixes - 76e86f8 linter: Eslint-plugin-unicorn prefer-spread wrong linter suggestion on variables of type string (#5265) (Arian94) - b39544e linter/jest: Fixer for `prefer-jest-mocked` creates invalid LHS expressions (#5243) (camc314) - 9953fa5 linter/no-null: Incorrect fixer for `NullLiteral` within `ReturnStatement` (#5247) (Dunqing) - 318479e linter/no-unused-vars: Mark the class/function in the new expression as used (#5306) (magic-akari) ### Refactor - fa1d460 linter: Clean up Fixer and Message (#5308) (DonIsaac) Co-authored-by: Boshen <[email protected]>
Implements the jsx-a11y/label-has-associated-control rule.
This implementation differs slightly from the current version of the ESLint plugin, but I've opened PRs for these differences which I assume will be released in the next version:
label-has-associated-control
: ignore undetermined label text jsx-eslint/eslint-plugin-jsx-a11y#1004label-has-associated-control
: add additional error message jsx-eslint/eslint-plugin-jsx-a11y#1007Milestone reference: #1141