Commit 8f8abba
committed
Add react/jsx-uses-vars option for eslint.
It removes 17 unnecessary eslint warnings.
Since 0.17.0 the ESLint no-unused-vars rule does not detect variables used in JSX
[react/jsx-uses-vars](https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-uses-vars.md)
Like in: (Button.js)
```javascript
let Component = this.props.componentClass || 'a’;
...
return (
<Component ...
```
eslint warning: `Component is defined but never used.`1 parent c6c4108 commit 8f8abba
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
0 commit comments