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

import-x/order mismatches typescript language server organize imports for `#` prefixed imports

Open Shinigami92 opened this issue 7 months ago • 7 comments

Minimal reproducible: https://github.com/Shinigami92/eslint-plugin-import-x-repro

input

import { internA } from "#a";
import { scopeA } from "@a/a";
import { localA } from "./a";

console.log({ internA, scopeA, localA });

actual

import-x/order reports error

expected

should not report, because when running typescript's lsp organize imports, then the above input order is enforced

context

the # prefix comes from package.json "imports": { ... } field: https://nodejs.org/api/packages.html#imports

Shinigami92 avatar Apr 10 '25 08:04 Shinigami92