Skip to content

Using as in multi-specifier imports still gets flagged as false positive #2

@serbanmarti

Description

@serbanmarti

Summary

The recent fix to stop flagging import aliases (import { fun as bar } from "./my-module") resolved the false positive for single-specifier imports. However, the rule still incorrectly flags as when it appears in a multi-specifier import, even though it is unambiguously an import alias and not a type assertion.

Example

The following import triggers a false positive:

import { A as B, C } from '@lib';

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions