We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following code triggers react/button-has-type.
react/button-has-type
document.createElement('button')
The culprit is in this function: https://github.com/yannickcr/eslint-plugin-react/blob/master/lib/rules/button-has-type.js#L15..L20
This should also check for the pragma setting.
pragma
The text was updated successfully, but these errors were encountered:
It should definitely check for the pragma setting, altho I’m not sure why you’d ever be creating DOM elements in a React application. Thanks!
Sorry, something went wrong.
Account for pragma in button-has-type
c3452db
Resolves jsx-eslint#1847
6f7cf87
No branches or pull requests
The following code triggers
react/button-has-type
.The culprit is in this function: https://github.com/yannickcr/eslint-plugin-react/blob/master/lib/rules/button-has-type.js#L15..L20
This should also check for the
pragma
setting.The text was updated successfully, but these errors were encountered: