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

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

Open chenxinyanc opened this issue 1 year ago • 7 comments

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"
},

chenxinyanc avatar Dec 08 '23 08:12 chenxinyanc