From 04153caaf59b7572668b55d6cff7e69db2e14658 Mon Sep 17 00:00:00 2001 From: filtered <176114999+webfiltered@users.noreply.github.com> Date: Wed, 15 Jan 2025 02:51:32 +1100 Subject: [PATCH] Fix prettier output in CI does not match IDE (#2243) --- .prettierrc | 12 ++++++++++-- package.json | 4 ++-- 2 files changed, 12 insertions(+), 4 deletions(-) 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",