Skip to content

Commit 9b25f48

Browse files
author
Tigran Kaginyan
committed
Updated docs based on new import types
1 parent 8691ddf commit 9b25f48

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

docs/rules/order.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,14 +91,13 @@ The enforced order is the same as the order of each element in a group. Omitted
9191
'builtin', // Built-in types are first
9292
[{ name: 'private', pattern: '^my-awesome-project/libs' }, 'internal'] // The private types and internal (@myproject) are mixed together
9393
{ name: 'absolute', pattern: '^src' }, // Then absolute types
94-
['sibling', 'parent'], // Then sibling and parent types. They can be mingled together
95-
'index', // Then the index file
94+
['sibling', 'parent', 'index'], // Then sibling and parent types and index. They can be mingled together
9695
// Then the rest: internal and external type
9796
]
9897
```
9998
The default value is `["builtin", "external", "absolute", "parent", "sibling", "index"]`.
10099
By default `"absolute"` type will be applied to any import which path starts with `"/"` if you want to change
101-
that behavior you can specify absolute type with ```Object``` literal ```{ name: 'absolute'<String>, pattern: //<RegExp> }```.
100+
that behavior you can specify absolute type with ```Object``` literal ```{ name: 'absolute'<String>, pattern: // <RegExp> }```.
102101
Custom pattern behavior can be applied only for `"absolute"` and `"private"` types
103102

104103
You can set the options like this:

0 commit comments

Comments
 (0)