Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
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": ["warn",{"args":"after-used","argsIgnorePattern":"^_","ignoreRestSiblings":true,"varsIgnorePattern":"^_$"}] }}fileA
exporttypeFooType='foo'|'bar';
fileB
import{FooType}from'./fileA';abstractclassFoo{protectedabstractreadonlytype:FooType;}
Expected Result
No errors/warnings
Actual Result
WARNING in fileB.ts:1:8 @typescript-eslint/no-unused-vars: 'FooType' is defined but never used. Allowed unused vars must match /^_$/u.Additional Info
Versions
| package | version |
|---|---|
@typescript-eslint/eslint-plugin | 4.0.0-alpha.9 |
@typescript-eslint/parser | 4.0.0-alpha.9 |
TypeScript | 4.0.2 |
ESLint | 7.7.0 |
node | 12.16.2 |