diff --git a/.prettierrc b/.prettierrc index 9bed0b8e2..07c5ccc22 100644 --- a/.prettierrc +++ b/.prettierrc @@ -6,5 +6,13 @@ "printWidth": 80, "importOrder": ["^@core/(.*)$", "", "^@/(.*)$", "^[./]"], "importOrderSeparation": true, - "importOrderSortSpecifiers": true -} \ No newline at end of file + "importOrderSortSpecifiers": true, + "overrides": [ + { + "files": "*.{js,cjs,mjs,ts,cts,mts,tsx,vue}", + "options": { + "plugins": ["@trivago/prettier-plugin-sort-imports"] + } + } + ] +} diff --git a/package.json b/package.json index d85b72d8a..8f53485c0 100644 --- a/package.json +++ b/package.json @@ -17,8 +17,8 @@ "update-litegraph": "node scripts/update-litegraph.js", "zipdist": "node scripts/zipdist.js", "typecheck": "vue-tsc --noEmit && tsc --noEmit && tsc-strict", - "format": "prettier --write './**/*.{js,ts,tsx,vue,mts}' --plugin @trivago/prettier-plugin-sort-imports", - "format:check": "prettier --check './**/*.{js,ts,tsx,vue,mts}' --plugin @trivago/prettier-plugin-sort-imports", + "format": "prettier --write './**/*.{js,ts,tsx,vue,mts}'", + "format:check": "prettier --check './**/*.{js,ts,tsx,vue,mts}'", "test:jest": "jest --config jest.config.ts", "test:generate": "npx tsx tests-ui/setup", "test:browser": "npx playwright test",