统一前后端代码格式化配置

This commit is contained in:
yml2213
2026-08-16 17:27:12 +08:00
parent 8705f6a6a1
commit 5c7c3e14e3
278 changed files with 6386 additions and 5500 deletions
+4
View File
@@ -6,8 +6,11 @@
"scripts": {
"dev": "vite",
"build": "tsc -b && vite build",
"format": "prettier --config ../../.prettierrc.json --ignore-path ../../.prettierignore --write \"src/**/*.{ts,tsx,js,jsx,json,css}\" \"tests/**/*.{ts,tsx,js,jsx}\" package.json tsconfig.json vite.config.ts index.html",
"format:check": "prettier --config ../../.prettierrc.json --ignore-path ../../.prettierignore --check \"src/**/*.{ts,tsx,js,jsx,json,css}\" \"tests/**/*.{ts,tsx,js,jsx}\" package.json tsconfig.json vite.config.ts index.html",
"test": "node --experimental-strip-types --test tests/*.test.ts",
"typecheck": "tsc -b --noEmit",
"check": "npm run format:check && npm run typecheck && npm test && npm run build",
"preview": "vite preview"
},
"dependencies": {
@@ -27,6 +30,7 @@
"@types/react": "^19.2.7",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^6.0.1",
"prettier": "3.8.3",
"typescript": "~6.0.2",
"vite": "^8.0.7"
}