Skip to content

Commit 45bae13

Browse files
committed
style: use @sumimakito integrated perfectionist/sort-imports
1 parent f3e97fa commit 45bae13

File tree

4 files changed

+19
-317
lines changed

4 files changed

+19
-317
lines changed

build.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { copyFile, rm } from 'node:fs/promises'
22
import { join } from 'node:path'
33
import { cwd } from 'node:process'
4+
45
import builtins from 'builtin-modules'
56
import { defineBuildConfig } from 'unbuild'
67

eslint.config.ts

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,30 @@
11
import antfu from '@antfu/eslint-config'
2-
import { importX } from 'eslint-plugin-import-x'
32

43
export default antfu({
5-
ignores: [
6-
'**/*.md',
7-
'**/*.yaml',
8-
'**/*.yml',
9-
],
4+
markdown: false,
5+
yaml: false,
106
rules: {
11-
'ts/ban-ts-comment': 'off',
127
'antfu/import-dedupe': 'error',
13-
'style/padding-line-between-statements': 'error',
14-
'import-x/order': [
8+
'import/order': 'off',
9+
'perfectionist/sort-imports': [
1510
'error',
1611
{
17-
'groups': [
18-
['type'],
19-
['builtin', 'external'],
20-
['parent', 'sibling', 'index'],
12+
groups: [
13+
'type-builtin',
14+
'type-import',
15+
'value-builtin',
16+
'value-external',
17+
'type-internal',
18+
['type-parent', 'type-sibling', 'type-index'],
19+
'value-internal',
20+
['value-parent', 'value-sibling', 'value-index'],
21+
['wildcard-value-parent', 'wildcard-value-sibling', 'wildcard-value-index'],
22+
'side-effect',
23+
'style',
2124
],
22-
'newlines-between': 'always',
25+
newlinesBetween: 'always',
2326
},
2427
],
25-
},
26-
plugins: {
27-
'import-x': importX,
28+
'style/padding-line-between-statements': 'error',
2829
},
2930
})

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
"builtin-modules": "^5.0.0",
3838
"bumpp": "^10.1.1",
3939
"eslint": "^9.28.0",
40-
"eslint-plugin-import-x": "^4.15.1",
4140
"hast-util-to-html": "^9.0.5",
4241
"obsidian": "^1.8.7",
4342
"rehype-raw": "^7.0.0",

0 commit comments

Comments
 (0)