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

Disable nesting checks for jsx-a11y/label-has-for #296

Merged
merged 2 commits into from
Oct 31, 2019

Conversation

evansiroky
Copy link
Contributor

Important note: This PR is for merging directly to master!

Why is this a PR directly to master? Because #295 upgraded a whole bunch of eslint packages to new major versions which introduced thousands of (in my opinion good) linting errors that will eventually make our code more standardized. When we eventually merge dev to master to create the next master release we should bump it up to another major version to reflect this change.

As asked in ibi-group/datatools-ui#508, I went ahead and updated the code to pass all the jsx/a11y tests. However, a certain case of the label-has-associated-control rule requires manually changing your jsx/a11y to recognize custom components. Therefore, I went ahead and just disabled the nesting part of that rule.

Copy link
Contributor

@landonreed landonreed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Only comment is are comments allowed in eslintrc.json? If so, please add a comment explaining this rule/exception. If not, 🤷‍♂️.

@landonreed landonreed assigned evansiroky and unassigned landonreed Oct 29, 2019
@codecov-io
Copy link

codecov-io commented Oct 31, 2019

Codecov Report

Merging #296 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #296   +/-   ##
=======================================
  Coverage   63.78%   63.78%           
=======================================
  Files          19       19           
  Lines         497      497           
  Branches       96       96           
=======================================
  Hits          317      317           
  Misses        156      156           
  Partials       24       24

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 16c7713...bb4fba9. Read the comment docs.

@evansiroky evansiroky merged commit d686bbb into master Oct 31, 2019
@evansiroky evansiroky deleted the jsx-label-stopgap branch October 31, 2019 00:07
@trevorgerhardt
Copy link
Member

🎉 This PR is included in version 5.3.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants