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

Define some component mappings for jsx-a11y #36

Merged
merged 2 commits into from
Jul 29, 2022
Merged

Conversation

khiga8
Copy link
Contributor

@khiga8 khiga8 commented Jul 28, 2022

This PR defines the component mapping for eslint-plugin-jsx-a11y plugin to get more linting coverage. We can define more mappings as we see fit but I think it's fine to start small for now since this feature is pretty new in eslint-plugin-jsx-a11y.
These PRC button components are simple and don't support as prop so we are able to use the 1:1 component mapping feature in eslint-plugin-jsx-a11y.

plugin:github/react pulls in eslint-plugin-jsx-a11y.

We discussed previously that it makes sense for primer-react/recommended to have these mappings defined so PRC consumers don't need to define their own.

@changeset-bot
Copy link

changeset-bot bot commented Jul 28, 2022

🦋 Changeset detected

Latest commit: f03cd7d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
eslint-plugin-primer-react Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@khiga8 khiga8 marked this pull request as ready for review July 29, 2022 00:07
Copy link
Contributor

@colebemis colebemis left a comment

Choose a reason for hiding this comment

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

👍

@khiga8 khiga8 merged commit 443499f into main Jul 29, 2022
@primer-css primer-css mentioned this pull request Jul 29, 2022
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