vscode
vscode copied to clipboard
Better detection of unused variables
I don't know for the other languages, but in Javascript, if I write :
var myVar = 0;
myVar = 1;
// Do nothing more with myVar...
myVar is not considered as unused, but it should be.
you can do it with a lint tool such as eslint
@meritozh That's a suggestion. I use JSLint.
The new JS infrastructure Salsa will no longer report unused variables and defers this to a linter like JSLint, ESLint. For both ESLint and JSHint there are extensions for Code available.
Ok, that's clearer.