import-js/eslint-plugin-import

Namespaced exports reported as duplicate identifiers

開放

#3,220 建立於 2025年11月21日

 (0 則留言) (1 個反應) (0 位負責人)JavaScript (1,549 個分叉)batch import
bughelp wantedtypescript

倉庫指標

星標
 (5,940 顆星)
PR 合併指標
 (平均合併 138天 22小時) (30 天內合併 3 個 PR)

描述

// AB.ts
export type A = {};
export type B = {};
// ABFeature.ts
export type * as AB from "./AB.ts";
// foo.ts
export type A = {};
// index.ts
export * from "ABFeature.ts"; // Error: duplicate identifier `A`
export * from "foo.ts";       // Error: duplicate identifier `A`

There are no duplicate identifiers. Symbol A can't be accessed through ABFeature.ts, and can only be accessed as AB.A.

貢獻者指南