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

false positive in no-unused-prop-types #1105

Closed
wants to merge 1 commit into from
Closed

false positive in no-unused-prop-types #1105

wants to merge 1 commit into from

Conversation

mathieudutour
Copy link
Contributor

@mathieudutour mathieudutour commented Mar 8, 2017

I added a test case to show a false positive of the rule no-unused-prop-types.
It happens when using both nextProps and this.props in a lifecycle method.
The prop-types rule does complain (as it should) when not specifying a propType for foo.

I tried to dive into the code and find the difference (and understand why those 2 rules aren't based on the same "parser") but I got lost.

@ljharb ljharb changed the title false positive in no-unsused-prop-types false positive in no-unused-prop-types Mar 9, 2017
@mathieudutour
Copy link
Contributor Author

fixed in #1106

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

2 participants