Skip to content
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

[patch] label-has-associated-control: improve error messages #1041

Merged
merged 1 commit into from
Dec 24, 2024

Conversation

michaelfaith
Copy link
Contributor

This change updates the error messages of the label-has-associate-control rule so that each assert type gets an error message with verbiage specific to the assertion.

I wanted to land this before adding support for matching a label's htmlFor attribute with the associated control's id

This change updates the error messages of the label-has-associated-control rule so that each assert type gets an error message with verbiage specific to the assertion.

I wanted to land this before adding support for matching a label's htmlFor attribute with the associated control's id
@ljharb ljharb changed the title feat: improve error messages for label-has-associated-control [patch] label-has-associated-control: improve error messages Dec 24, 2024
@ljharb ljharb merged commit bfb0e9e into jsx-eslint:main Dec 24, 2024
112 checks passed
@michaelfaith michaelfaith deleted the feat/improve-messages branch December 24, 2024 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants