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
no-unused-state
+ arrow function property + destructuring
#1363
Labels
Comments
Fixed with #1411 |
This was referenced Dec 15, 2017
This was referenced Sep 22, 2018
Open
This was referenced Oct 25, 2018
1 task
1 task
1 task
1 task
This was referenced Dec 21, 2018
This was referenced Jan 2, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I found a case where
no-unused-state
raises a false-positive:Warns:
Unused state field: 'state1' (react/no-unused-state)
It seems to be specific of arrow functions as properties and that “two-level” destructuring.
It won't warn with the following:
this.state.state1
const {state1} = this.state;
handleClick() {}
eslint-plugin-react
: v7.2.0eslint
: v4.4.1The text was updated successfully, but these errors were encountered: