Skip to content

TypeScript's "export import" is treated as import #1829

Closed
@be5invis

Description

@be5invis

TypeScript has a special syntax to re-export an namespace looks like export import <name> = <binding>. Currently eslint-plugin-import is treating them as imports and applies incorrect rules.

// with import/order, the "export import" line will cause an error
import { Point } from "./point";
export namespace SomeNamespace {
    export import Pt = Point;
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions