Skip to content
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] Reports errors on TypeScript modules and namespaces #2346

Closed
boyanio opened this issue Jul 31, 2020 · 1 comment
Closed
Labels
duplicate This issue or pull request already exists package: eslint-plugin Issues related to @typescript-eslint/eslint-plugin

Comments

@boyanio
Copy link

boyanio commented Jul 31, 2020

Repro

{
  "rules": {
    "@typescript-eslint/no-unused-vars": "error"
  }
}
module people {
  export interface Person {
    name: string;
  }
}

Expected Result

No errors

Actual Result

I get an error that people is defined, but not used. This is true for this file, but it is used in other files.

Additional Info

No errors in eslint. I read issue #1856 but I am not sure it is related to it

Versions

package version
@typescript-eslint/eslint-plugin 3.7.1
@typescript-eslint/parser 3.7.1
TypeScript 3.9.2
ESLint 7.5.0
node 12.16.3
npm 6.14.4
@boyanio boyanio added package: eslint-plugin Issues related to @typescript-eslint/eslint-plugin triage Waiting for maintainers to take a look labels Jul 31, 2020
@bradzacher
Copy link
Member

#1856

Is about all issues to do with rules that use scope analysis. Which is why it's a meta issue and so many issues are rolled up into it.

The v4 rc is out on NPM with a new scope analyser. Give it a go.

The npm tag is rc-v4

@bradzacher bradzacher added duplicate This issue or pull request already exists and removed triage Waiting for maintainers to take a look labels Jul 31, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 31, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate This issue or pull request already exists package: eslint-plugin Issues related to @typescript-eslint/eslint-plugin
Projects
None yet
Development

No branches or pull requests

2 participants