import-js/eslint-plugin-import

Namespaced exports reported as duplicate identifiers

Open

#3 220 ouverte le 21 nov. 2025

Voir sur GitHub
 (0 commentaires) (1 réaction) (0 assignés)JavaScript (1 540 forks)batch import
bughelp wantedtypescript

Métriques du dépôt

Stars
 (4 946 stars)
Métriques de merge PR
 (Merge moyen 138j 22h) (3 PRs mergées en 30 j)

Description

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

Guide contributeur