-
Notifications
You must be signed in to change notification settings - Fork 887
no-unused-variable is deprecated. #4046
Comments
I'm also not sure why I'm seeing the deprecation warning given that yarn tsc --version
# 2.9.2
yarn tslint --version
# 5.11.0
yarn tslint --project .
no-unused-variable is deprecated. Since TypeScript 2.9. Please use the built-in compiler checks instead.
|
It looks like it was redeprecated in release 5.11.0 as per the changelog: https://github.com/palantir/tslint/blob/master/CHANGELOG.md#warning-deprecations |
The deprecation is intentional. Please see #3919 for details. |
So, now how to get rid of this warning?
ans this the config json
I suggest to add at least a tip of what to do to fix, because in my config this rules is not present. |
The warning comes from |
I removed from tslint.json and .eslintrc.json. Warning is still here. How to 'mute' it? This demonstrate that a warning need additional infos to be usefull to users because not every dev know where it come from. I am one of them. |
Just let your tsling.json like this:
|
I agree with @kachkaev that having a compilation failure is very annoying during active development. Linting is specifically where I want to catch this issue. |
- "no-unused-variables" has been deprecated, see palantir/tslint#4046 for more information.
I want this rule so I can use |
continue discussion in #4100 |
Bug Report
TypeScript code being linted
The "tslint:all" rules give a : "no-unused-variable is deprecated. Since TypeScript 2.9. Please use the built-in compiler checks instead."
with
tslint.json
configuration:The text was updated successfully, but these errors were encountered: