Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ruanyl/import-sort-style-alias


https://github.com/ruanyl/import-sort-style-alias

Last synced: 18 days ago
JSON representation

Awesome Lists containing this project

README

        

# import-sort-style-alias

Sort resolve.alias separately, first by the order defined in the array, then by member name

```
npm i import-sort-style-alias --save-dev
```

package.json
```
"importSort": {
".js, .jsx, .es6, .es": {
"parser": "babylon",
"style": "alias",
"custom": {
"alias": ["components", "modules"]
}
},
".ts, .tsx": {
"parser": "typescript",
"style": "alias",
"custom": {
"alias": ["components", "modules"]
}
}
```