Skip to content

Commit 72378bb

Browse files
committed
Add example of settings
1 parent aa82fa6 commit 72378bb

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,22 @@ A style for [import-sort][] that groups and sorts imports by module, inspired by
1010
2. Framework modules
1111
3. Third-party modules
1212
4. First-party modules
13-
5. Explicity local modules
13+
5. Explicitly local modules
14+
15+
Framework and First-party require setting some options in your config:
16+
17+
```json
18+
"importSort": {
19+
".js": {
20+
"parser": "babylon",
21+
"style": "python",
22+
"options": {
23+
"known-framework": [],
24+
"known-firstparty": []
25+
}
26+
},
27+
}
28+
```
1429

1530
[npm-url]: https://www.npmjs.com/package/import-sort-style-python
1631

0 commit comments

Comments
 (0)