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
Description
- I have tried restarting my IDE and the issue persists.
- I have updated to the latest version of the packages.
- I haveread the FAQ and my problem is not listed.
Repro
{"rules":{"@typescript-eslint/no-unused-vars":["error",{argsIgnorePattern:"^_"}],}}
// your repro code caseexportinterfaceBar<_A>{readonlyfoo:string;}
Expected Result
I expected the_A
parameter not being used to be ignored becuase it is prefixed with an underscore and therefore part ofargsIgnorePattern
.
Actual Result
error @typescript-eslint/no-unused-vars : '_A' is defined but never used.
Additional Info
Versions
package | version |
---|---|
@typescript-eslint/eslint-plugin | 4.8.2 |
@typescript-eslint/parser | 4.8.2 |
TypeScript | 4.0.2 |
ESLint | 7.10.0 |
node | 12.18.3 |