Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
Closed as not planned
Description
Before You File a Bug Report Please Confirm You Have Done The Following...
- I have tried restarting my IDE and the issue persists.
- I have updated to the latest version of the packages.
- I havesearched for related issues and found none that matched my issue.
- I haveread the FAQ and my problem is not listed.
Playground Link
not-applicable
Repro Code
// a.tsexporttypeFoo={bar:42}
// b.tsimport{Foo}from'./a.js'/** *@see {@link Foo.bar} */exportfunctionexample(){}
ESLint Config
module.exports={parser:"@typescript-eslint/parser",rules:{"@typescript-eslint/no-unused-vars":["error"],},};
tsconfig
{"compilerOptions": { }}
Expected Result
Foo
is used in JsDoc, and correctly references the original definition in vs-code (alt + click goes to the definition)
Actual Result
@typescript-eslint/no-unused-vars considers this is an unused var, while typescript does not.
Additional Info
Note that if the reference is removed from the JSdoc, typescript starts complaining about an unused var as well.