-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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-vars deprecated, noUnusedLocals ignored #1954
Comments
BTW, |
You can set it as a child of {
"compilerOptions": {
"module": "esnext",
"noUnusedLocals": true,
"noUnusedParameters": true,
"strict": true,
"target": "es2017"
}
} |
@JoshuaKGoldberg Thanks for pointing out. If I remember correctly, we cannot override such rules in TypeScript like |
To restate the problem:
I finally found the solution. In
The change was documented here: 78c9d36 but I only find that now. :-) |
Steps to reproduce
Current Behavior
Output:
Expected Behavior
Tests pass without error.
Towards a solution
On the web I read that, with
no-unused-vars
now deprecated in tslint, we are supposed to addnoUnusedLocals
totsconfig.json
instead:But that doesn't work either!
Quick fix
What
doesdid work, was if I changed thetsconfig.json
as above, and I also changed how linting is called in ourpackage.json
:^^ Hopefully this can help anyone who is stuck with this.
But notably when I try to do closer to what
lb-tslint
does:then the error comes back again!
So I'm guessing this is actually a bug with
tslint
? Anyway I will leave this issue here for anyone who is having trouble right now.The text was updated successfully, but these errors were encountered: