Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
deprecation
etc
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
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).
etc/no-internal
https://github.com/boris-petrov/eslint-typescript-bug
pnpm install
./node_modules/.bin/eslint --cache --max-warnings=0 --report-unused-disable-directives .
@typescript-eslint/eslint-plugin
6.13.0
@typescript-eslint/parser
@typescript-eslint/scope-manager
@typescript-eslint/typescript-estree
@typescript-eslint/type-utils
@typescript-eslint/utils
TypeScript
5.3.2
ESLint
8.54.0
node
21.2.0
The text was updated successfully, but these errors were encountered:
#7999
Sorry, something went wrong.
The fix has been released https://github.com/typescript-eslint/typescript-eslint/releases/tag/v6.13.1
No branches or pull requests
Before You File a Bug Report Please Confirm You Have Done The Following...
Issue Description
Check the reproduction. Running it leads to:
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
pnpm install
./node_modules/.bin/eslint --cache --max-warnings=0 --report-unused-disable-directives .
Versions
@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
The text was updated successfully, but these errors were encountered: