File tree Expand file tree Collapse file tree 1 file changed +12
-16
lines changed
packages/eslint-plugin/docs/rules Expand file tree Collapse file tree 1 file changed +12
-16
lines changed Original file line number Diff line number Diff line change @@ -25,24 +25,20 @@ These options allow to specify how to group the members and sort their groups.
25
25
- Sort members within groups: Use ` memberTypes ` and ` order `
26
26
27
27
``` ts
28
- type TypeOptions <T > =
29
- | {
30
- memberTypes: Array <T > | ' never' ,
31
- order? : ' alphabetically' | ' alphabetically-case-insensitive' | ' as-written' ,
32
- }
33
- | {
34
- order: ' alphabetically' | ' alphabetically-case-insensitive' | ' as-written' ,
35
- };
36
-
37
- {
38
- default ?: TypeOptions < MemberTypes > ,
28
+ type SortedOrderConfig = {
29
+ memberTypes? : MemberType [] | ' never' ;
30
+ order: ' alphabetically' | ' alphabetically-case-insensitive' | ' as-written' ;
31
+ };
39
32
40
- classes ?: TypeOptions < MemberTypes > ,
41
- classExpressions ?: TypeOptions < MemberTypes > ,
33
+ type OrderConfig = MemberType [] | SortedOrderConfig | ' never' ;
42
34
43
- interfaces ?: TypeOptions < ' signature' | ' field' | ' method' | ' constructor' > ,
44
- typeLiterals ?: TypeOptions < ' signature' | ' field' | ' method' | ' constructor' > ,
45
- }
35
+ type Options = {
36
+ default? : OrderConfig ;
37
+ classes? : OrderConfig ;
38
+ classExpressions? : OrderConfig ;
39
+ interfaces? : OrderConfig ;
40
+ typeLiterals? : OrderConfig ;
41
+ };
46
42
```
47
43
48
44
See below for the possible definitions of ` MemberType ` .
You can’t perform that action at this time.
0 commit comments