-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Fixed "PropType is defined but prop is never used react/no-unused-prop-types" #1675
Fixed "PropType is defined but prop is never used react/no-unused-prop-types" #1675
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! For each of the tests you added (that use babel-eslint
), could you add duplicate tests that use the default parser?
Yes, of course. |
Added requested tests. |
@ljharb what about this case:
does it should throw error or not? |
That syntax requires babel-eslint; but we should have a test with the default parser that covers |
@ljharb is it the same
and
? |
yep, those all look the same :-) |
We got
PropType is defined but prop is never used react/no-unused-prop-types
when used createReactClass.Added fix, tests and removed 2 duplicated tests.