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 887
no-unnecessary-qualifier reports qualifier as being in scope when it is not #2413
Labels
Comments
4 tasks
I have a similar issue but in a slightly different context and the latest version of tslint (v5.10.0) is reporting the error:
|
Same invalid error with enum and namespace here. |
The original code ( |
Still having this issue with |
💀 It's time! 💀TSLint is deprecated and no longer accepting pull requests other than security fixes. See #4534. ☠️ 👋 It was a pleasure open sourcing with you! |
🤖 Beep boop! 👉 TSLint is deprecated 👈 (#4534) and you should switch to typescript-eslint! 🤖 🔒 This issue is being locked to prevent further unnecessary discussions. Thank you! 👋 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Bug Report
TypeScript code being linted
with
tslint.json
configuration:Actual behavior
tslint reports:
bar.ts[3, 27]: Qualifier is unnecessary since 'Foo' is in scope.
Expected behavior
No warning should be emitted, as Foo is not in scope and removing the qualifier will produce code that will not compile.
Note that the two namespaces must be in separate files and the first namespaces declared in those files. Placing a namespace above either Foo or Bar makes the warning go away.
tslint command: tslint -c tslint.json --type-check --project tsconfig.json
tsconfig.json:
The text was updated successfully, but these errors were encountered: