55 * The following group names are available for configuration: https://eslint-plugin-perfectionist.azat.io/rules/sort-imports#groups
66 */
77const SORT_IMPORTS_GROUPS = [
8- [ 'builtin' , 'builtin-type' ] ,
9- [ 'external' , 'external-type' ] ,
10- [ 'internal' , 'internal-type' ] ,
11- [ 'parent' , 'parent-type' , 'sibling' , 'sibling-type' , 'index' , 'index-type' ] ,
12- 'style' ,
13- [ 'side-effect-style' , 'side-effect' ] ,
14- 'object' ,
8+ [ 'value-builtin' , 'named-type-builtin' ] ,
9+ [ 'value-external' , 'named-type-external' ] ,
10+ [ 'value-internal' , 'named-type-internal' ] ,
11+ [ 'value-parent' , 'named-type-parent' ] ,
12+ [ 'value-sibling' , 'named-type-sibling' ] ,
13+ [ 'value-index' , 'named-type-index' ] ,
14+ 'value-style' ,
15+ [ 'value-side-effect-style' , 'value-side-effect' ] ,
16+ 'value-ts-equals-import' ,
1517 'unknown' ,
1618] ;
1719
1820/**
19- * This is the the groups configuration of all the recommended configs by eslint-plugin-perfectionist.
21+ * This is the the default groups configuration of all the recommended configs by eslint-plugin-perfectionist.
2022 * This array can be used to reconfigure some options of the perfectionist/sort-classes rule without
2123 * overwriting the groups configuration of this rule.
2224 * This config can be found here:
@@ -25,19 +27,31 @@ const SORT_IMPORTS_GROUPS = [
2527 */
2628const SORT_CLASSES_GROUPS = [
2729 'index-signature' ,
28- 'static-property' ,
29- 'private-property' ,
30- 'property' ,
31- 'constructor' ,
32- 'static-method' ,
33- 'private-method' ,
34- 'method' ,
30+ [ 'static-property' , 'static-accessor-property' ] ,
31+ [ 'static-get-method' , 'static-set-method' ] ,
32+ [ 'protected-static-property' , 'protected-static-accessor-property' ] ,
33+ [ 'protected-static-get-method' , 'protected-static-set-method' ] ,
34+ [ 'private-static-property' , 'private-static-accessor-property' ] ,
35+ [ 'private-static-get-method' , 'private-static-set-method' ] ,
36+ 'static-block' ,
37+ [ 'property' , 'accessor-property' ] ,
3538 [ 'get-method' , 'set-method' ] ,
39+ [ 'protected-property' , 'protected-accessor-property' ] ,
40+ [ 'protected-get-method' , 'protected-set-method' ] ,
41+ [ 'private-property' , 'private-accessor-property' ] ,
42+ [ 'private-get-method' , 'private-set-method' ] ,
43+ 'constructor' ,
44+ [ 'static-method' , 'static-function-property' ] ,
45+ [ 'protected-static-method' , 'protected-static-function-property' ] ,
46+ [ 'private-static-method' , 'private-static-function-property' ] ,
47+ [ 'method' , 'function-property' ] ,
48+ [ 'protected-method' , 'protected-function-property' ] ,
49+ [ 'private-method' , 'private-function-property' ] ,
3650 'unknown' ,
3751] ;
3852
3953/**
40- * This array can be used to configure the perfectionist/sort-intersection-types rule.
54+ * Customized configuration to configure the perfectionist/sort-intersection-types rule.
4155 * The following group names are available for configuration: https://perfectionist.dev/rules/sort-intersection-types#groups
4256 */
4357const SORT_INTERSECTION_TYPES_GROUPS = [
0 commit comments