Skip to content

[import/order] "parent", "sibling" order is reverse #2695

Open
@tjx666

Description

@tjx666

config:

{
    "extends": "@yutengjing/eslint-config-typescript",
    "rules": {
        "import/order": [
            "error",
            {
                "alphabetize": { "order": "asc", "caseInsensitive": true },
                "groups": ["builtin", "external", ["parent", "sibling", "index"]],
                "newlines-between": "always"
            }
        ]
    }
}

the extends project: https://github.com/tjx666/eslint-config/tree/main/packages/typescript

Reproduce:

  1. git clone [email protected]:tjx666/vscode-clipboard-master.git
  2. pnpm install
  3. open src/features/copyAsMarkdownCodeBlock.ts
  4. try adjust import order, see following
2023-01-29.01.38.06.mov

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