Skip to content

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