Skip to content

JS: FP in js/unused-local-variable when import used as type annotation #1137

@s0

Description

@s0

When a module is imported with import * as X, and X is used as a type definition in typescript, the import is incorrectly flagged as unused.

Example: https://lgtm.com/projects/g/synesthesia-project/server/snapshot/f005a51d7d89c42bfc64e785dcdc61fd567bf94f/files/src/main/connections/composer.ts?sort=name&dir=ASC&mode=heatmap#x77ff0d1aaf721abc:1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions