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-alpha.1) False positive when in an interface #2331

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

Description

@eamodio

Repro

{"rules": {"@typescript-eslint/no-unused-vars": ["warn",{"args":"after-used","argsIgnorePattern":"^_","ignoreRestSiblings":true,"varsIgnorePattern":"^_$"}]  }}
exportinterfaceEvent<T>{(listener:(e:T)=>any,thisArgs?:any,disposables?:Disposable[]):Disposable;}

Expected Result

No errors

Actual Result

  11:3   warning  'listener' is defined but never used. Allowed unused args must match /^_/u     @typescript-eslint/no-unused-vars  11:28  warning  'thisArgs' is defined but never used. Allowed unused args must match /^_/u     @typescript-eslint/no-unused-vars  11:44  warning  'disposables' is defined but never used. Allowed unused args must match /^_/u  @typescript-eslint/no-unused-vars

Additional Info

Versions

packageversion
@typescript-eslint/eslint-plugin4.0.0-alpha.1
@typescript-eslint/parser4.0.0-alpha.1
TypeScript3.9.7
ESLint7.5.0
node12.16.2
npm6.14.4

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

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp