Skip to content

[no-unused-vars] false positive when class property has the same name as import #2994

Open
@kmaraz

Description

@kmaraz
  • I have tried restarting my IDE and the issue persists.
  • I have updated to the latest version of the packages.
  • I have read 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 property thisWorks has different name from the Test.
image
This does not work, as the class property Test has the same name as Test import.
Hope it helps! :)
Additional Info

Versions

package version
@typescript-eslint/eslint-plugin 4.14.2
@typescript-eslint/parser 4.14.2
TypeScript 4.1.3
ESLint 7.18.0
node 14.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

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy