warning
no-unused-varsPrevents leaving unused imports & vars in code
Examples
❌ Incorrect
const foo = 'bar';
useFoo();
✅ Correct
const foo = 'bar';
useFoo(foo);
Prevents leaving unused imports & vars in code
❌ Incorrect
const foo = 'bar';
useFoo();
✅ Correct
const foo = 'bar';
useFoo(foo);