Skip to content

Commit 2e424b8

Browse files
committed
feat: new option spaceAfterAliases
By default `spaceAfterAliases` is `true` but can be set to `false` to prevent `aliases` being separated from the `relative` modules. - Setting a `tsconfigFilePath` will automatically set the `cacheStrategy` to `'always'`.
1 parent f6b678a commit 2e424b8

File tree

2 files changed

+12
-14
lines changed

2 files changed

+12
-14
lines changed

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
{
22
"name": "prettier-plugin-sorted",
3-
"description": "Sort your JavaScript and TypeScript imports with prettier with automatic alias support",
43
"version": "1.1.0",
4+
"description": "Sort your JavaScript and TypeScript imports with prettier with automatic alias support",
55
"keywords": [
66
"import-sort",
77
"prettier",
88
"sort",
99
"typescript",
1010
"plugin",
11-
"import-sort",
1211
"tsconfig",
1312
"alias"
1413
],
@@ -56,8 +55,8 @@
5655
"@types/prettier": "^1.19.0",
5756
"import-sort": "^6.0.0",
5857
"import-sort-config": "^6.0.0",
59-
"import-sort-style-custom": "^2.0.0",
6058
"import-sort-parser-typescript": "^6.0.0",
59+
"import-sort-style-custom": "^2.1.1",
6160
"tiny-invariant": "^1.1.0"
6261
},
6362
"devDependencies": {
@@ -78,7 +77,7 @@
7877
"prettier": "^1.19.1"
7978
},
8079
"importSort": {
81-
".js, .ts, .tsx": {
80+
".js,.ts,.tsx": {
8281
"options": {
8382
"cacheStrategy": "directory",
8483
"wildcardAtStart": false,

yarn.lock

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4374,15 +4374,15 @@ import-sort-parser@^6.0.0:
43744374
resolved "https://registry.yarnpkg.com/import-sort-parser/-/import-sort-parser-6.0.0.tgz#0d901f264d98ed7caaae71f66128a686f828f2f4"
43754375
integrity sha512-H5L+d6HnqHvThB0GmAA3/43Sv74oCwL0iMk3/ixOv0LRJ69rCyHXeG/+UadMHrD2FefEmgPIWboEPAG7gsQrkA==
43764376

4377-
import-sort-style-custom@^2.0.0:
4378-
version "2.0.0"
4379-
resolved "https://registry.yarnpkg.com/import-sort-style-custom/-/import-sort-style-custom-2.0.0.tgz#51221f92adb299459498235adb225b4fbc450868"
4380-
integrity sha512-SEKPf5zHlMWhd51lSLwfBTtRgBT0HwcJ+xuECQwHl5Iln21spUPwbYgouebleWSB9xa99krgKlT/opwJnTk0EQ==
4377+
import-sort-style-custom@^2.1.1:
4378+
version "2.1.1"
4379+
resolved "https://registry.yarnpkg.com/import-sort-style-custom/-/import-sort-style-custom-2.1.1.tgz#e05373afe1892676036a19a9624554110166577d"
4380+
integrity sha512-rUBz/9y4tWeebXBIM7H1AhxcJlApn5NUthaafupCRhx7zKlx2U8EMamwXLiBV80Xht3HAwRG0fXzBJ5JazKy+g==
43814381
dependencies:
43824382
escape-string-regexp "^2.0.0"
43834383
import-sort-parser "^6.0.0"
43844384
import-sort-style "^6.0.0"
4385-
tsconfig-resolver "^2.0.1"
4385+
tsconfig-resolver "^2.1.1"
43864386

43874387
import-sort-style@^6.0.0:
43884388
version "6.0.0"
@@ -8940,15 +8940,14 @@ ts-jest@^24.0.2:
89408940
semver "^5.5"
89418941
yargs-parser "10.x"
89428942

8943-
tsconfig-resolver@^2.0.1:
8944-
version "2.0.1"
8945-
resolved "https://registry.yarnpkg.com/tsconfig-resolver/-/tsconfig-resolver-2.0.1.tgz#166e3d2841df1bc58c5017cc8b0db4ee21ab9482"
8946-
integrity sha512-vZ3zrDMtdLF2bQnNIQ9tPfBz09xdtfE8fhVTQfdvxuMM1pkZbWirTQryjFG2xC1l1hIbeKl33bPd/O9LHn+qIQ==
8943+
tsconfig-resolver@^2.1.1:
8944+
version "2.1.1"
8945+
resolved "https://registry.yarnpkg.com/tsconfig-resolver/-/tsconfig-resolver-2.1.1.tgz#71e3cc763b3466fd54bbf41e205db803a3d97998"
8946+
integrity sha512-7HJQgbQ+RhUrbvQ5QCf7X++oMq0O2CTp4sK/06VgA9c2wSq1MDir/sjKa97cSAZSBeZuVx1gmhkouplYytnpaw==
89478947
dependencies:
89488948
"@types/json5" "^0.0.30"
89498949
"@types/resolve" "^1.14.0"
89508950
json5 "^2.1.1"
8951-
prettier-plugin-packagejson "^2.0.10"
89528951
resolve "^1.15.1"
89538952
strip-bom "^4.0.0"
89548953
type-fest "^0.12.0"

0 commit comments

Comments
 (0)