I\'m using tslint, and got the error.
\'myVariable\' is declared but its value is never read.
I went to the website that documents the rules
Another way to avoid this is to create a get-method for every variable you have, like this:
get variablename():variabletype{return this.variablename;}
Fist question:
Edit the file:tsconfig.json, adding/modifying key "noUnusedLocals": false.
You'll need to restart the server.
Second question:
If it is a tslint error; VS Code shows, in the error message, the rule that's been applied.
Identifier 'doc' is never reassigned; use 'const' instead of 'let'. (prefer-const)
The prefer-const rule in this case.