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
{root:true,parser:'@typescript-eslint/parser',plugins:['@typescript-eslint',],extends:['eslint:recommended','plugin:@typescript-eslint/recommended',],rules:{// Following checks are temporarily disabled. We shall incrementally enable them in the// future, fixing any violations as we go.'@typescript-eslint/no-non-null-assertion':0,// Disabled checks'@typescript-eslint/no-explicit-any':0,'@typescript-eslint/no-use-before-define':0,// Required checks'indent':['error',2],'keyword-spacing':['error'],'max-len':['error',{'code':120,'ignoreUrls':true}],"object-curly-spacing":[2,"always"],'@typescript-eslint/explicit-function-return-type':['error',{'allowExpressions':true,'allowTypedFunctionExpressions':true,'allowHigherOrderFunctions':true}],'no-unused-vars':'off',// Must be disabled to enable the next rule'@typescript-eslint/no-unused-vars':['error']}}
exportnamespacefoo.bar{exportinterfaceUser{name:string;}}
Expected Result
No lint errors.
Actual Result
error 'bar' is defined but never used @typescript-eslint/no-unused-varsAdditional Info
Following doesn't trigger the error as far as I can tell.
exportnamespacefoo{exportnamespacebar{exportinterfaceUser{name:string;}}}
Versions
| package | version |
|---|---|
@typescript-eslint/eslint-plugin | 4.1.0 |
@typescript-eslint/parser | 4.1.0 |
TypeScript | 3.7.0 |
ESLint | 7.9.0 |
node | 10.22.0 |