jsx-eslint/eslint-plugin-react
Vedi su GitHubSome cases should not be triggered **no-unused-state**
Open
#1626 aperta il 25 dic 2017
enhancementhelp wanted
Metriche repository
- Star
- (8630 star)
- Metriche merge PR
- (Nessuna PR mergiata in 30 g)
Descrizione
no-unused-state
state = {
id: null,
name: '',
age: 0,
}
const {
id,
...data
} = this.state;
console.log('data', data);
name and age should not be reported as error [eslint] Unused state field: 'departmentId' (react/no-unused-state).