chore: 接入 husky + lint-staged,pre-commit 跑 tsc,pre-push 跑 css:audit
- pre-commit: npx lint-staged → tsc --noEmit(仅检查暂存的 TS/TSX 文件)
This commit is contained in:
+4
-1
@@ -11,7 +11,8 @@
|
||||
"test": "vitest",
|
||||
"test:run": "vitest run",
|
||||
"test:coverage": "vitest run --coverage",
|
||||
"css:audit": "node scripts/css-audit.mjs"
|
||||
"css:audit": "node scripts/css-audit.mjs",
|
||||
"prepare": "husky"
|
||||
},
|
||||
"dependencies": {
|
||||
"@ant-design/icons": "5.3.0",
|
||||
@@ -25,6 +26,8 @@
|
||||
"@types/react-dom": "18.2.18",
|
||||
"@vitejs/plugin-react": "4.2.1",
|
||||
"@vitest/coverage-v8": "^1.6.0",
|
||||
"husky": "^9.1.7",
|
||||
"lint-staged": "^17.0.7",
|
||||
"typescript": "5.3.3",
|
||||
"vite": "5.1.0",
|
||||
"vite-plugin-compression2": "2.5.3",
|
||||
|
||||
Reference in New Issue
Block a user