You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/rules/order.md
+13-8Lines changed: 13 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,8 @@ import bar from './bar';
22
22
importbazfrom'./bar/baz';
23
23
// 6. "index" of the current directory
24
24
importmainfrom'./';
25
+
// 7. "object"-imports (only available in TypeScript)
26
+
import log = console.log;
25
27
```
26
28
27
29
Unassigned imports are ignored, as the order they are imported in may be important.
@@ -77,21 +79,24 @@ This rule supports the following options:
77
79
78
80
### `groups: [array]`:
79
81
80
-
How groups are defined, and the order to respect. `groups` must be an array of `string` or [`string`]. The only allowed `string`s are: `"builtin"`, `"external"`, `"internal"`, `"unknown"`, `"parent"`, `"sibling"`, `"index"`. The enforced order is the same as the order of each element in a group. Omitted types are implicitly grouped together as the last element. Example:
82
+
How groups are defined, and the order to respect. `groups` must be an array of `string` or [`string`]. The only allowed `string`s are:
| group | x | string | one of the allowed groups, the pathGroup will be positioned relative to this group|
108
113
| position || string | defines where around the group the pathGroup will be positioned, can be 'after' or 'before', if not provided pathGroup will be positioned like the group |
0 commit comments