Since 0.17.0 the ESLint no-unused-vars
rule does not detect variables used in JSX (See details). This rules will find varaibles used in JSX and mark them as used.
This rule has no effect if the no-unused-vars
rule is not enabled.
The following patterns are considered warnings:
var Hello = require('./Hello');
The following patterns are not considered warnings:
var Hello = require('./Hello');
<Hello name="John" />;
If you are not using JSX or if you do not use the no-unused-vars
rule then you can disable this rule.