import-js/eslint-plugin-import

Namespaced exports reported as duplicate identifiers

Open

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

在 GitHub 查看
 (0 留言) (1 反應) (0 負責人)JavaScript (4,946 star) (1,540 fork)batch import
bughelp wantedtypescript

描述

// 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.

貢獻者指南

Namespaced exports reported as duplicate identifiers · import-js/eslint-plugin-import#3220 | Good First Issue