@@ -14,36 +14,36 @@ export function perfectionist(): TypedFlatConfigItem[] {
14
14
perfectionist : pluginPerfectionist ,
15
15
} ,
16
16
rules : {
17
+ 'perfectionist/sort-exports' : [ 'error' , { order : 'asc' , type : 'natural' } ] ,
17
18
'perfectionist/sort-imports' : [
18
19
'warn' ,
19
20
{
20
21
groups : [
21
22
'builtin' ,
22
23
'external' ,
23
- 'internal' ,
24
- 'internal-type' ,
25
- 'parent' ,
26
- 'parent-type' ,
27
- 'sibling' ,
28
- 'sibling-type' ,
29
- 'index' ,
30
- 'index-type' ,
31
- 'object' ,
32
24
'type' ,
25
+ [ 'internal' , 'internal-type' ] ,
26
+ [ 'parent' , 'sibling' , 'index' ] ,
27
+ [ 'parent-type' , 'sibling-type' , 'index-type' ] ,
28
+ 'object' ,
33
29
'side-effect' ,
34
30
'side-effect-style' ,
31
+ 'style' ,
32
+ 'unknown' ,
35
33
] ,
36
34
internalPattern : [ '~/**' , '@/**' , '#**' ] ,
37
35
newlinesBetween : 'ignore' ,
36
+ order : 'asc' ,
37
+ type : 'natural' ,
38
38
} ,
39
39
] ,
40
40
'perfectionist/sort-named-exports' : [
41
41
'warn' ,
42
- { groupKind : 'values-first' } ,
42
+ { groupKind : 'values-first' , order : 'asc' , type : 'natural' } ,
43
43
] ,
44
44
'perfectionist/sort-named-imports' : [
45
45
'warn' ,
46
- { groupKind : 'values-first' } ,
46
+ { groupKind : 'values-first' , order : 'asc' , type : 'natural' } ,
47
47
] ,
48
48
} ,
49
49
} ,
0 commit comments