Skip to content

Commit e711b32

Browse files
committed
feat: updated readme with new parameter
1 parent 3818e0e commit e711b32

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,12 @@ import-conductor -p @customA @customB
135135
import-conductor --separator '' ==> no separator
136136
```
137137

138+
- `groupOrder` - The order imports will be organized: (defaults to `[thirdParty, userLibrary, differentModule, sameModule]`)
139+
140+
```shell script
141+
import-conductor --groupOrder 'userLibrary' 'differentModule' 'sameModule' 'thirdParty'
142+
```
143+
138144
- `staged` - Run against staged files: (defaults to `false`)
139145

140146
```shell script

src/conductor/format-import-statements.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { ImportCategories } from '../types';
33

44
type CategoryEntry = [string, Map<string, string>];
55

6-
const categoriesOrder = ['thirdParty', 'userLibrary', 'differentModule', 'sameModule'];
6+
const categoriesOrder = ['thirdParty', 'userLibrary', 'differentModule', 'sameModule']; // <<<<
77

88
export function formatImportStatements(importCategories: ImportCategories, lineEnding: string) {
99
const { separator } = getConfig();

0 commit comments

Comments
 (0)