This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 889
no-unused-variable doesn't properly handle "declare" vars #190
Labels
Comments
+1 |
1 similar comment
+1 |
any updates here? |
we'll take a look at it as part of the 1.5 migration, should be straightforward. |
DickvdBrink
added a commit
to DickvdBrink/tslint
that referenced
this issue
May 13, 2015
DickvdBrink
added a commit
to DickvdBrink/tslint
that referenced
this issue
May 14, 2015
It feels a little weird to me to not use a declared variable; I could see a case for this being an optional part of the Is this because you're declaring a variable in one source file and using it in another? Or are you running tslint on your typings files? In the latter case, we'd advise only running tslint on source code. |
We declare in one file and then reference it in others. That way when we refactor the name of injected global compilation fails in all files that were not updated. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
For example, this should not be flagged as unused:
The text was updated successfully, but these errors were encountered: