diff --git a/src/client/.prettierrc b/src/client/.prettierrc index 8785385c9..4ac262a5e 100644 --- a/src/client/.prettierrc +++ b/src/client/.prettierrc @@ -3,5 +3,6 @@ "trailingComma": "all", "arrowParens": "avoid", "printWidth": 120, - "endOfLine": "auto" + "endOfLine": "auto", + "plugins": ["prettier-plugin-sort-json"] } diff --git a/src/client/package-lock.json b/src/client/package-lock.json index 70d9b4c19..5e1077e36 100644 --- a/src/client/package-lock.json +++ b/src/client/package-lock.json @@ -69,6 +69,7 @@ "eslint-plugin-react-refresh": "^0.4.5", "license-checker": "^25.0.1", "prettier": "^3.1.0", + "prettier-plugin-sort-json": "^4.0.0", "typescript": "^5.3.3", "vite": "^5.2.8", "vite-plugin-svgr": "^4.2.0", @@ -8198,6 +8199,18 @@ "node": ">=6.0.0" } }, + "node_modules/prettier-plugin-sort-json": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/prettier-plugin-sort-json/-/prettier-plugin-sort-json-4.0.0.tgz", + "integrity": "sha512-zV5g+bWFD2zAqyQ8gCkwUTC49o9FxslaUdirwivt5GZHcf57hCocavykuyYqbExoEsuBOg8IU36OY7zmVEMOWA==", + "dev": true, + "engines": { + "node": ">=18.0.0" + }, + "peerDependencies": { + "prettier": "^3.0.0" + } + }, "node_modules/pretty-bytes": { "version": "5.6.0", "resolved": "https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-5.6.0.tgz", diff --git a/src/client/package.json b/src/client/package.json index dc3a83783..935f408be 100644 --- a/src/client/package.json +++ b/src/client/package.json @@ -84,6 +84,7 @@ "eslint-plugin-react-refresh": "^0.4.5", "license-checker": "^25.0.1", "prettier": "^3.1.0", + "prettier-plugin-sort-json": "^4.0.0", "typescript": "^5.3.3", "vite": "^5.2.8", "vite-plugin-svgr": "^4.2.0",