eslint-plugin-styled-components-a11y icon indicating copy to clipboard operation
eslint-plugin-styled-components-a11y copied to clipboard

control-has-associated-label is disabled in configs

Open EvgenyOrekhov opened this issue 3 years ago • 1 comments

https://github.com/brendanmorrell/eslint-plugin-styled-components-a11y/blob/612021b4f091c4f929e3753bafa1609f90fba3ca/src/index.js#L62-L63

Is that intentional? Is there some problem with this rule?

EvgenyOrekhov avatar Sep 09 '22 11:09 EvgenyOrekhov

Good question. I either was confusing that with the deprecated label-has-for-rule, or possibly the nesting component of those rule was misfiring in some way with styled components. Can't remember. I can try to look into it later this week. May also just have been an oversight.

brendanmorrell avatar Sep 13 '22 19:09 brendanmorrell

This obviously slipped my mind, but I noticed it again today, and have an answer for you. The rule sets are all intended to mimic those of jsx-a11y, and that is the recommended rule configuration used there.

brendanmorrell avatar Nov 07 '22 00:11 brendanmorrell