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
Labels
Milestone
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
module.exports={parser:'@typescript-eslint/parser',parserOptions:{project:'./tsconfig.json'},extends:['eslint:recommended','plugin:@typescript-eslint/recommended','plugin:@typescript-eslint/recommended-requiring-type-checking',],rules:{'@typescript-eslint/explicit-function-return-type':'off','@typescript-eslint/indent':['warn','tab'],}};
foo.d.ts:
interfaceFoo{foo:boolean,}
{"compilerOptions": {"allowJs":true,"checkJs":false,"outDir":"./dist","outFile":"./dist/index.js","moduleResolution":"node","target":"es5","module":"system","sourceMap":true,"baseUrl":"./" },"compileOnSave":false,"include": ["*" ],"exclude": ["node_modules" ]}
Expected Result
in ad.ts
file all interfaces are implicitly exported and therefore 'used'
Actual Result
1:11 warning 'Foo' is defined but never used @typescript-eslint/no-unused-vars
✖ 1 problem (0 errors, 1 warning)
Additional Info
no
Versions
package | version |
---|---|
@typescript-eslint/eslint-plugin | 4.0.1 |
@typescript-eslint/parser | 4.0.1 |
TypeScript | 4.0.2 |
ESLint | 7.8.0 |
node | 14.8.0 |