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

fix: ignore rule exceptions #650

Merged
merged 1 commit into from
Jan 14, 2020
Merged

Conversation

vpicone
Copy link
Contributor

@vpicone vpicone commented Jan 14, 2020

Closes #649

Gatsby recently turned on eslint-plugiun-jsx-a11y for Gatsby projects (gatsbyjs/gatsby#19946) this means that the issues will show up in the dev console. This is awesome but some of their config is overzealous.

In particular, it fails to include the recommended exceptions to the no-noninteractive-element-to-interactive-role.

The two failures we see in the error message would be ignored with this rule. Both of the w3 examples used to build this component would fail this check:

  1. Menu

  2. Tabs

@vercel
Copy link

vercel bot commented Jan 14, 2020

This pull request is being automatically deployed with ZEIT Now (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://zeit.co/carbon-design-system/gatsby-theme-carbon/kprgj2wkm
✅ Preview: https://gatsby-theme-carbon-git-fork-vpicone-eslint-fix.carbon-design-system.now.sh

@vpicone vpicone merged commit 40baa1a into carbon-design-system:master Jan 14, 2020
@vpicone vpicone deleted the eslint-fix branch January 14, 2020 18:17
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.

eslint warnings coming from Gatsby
1 participant