Skip to content

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

Description

@Shinigami92

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions