Skip to content

chore: remove jsx-a11y overrides - #162

Merged
ahmaxed merged 1 commit into
freeCodeCamp:mainfrom
huyenltnguyen:chore/remove-obsolete-eslint-rules
Jun 23, 2021
Merged

ahmaxed merged 1 commit into
freeCodeCamp:mainfrom
huyenltnguyen:chore/remove-obsolete-eslint-rules

Conversation

@huyenltnguyen

Copy link
Copy Markdown
Member

This PR removes the jsx-a11y overrides from .eslintrc-base.json and let ESLint rely on the plugin settings instead.

This change is motivated by a deprecated rule I previously found in #123 (comment), and the config of the control-has-associated-label rule we recently encountered in freeCodeCamp/freeCodeCamp#42236 (comment).

In our configurations, the control-has-associated-label rule is applied to any interactive element, and will show an error if the element is not given an aria-label. However, there are a certain elements that can be exempted from the rule (ref), and the error we see in the issue comment falls into this case.

I think we should trust and rely on the plugin for these rules. Removing the configs will prevent future false positive, and reduce maintenance effort on our side 🙂

@ahmaxed
ahmaxed merged commit ee6cb04 into freeCodeCamp:main Jun 23, 2021
@huyenltnguyen
huyenltnguyen deleted the chore/remove-obsolete-eslint-rules branch June 23, 2021 09:32
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