Skip to content

Conversation

chiawendt
Copy link
Contributor

Fixes #1422. Fixes #296.

This commit fixes cases like const {a: {b}} = this.props;. Nested destructuring are now marked as used recursively.

Copy link
Member

@ljharb ljharb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add some test cases for where the outer prop name is in props validation, but the inner one is not?

@ljharb ljharb merged commit 7d036cf into jsx-eslint:master Jun 6, 2019
@chiawendt chiawendt deleted the nested-d branch June 6, 2019 09:09
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.

prop-types fails with destructuring prop-types does mark nested destructured props as being used
2 participants