eslint-plugin-import-x icon indicating copy to clipboard operation
eslint-plugin-import-x copied to clipboard

`import-x/export`: False-positive with type export

Open silverwind opened this issue 4 months ago • 0 comments

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.

silverwind avatar Jul 29 '25 13:07 silverwind