chore(frontend): 接入 ESLint、Prettier 与 Vitest 质量门禁

This commit is contained in:
yml2213
2026-11-01 20:54:45 +08:00
parent 7f6ebddd5e
commit 6056afa436
150 changed files with 3895 additions and 1349 deletions
+17 -2
View File
@@ -7,7 +7,13 @@
"dev": "vite --host 0.0.0.0",
"build": "tsc --noEmit && vite build",
"preview": "vite preview --host 0.0.0.0",
"typecheck": "tsc --noEmit"
"typecheck": "tsc --noEmit",
"format": "prettier --write \"src/**/*.{ts,tsx,css}\" \"*.{js,ts,json}\"",
"format:check": "prettier --check \"src/**/*.{ts,tsx,css}\" \"*.{js,ts,json}\"",
"lint": "eslint . --max-warnings=0",
"test": "vitest run",
"test:coverage": "vitest run --coverage",
"check": "npm run format:check && npm run lint && npm run typecheck"
},
"dependencies": {
"@ant-design/icons": "^6.0.0",
@@ -23,11 +29,20 @@
"zustand": "^5.0.8"
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@types/node": "^24.10.1",
"@types/react": "^19.1.13",
"@types/react-dom": "^19.1.9",
"@vitejs/plugin-react": "^5.0.4",
"@vitest/coverage-v8": "^5.0.5",
"eslint": "^10.14.0",
"eslint-plugin-react-hooks": "^7.1.1",
"eslint-plugin-react-refresh": "^0.5.7",
"globals": "^17.14.0",
"prettier": "^3.9.10",
"typescript": "~5.9.3",
"vite": "^7.2.4"
"typescript-eslint": "^8.72.1",
"vite": "^7.2.4",
"vitest": "^5.0.5"
}
}