diff --git a/api/package.json b/api/package.json index 487f3ba19..5aa680b95 100644 --- a/api/package.json +++ b/api/package.json @@ -169,6 +169,7 @@ "@types/redis": "^2.8.32", "@types/swagger-ui-express": "^4.1.7", "eslint-plugin-formatjs": "^5.2.9", + "ts-plugin-sort-import-suggestions": "^1.0.4", "typescript": "~5.7.2" } } \ No newline at end of file diff --git a/api/tsconfig.json b/api/tsconfig.json index 534c4c0a4..5713ddca7 100644 --- a/api/tsconfig.json +++ b/api/tsconfig.json @@ -20,6 +20,13 @@ "./src/*.js" ] }, + "plugins": [ + { + "name": "ts-plugin-sort-import-suggestions", + "moveUpPatterns": ["./*","../*","#*/","@/*","effect-app/*","@effect-app/*","effect","@effect/*"], + "moveDownPatterns":["node_modules/*"] + } + ] }, "extends": "../tsconfig.base.json", "references": [ diff --git a/frontend/package.json b/frontend/package.json index 4ba6176e0..470465034 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -65,6 +65,7 @@ "h3": "^1.13.0", "nuxt": "~3.15.1", "sass": "^1.83.1", + "ts-plugin-sort-import-suggestions": "^1.0.4", "typescript": "~5.7.2", "vue-tsc": "^2.2.0" } diff --git a/frontend/tsconfig.json b/frontend/tsconfig.json index 6df0d55c6..59cc41103 100644 --- a/frontend/tsconfig.json +++ b/frontend/tsconfig.json @@ -14,6 +14,13 @@ "noUncheckedIndexedAccess": true, // This is not desirable, as it's useful in generators. "noImplicitReturns": false, - "checkJs": false + "checkJs": false, + "plugins": [ + { + "name": "ts-plugin-sort-import-suggestions", + "moveUpPatterns": ["./*","../*","#*/","@/*","effect-app/*","@effect-app/*","effect","@effect/*"], + "moveDownPatterns":["node_modules/*"] + } + ] } } \ No newline at end of file diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9ed1ab624..ffe999583 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -376,6 +376,9 @@ importers: eslint-plugin-formatjs: specifier: ^5.2.9 version: 5.2.9(eslint@8.57.1)(typescript@5.7.2(patch_hash=i2s6pnnksgwmnqxtmioljcvjfq)) + ts-plugin-sort-import-suggestions: + specifier: ^1.0.4 + version: 1.0.4 typescript: specifier: ~5.7.2 version: 5.7.2(patch_hash=i2s6pnnksgwmnqxtmioljcvjfq) @@ -630,6 +633,9 @@ importers: sass: specifier: ^1.83.1 version: 1.83.1 + ts-plugin-sort-import-suggestions: + specifier: ^1.0.4 + version: 1.0.4 typescript: specifier: ~5.7.2 version: 5.7.2(patch_hash=i2s6pnnksgwmnqxtmioljcvjfq) @@ -8353,6 +8359,9 @@ packages: ts-pattern@5.6.0: resolution: {integrity: sha512-SL8u60X5+LoEy9tmQHWCdPc2hhb2pKI6I1tU5Jue3v8+iRqZdcT3mWPwKKJy1fMfky6uha82c8ByHAE8PMhKHw==} + ts-plugin-sort-import-suggestions@1.0.4: + resolution: {integrity: sha512-85n5lm2OQQ+b7aRNK9omU1gmjMNXRsgeLwojm5u4OSY5sVBkAHTcgMQPEeHMNlyyfFW0uXnwgqAU0pNfhD96Bw==} + ts-toolbelt@9.6.0: resolution: {integrity: sha512-nsZd8ZeNUzukXPlJmTBwUAuABDe/9qtVDelJeT/qW0ow3ZS3BsQJtNkan1802aM9Uf68/Y8ljw86Hu0h5IUW3w==} @@ -18280,6 +18289,8 @@ snapshots: ts-pattern@5.6.0: {} + ts-plugin-sort-import-suggestions@1.0.4: {} + ts-toolbelt@9.6.0: {} tsc-watch@6.2.1(typescript@5.7.2(patch_hash=i2s6pnnksgwmnqxtmioljcvjfq)):