Skip to content

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.

2 participants