Skip to content

Commit

Permalink
fix(perfectionist): revert bahaviour change on import sorting since v…
Browse files Browse the repository at this point in the history
…3.10
  • Loading branch information
antfu committed Nov 28, 2024
1 parent a02e566 commit 00c4194
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 47 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
"@stylistic/eslint-plugin": "^2.11.0",
"@typescript-eslint/eslint-plugin": "^8.16.0",
"@typescript-eslint/parser": "^8.16.0",
"@vitest/eslint-plugin": "^1.1.11",
"@vitest/eslint-plugin": "^1.1.12",
"eslint-config-flat-gitignore": "^0.3.0",
"eslint-flat-config-utils": "^0.4.0",
"eslint-merge-processors": "^0.1.0",
Expand Down Expand Up @@ -140,7 +140,7 @@
"@prettier/plugin-xml": "^3.4.1",
"@stylistic/eslint-plugin-migrate": "^2.11.0",
"@types/fs-extra": "^11.0.4",
"@types/node": "^22.10.0",
"@types/node": "^22.10.1",
"@types/prompts": "^2.4.9",
"@types/yargs": "^17.0.33",
"@unocss/eslint-plugin": "^0.64.1",
Expand All @@ -164,7 +164,7 @@
"prettier-plugin-slidev": "^1.0.5",
"rimraf": "^6.0.1",
"simple-git-hooks": "^2.11.1",
"svelte": "^5.2.9",
"svelte": "^5.2.10",
"svelte-eslint-parser": "^0.43.0",
"tsup": "^8.3.5",
"tsx": "^4.19.2",
Expand Down
84 changes: 42 additions & 42 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/configs/perfectionist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ export async function perfectionist(): Promise<TypedFlatConfigItem[]> {
'perfectionist/sort-imports': ['error', {
groups: [
'type',
['parent-type', 'sibling-type', 'index-type'],
['parent-type', 'sibling-type', 'index-type', 'internal-type'],

'builtin',
'external',
['internal', 'internal-type'],
'internal',
['parent', 'sibling', 'index'],
'side-effect',
'object',
Expand Down

0 comments on commit 00c4194

Please sign in to comment.