Skip to content

Commit

Permalink
feat: updated readme with new parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
YuriSS committed Jun 30, 2022
1 parent 3818e0e commit e711b32
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,12 @@ import-conductor -p @customA @customB
import-conductor --separator '' ==> no separator
```

- `groupOrder` - The order imports will be organized: (defaults to `[thirdParty, userLibrary, differentModule, sameModule]`)

```shell script
import-conductor --groupOrder 'userLibrary' 'differentModule' 'sameModule' 'thirdParty'
```

- `staged` - Run against staged files: (defaults to `false`)

```shell script
Expand Down
2 changes: 1 addition & 1 deletion src/conductor/format-import-statements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ImportCategories } from '../types';

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

const categoriesOrder = ['thirdParty', 'userLibrary', 'differentModule', 'sameModule'];
const categoriesOrder = ['thirdParty', 'userLibrary', 'differentModule', 'sameModule']; // <<<<

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

0 comments on commit e711b32

Please sign in to comment.