← Back

no-unused-vars warning

Prevents leaving unused imports & vars in code

Examples

❌  Incorrect

const foo = 'bar';

useFoo();

✅  Correct

const foo = 'bar';

useFoo(foo);