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 have searched for related issues and found none that matched my issue.
- I have read the FAQ and my problem is not listed.
Playground Link
Repro Code
type Potato = string
/**
* This is an informative JSDoc comment, with a reference to {@link Potato}, a
* type that is actually not used by TypeScript code.
*/
export const foo = (): string => 'bar'
ESLint Config
module.exports = {
"rules": {
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["error"]
}
}
tsconfig
Expected Result
The type Potato
is used in JSDoc. I wouldn't expect eslint rules to consider it "unused".
Actual Result
'Potato' is defined but never used. 1:6 - 1:12
Additional Info
No response
Versions
package | version |
---|---|
@typescript-eslint/eslint-plugin |
5.37.0 |
@typescript-eslint/parser |
5.37.0 |
TypeScript |
4.8.3 |
ESLint |
8.15.0 |
node |
web |