@@ -11,7 +11,7 @@ export const perfectionistConfig = async ({ fileRoots }: Pick<Options, 'fileRoot
1111 perfectionist : perfectionistPlugin
1212 } ,
1313 rules : {
14- ... perfectionistPlugin . configs [ 'recommended- natural'] . rules ,
14+ 'perfectionist/sort-array-includes' : [ 'error' , { order : 'asc' , type : ' natural' } ] ,
1515 'perfectionist/sort-classes' : [
1616 'error' ,
1717 {
@@ -32,6 +32,10 @@ export const perfectionistConfig = async ({ fileRoots }: Pick<Options, 'fileRoot
3232 type : 'natural'
3333 }
3434 ] ,
35+ 'perfectionist/sort-decorators' : [ 'error' , { order : 'asc' , type : 'natural' } ] ,
36+ 'perfectionist/sort-enums' : [ 'error' , { order : 'asc' , type : 'natural' } ] ,
37+ 'perfectionist/sort-exports' : [ 'error' , { order : 'asc' , type : 'natural' } ] ,
38+ 'perfectionist/sort-heritage-clauses' : [ 'error' , { order : 'asc' , type : 'natural' } ] ,
3539 'perfectionist/sort-imports' : [
3640 'error' ,
3741 {
@@ -62,6 +66,7 @@ export const perfectionistConfig = async ({ fileRoots }: Pick<Options, 'fileRoot
6266 type : 'natural'
6367 }
6468 ] ,
69+ 'perfectionist/sort-interfaces' : [ 'error' , { order : 'asc' , type : 'natural' } ] ,
6570 'perfectionist/sort-intersection-types' : [
6671 'error' ,
6772 {
@@ -84,7 +89,16 @@ export const perfectionistConfig = async ({ fileRoots }: Pick<Options, 'fileRoot
8489 order : 'asc' ,
8590 type : 'natural'
8691 }
87- ]
92+ ] ,
93+ 'perfectionist/sort-maps' : [ 'error' , { order : 'asc' , type : 'natural' } ] ,
94+ 'perfectionist/sort-named-exports' : [ 'error' , { order : 'asc' , type : 'natural' } ] ,
95+ 'perfectionist/sort-named-imports' : [ 'error' , { order : 'asc' , type : 'natural' } ] ,
96+ 'perfectionist/sort-object-types' : [ 'error' , { order : 'asc' , type : 'natural' } ] ,
97+ 'perfectionist/sort-objects' : [ 'error' , { order : 'asc' , type : 'natural' } ] ,
98+ 'perfectionist/sort-sets' : [ 'error' , { order : 'asc' , type : 'natural' } ] ,
99+ 'perfectionist/sort-switch-case' : [ 'error' , { order : 'asc' , type : 'natural' } ] ,
100+ 'perfectionist/sort-union-types' : [ 'error' , { order : 'asc' , type : 'natural' } ] ,
101+ 'perfectionist/sort-variable-declarations' : [ 'error' , { order : 'asc' , type : 'natural' } ]
88102 }
89103 }
90104 ] ;
0 commit comments