Closed
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.
Issue Description
Check the reproduction. Running it leads to:
/home/boris/code/eslint-typescript-bug/foo.ts
1:40 error Unused eslint-disable directive (no problems were reported from 'deprecation/deprecation')
Downgrading ESLint TypeScript to 6.12.0 fixes the problem - i.e. this directive is not marked as unused (which is the correct behavior).\
The same issue also appears with the etc/no-internal
rule (which is not showcased here).
Reproduction Repository Link
https://github.com/boris-petrov/eslint-typescript-bug
Repro Steps
- clone the repo
pnpm install
./node_modules/.bin/eslint --cache --max-warnings=0 --report-unused-disable-directives .
Versions
package | version |
---|---|
@typescript-eslint/eslint-plugin |
6.13.0 |
@typescript-eslint/parser |
6.13.0 |
@typescript-eslint/scope-manager |
6.13.0 |
@typescript-eslint/typescript-estree |
6.13.0 |
@typescript-eslint/type-utils |
6.13.0 |
@typescript-eslint/utils |
6.13.0 |
TypeScript |
5.3.2 |
ESLint |
8.54.0 |
node |
21.2.0 |