Commit 7656e2b
authored
docs(linter): Add configuration option docs for eslint/sort-imports rule. (#15013)
Part of #14743.
Generated docs:
```md
## Configuration
This rule accepts a configuration object with the following properties:
### allowSeparatedGroups
type: `boolean`
default: `false`
When `true`, the rule allows import groups separated by blank lines to be treated independently.
### ignoreCase
type: `boolean`
default: `false`
When `true`, the rule ignores case-sensitivity when sorting import names.
### ignoreDeclarationSort
type: `boolean`
default: `false`
When `true`, the rule ignores the sorting of import declarations (the order of `import` statements).
### ignoreMemberSort
type: `boolean`
default: `false`
When `true`, the rule ignores the sorting of import members within a single import declaration.
### memberSyntaxSortOrder
type: `array`
Specifies the sort order of different import syntaxes.
#### memberSyntaxSortOrder[n]
type: `"none" | "all" | "multiple" | "single"`
```
This is imperfect because of the handling of `memberSyntaxSortOrder[n]`
by the website generation tool, but I think this is probably fine as-is.1 parent 6faa11d commit 7656e2b
1 file changed
+13
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
39 | | - | |
| 40 | + | |
| 41 | + | |
40 | 42 | | |
| 43 | + | |
41 | 44 | | |
| 45 | + | |
42 | 46 | | |
| 47 | + | |
43 | 48 | | |
| 49 | + | |
44 | 50 | | |
| 51 | + | |
45 | 52 | | |
46 | 53 | | |
47 | 54 | | |
| |||
76 | 83 | | |
77 | 84 | | |
78 | 85 | | |
79 | | - | |
| 86 | + | |
| 87 | + | |
80 | 88 | | |
81 | 89 | | |
82 | 90 | | |
| |||
351 | 359 | | |
352 | 360 | | |
353 | 361 | | |
354 | | - | |
| 362 | + | |
355 | 363 | | |
356 | 364 | | |
357 | 365 | | |
| |||
403 | 411 | | |
404 | 412 | | |
405 | 413 | | |
406 | | - | |
| 414 | + | |
| 415 | + | |
407 | 416 | | |
408 | 417 | | |
409 | 418 | | |
| |||
0 commit comments