Skip to content

import-x/export: False-positive with type export #414

@silverwind

Description

@silverwind

foo.ts

export const foo = 1;

bar.ts

export type * from "./foo.ts"; // Error: Multiple exports of name 'foo'
export {foo} from "./foo.ts"; // Error: Multiple exports of name 'foo'

It seems the rule is unaware of type exports being distinct from value exports. The export type * does not include foo which is not a type, so the export is not duplicate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions