Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ruanyl/import-sort-style-alias
https://github.com/ruanyl/import-sort-style-alias
Last synced: 18 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ruanyl/import-sort-style-alias
- Owner: ruanyl
- Created: 2017-10-23T13:10:37.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2021-10-12T12:20:42.000Z (about 3 years ago)
- Last Synced: 2024-12-05T16:09:09.548Z (about 1 month ago)
- Language: TypeScript
- Size: 16.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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"]
}
}
```