-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
Beware of TSLint's no-unused-variable rule #4
Comments
Did someone investigate that already? I've just spent quite a significant amount of time trying to figure out why |
@LogvinovLeon I put a fair bit of time into it and raised this issue. IIRC, that situation might have been fixed, but others were still broken. I gave up on that rule entirely, as it had wasted a lot of my time. Have a look at the number of issues that relate to no-unused-variable before you commit yourself to looking into it. |
For anyone who ends up here due to problems with the |
This rule has caused so many problems for me in the past. See cartant/rxjs-tslint-rules#4
This rule has caused so many problems for me in the past. See cartant/rxjs-tslint-rules#4
I'm creating this issue as a reminder to myself and as a note that might be of use to others.
TSLint's
no-unused-variable
rule still seems to have problems - it has given me grief in the past. If it's enabled, the type information made available torxjs-tslint-rules
seems to change, resulting in the implementation sometimes being unable to determine whether or not an expression is anObservable
. This can lead to false positives with therxjs-no-unused-add
rule, etc.And it's not just
rxjs-tslint-rules
that's affected. Withno-unused-variable
enabled, I've seen false positives for TSLint'sno-unnecessary-type-assertion
rule, too.The text was updated successfully, but these errors were encountered: