Skip to content

Commit c0a07f0

Browse files
committed
feat: add sort imports
1 parent 42bcc2e commit c0a07f0

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

frontend/.prettierrc.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,16 @@
44
"semi": false,
55
"singleQuote": true,
66
"printWidth": 100,
7-
"plugins": ["prettier-plugin-tailwindcss"]
7+
"importOrder": [
8+
"<THIRD_PARTY_MODULES>",
9+
"^@/src/(.*)$",
10+
"^../(.*)$",
11+
"^./(.*)$"
12+
],
13+
"importOrderSeparation": true,
14+
"importOrderSortSpecifiers": true,
15+
"plugins": [
16+
"@trivago/prettier-plugin-sort-imports",
17+
"prettier-plugin-tailwindcss"
18+
]
819
}

frontend/bun.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
},
2929
"devDependencies": {
3030
"@inspira-ui/plugins": "^0.0.1",
31+
"@trivago/prettier-plugin-sort-imports": "^5.2.2",
3132
"@tsconfig/node22": "^22.0.0",
3233
"@types/node": "^22.13.1",
3334
"@vitejs/plugin-vue": "^5.2.1",
@@ -301,6 +302,8 @@
301302

302303
"@tanstack/vue-virtual": ["@tanstack/[email protected]", "", { "dependencies": { "@tanstack/virtual-core": "3.13.0" }, "peerDependencies": { "vue": "^2.7.0 || ^3.0.0" } }, "sha512-EPgcTc41KGJAK2N2Ux2PeUnG3cPpdkldTib05nwq+0zdS2Ihpbq8BsWXz/eXPyNc5noDBh1GBgAe36yMYiW6WA=="],
303304

305+
"@trivago/prettier-plugin-sort-imports": ["@trivago/[email protected]", "", { "dependencies": { "@babel/generator": "^7.26.5", "@babel/parser": "^7.26.7", "@babel/traverse": "^7.26.7", "@babel/types": "^7.26.7", "javascript-natural-sort": "^0.7.1", "lodash": "^4.17.21" }, "peerDependencies": { "@vue/compiler-sfc": "3.x", "prettier": "2.x - 3.x", "prettier-plugin-svelte": "3.x", "svelte": "4.x || 5.x" }, "optionalPeers": ["@vue/compiler-sfc", "prettier-plugin-svelte", "svelte"] }, "sha512-fYDQA9e6yTNmA13TLVSA+WMQRc5Bn/c0EUBditUHNfMMxN7M82c38b1kEggVE3pLpZ0FwkwJkUEKMiOi52JXFA=="],
306+
304307
"@tsconfig/node22": ["@tsconfig/[email protected]", "", {}, "sha512-twLQ77zevtxobBOD4ToAtVmuYrpeYUh3qh+TEp+08IWhpsrIflVHqQ1F1CiPxQGL7doCdBIOOCF+1Tm833faNg=="],
305308

306309
"@types/estree": ["@types/[email protected]", "", {}, "sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw=="],
@@ -705,6 +708,8 @@
705708

706709
"jackspeak": ["[email protected]", "", { "dependencies": { "@isaacs/cliui": "^8.0.2" }, "optionalDependencies": { "@pkgjs/parseargs": "^0.11.0" } }, "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw=="],
707710

711+
"javascript-natural-sort": ["[email protected]", "", {}, "sha512-nO6jcEfZWQXDhOiBtG2KvKyEptz7RVbpGP4vTD2hLBdmNQSsCiicO2Ioinv6UI4y9ukqnBpy+XZ9H6uLNgJTlw=="],
712+
708713
"jiti": ["[email protected]", "", { "bin": { "jiti": "lib/jiti-cli.mjs" } }, "sha512-rg9zJN+G4n2nfJl5MW3BMygZX56zKPNVEYYqq7adpmMh4Jn2QNEwhvQlFy6jPVdcod7txZtKHWnyZiA3a0zP7A=="],
709714

710715
"js-tokens": ["[email protected]", "", {}, "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ=="],

frontend/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
},
3838
"devDependencies": {
3939
"@inspira-ui/plugins": "^0.0.1",
40+
"@trivago/prettier-plugin-sort-imports": "^5.2.2",
4041
"@tsconfig/node22": "^22.0.0",
4142
"@types/node": "^22.13.1",
4243
"@vitejs/plugin-vue": "^5.2.1",

0 commit comments

Comments
 (0)