Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tjx666 opened this issue Jan 28, 2023 · 1 comment
Open

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

tjx666 opened this issue Jan 28, 2023 · 1 comment

Comments

@tjx666
Copy link

tjx666 commented Jan 28, 2023

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
@ljharb
Copy link
Member

ljharb commented Jan 28, 2023

Seems like it might be a duplicate of #2685?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants