import-js/eslint-plugin-import

`export import X = Y` seems not being recognized and may trigger `import/namespace` false-positives

Open

#2.935 aberto em 8 de dez. de 2023

Ver no GitHub
 (7 comments) (0 reactions) (0 assignees)JavaScript (1.540 forks)batch import
bugenhancementhelp wantedtypescript

Métricas do repositório

Stars
 (4.946 stars)
Métricas de merge de PR
 (Mesclagem média 138d 22h) (3 fundiu PRs em 30d)

Description

Reproduction repo: https://github.com/chenxinyanc/eslint-import-uuid-test

Reproduction code

bar.ts

export const test = 123;

buzz.ts

import * as Bar from "./bar";

export import barTest = Bar.test;

index.ts

import * as Buzz from './buzz';  // No exported names found in module './buzz'. (eslint: import/namespace)

console.log(Buzz);

image

Packages

"devDependencies": {
  "@types/uuid": "^9.0.7",
  "@typescript-eslint/eslint-plugin": "^6.9.1",
  "@typescript-eslint/parser": "^6.9.1",
  "eslint": "^8.55.0",
  "eslint-plugin-import": "^2.29.0",
  "tsc": "^2.0.4",
  "typescript": "^5.3.3"
},

Guia do colaborador