Skip to content

Commit

Permalink
Update Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
IanVS committed Oct 26, 2022
1 parent 4a0019d commit 3a54e59
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Expand Up @@ -200,6 +200,12 @@ To move the third party imports at desired place, you can use `<THIRD_PARTY_MODU
"importOrder": ["^@core/(.*)$", "<THIRD_PARTY_MODULES>", "^@server/(.*)$", "^@ui/(.*)$", "^[./]"],
```

If you would like to order type imports differently from value imports, you can use the special `<TYPES>` string. This example will place third party types at the top, followed by local types, then third party value imports, and lastly local value imports:

```json
"importOrder": ["<TYPES>", "<TYPES>^[./]", "<THIRD_PARTY_MODULES>", "^[./]"],
```

#### `importOrderSeparation`

**type**: `boolean`
Expand Down
9 changes: 9 additions & 0 deletions types/index.d.ts
Expand Up @@ -26,6 +26,15 @@ export interface PluginConfig {
* ```json
* "importOrder": ["^@core/(.*)$", "<THIRD_PARTY_MODULES>", "^@server/(.*)$", "^@ui/(.*)$", "^[./]"],
* ```
*
* If you would like to order type imports differently from value imports,
* you can use the special `<TYPES>` string.
* This example will place third party types at the top, followed by local types,
* then third party value imports, and lastly local value imports:
*
* ```json
* "importOrder": ["<TYPES>", "<TYPES>^[./]", "<THIRD_PARTY_MODULES>", "^[./]"],
* ```
*/
importOrder?: string[];

Expand Down

0 comments on commit 3a54e59

Please sign in to comment.