Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[no-unused-vars] v4 false positive: in d.ts files #2456

Closed
Assignees
bradzacher
Labels
bugSomething isn't workinghas prthere is a PR raised to close thispackage: eslint-pluginIssues related to @typescript-eslint/eslint-plugin
@doberkofler

Description

@doberkofler
  • 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

packageversion
@typescript-eslint/eslint-plugin4.0.1
@typescript-eslint/parser4.0.1
TypeScript4.0.2
ESLint7.8.0
node14.8.0

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinghas prthere is a PR raised to close thispackage: eslint-pluginIssues related to @typescript-eslint/eslint-plugin

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp