jsx-eslint / eslint-plugin-jsx-a11y

Static AST checker for a11y rules on JSX elements.
MIT License
3.41k stars 635 forks source link

jsx-a11y/control-has-associated-label off in both recommended and strict #874

Closed jmhouzz closed 2 years ago

jmhouzz commented 2 years ago

Hi, in the Rule strictness in different modes section of readme, the control-has-associated-label is listed as error for both recommended and strict mode. But it's actually turned off in both of those configs.

It seems like that's always been the case? https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/commit/56506740f826433bd498be14a7ec1aff94753ace#diff-bfe9874d239014961b1ae4e89875a6155667db834a410aaaa2ebe3cf89820556R62

What's up with that? Is it off due to performance or by a mistake?

image
ljharb commented 2 years ago

You're right; the autogenerated list says everything is an error, and doesn't actually check the configs.

jmhouzz commented 2 years ago

Thank you so much for the clarification and the fix @ljharb!