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

feat(eslint): enable button-has-type rule #6612

Merged

Conversation

joshblack
Copy link
Contributor

Add rule for button-has-type to make sure we explicitly annotate buttons with a type. This catches a frequent bug we have for buttons where they don't have type="button"

Changelog

New

  • Enable react/button-has-type rule

Changed

  • Update files to pass eslint rule by adding explicit type="button" to buttons

Removed

@joshblack joshblack requested a review from a team as a code owner August 4, 2020 17:57
@netlify
Copy link

netlify bot commented Aug 4, 2020

Deploy preview for carbon-elements ready!

Built with commit 782dd2a

https://deploy-preview-6612--carbon-elements.netlify.app

@netlify
Copy link

netlify bot commented Aug 4, 2020

Deploy preview for carbon-components-react ready!

Built with commit 782dd2a

https://deploy-preview-6612--carbon-components-react.netlify.app

Copy link
Member

@emyarod emyarod 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 to me, pending snapshot updates

@joshblack
Copy link
Contributor Author

Just updated snapshots, will check back in when the build finishes 👀

@joshblack joshblack requested a review from emyarod August 5, 2020 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants