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 when class property has the same name as import #2994

Open
Assignees
bradzacher
Labels
bugSomething isn't workingexternalThis issue is with another package, not typescript-eslint itselfpackage: eslint-pluginIssues related to @typescript-eslint/eslint-plugin
@kmaraz

Description

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

https://github.com/kmaraz/no-unused-vars-issue
I'll show you the issue in the pictures:
image
This works as the class propertythisWorks has different name from theTest.
image
This does not work, as the class propertyTest has the same name asTest import.
Hope it helps! :)
Additional Info

Versions

packageversion
@typescript-eslint/eslint-plugin4.14.2
@typescript-eslint/parser4.14.2
TypeScript4.1.3
ESLint7.18.0
node14.15.0

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingexternalThis issue is with another package, not typescript-eslint itselfpackage: eslint-pluginIssues related to @typescript-eslint/eslint-plugin

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp