Skip to content

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

Open

Description

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 git@github.com: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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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