-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
no-unused-variable rule does not appear to work #21
Comments
The no-unused-variable rule has always been problematic, and at one stage the tslint team were going to deprecate it completely. It's now a semantic rule. It thus only works if you use tsconfig.json files to define your project. I tried myself and I did manage to get no-unused-variable to work in the TypeScript Analyzer. Follow the steps below:
There's quite a lot of discussion about this rule on the tslint site, see issues 1481, 2235, 1618, 2933 and there are plenty more issues referenced from those. |
I added "no-unused-variable": true rule to tslint.json, but rule does not appear to raise warnings
https://palantir.github.io/tslint/rules/no-unused-variable/
The text was updated successfully, but these errors were encountered: