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] false positive for Type Import #2946

Closed
Labels
bugSomething isn't workingpackage: eslint-pluginIssues related to @typescript-eslint/eslint-plugin
@mvnrhd

Description

@mvnrhd
  • 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": ["error",            {"argsIgnorePattern":"^_"            }        ]  }}
import{ElementRef}from'@angular/core';...@ViewChild('someInput',{static:false})privatereadonly _someInput?:ElementRef<HTMLInputElement>;

Expected Result
No error

Actual Result
error 'ElementRef' is defined but never used @typescript-eslint/no-unused-vars

Additional Info

Occurs after latest update to 4.14.0 (probably related to#2751?)

Versions

packageversion
@typescript-eslint/eslint-plugin4.14.0
@typescript-eslint/parser4.14.0
TypeScript3.9.7
ESLint7.18.0
node14.15.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpackage: eslint-pluginIssues related to @typescript-eslint/eslint-plugin

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp