We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
no-typos is a very nice rule, it helps a lot. But I have one case, where it throws useless error (and I have hundreds of them around my project)
no-typos
const { bool } = PropTypes; class MyComponent extends React.Component { static propTypes = { a: bool.isRequired } }
class MyComponent extends React.Component { static propTypes = { a: PropTypes.bool.isRequired } }
Do you agree, that case 1 shouldn't throw any errors?
The text was updated successfully, but these errors were encountered:
Duplicate of #1389
Sorry, something went wrong.
Yes, I have the same issue. It works inside React.component extended class and doesn't work for stateless components
No branches or pull requests
no-typos
is a very nice rule, it helps a lot. But I have one case, where it throws useless error (and I have hundreds of them around my project)Do you agree, that case 1 shouldn't throw any errors?
The text was updated successfully, but these errors were encountered: