chore(husky): add pre-commit and pre-push hooks

This commit is contained in:
2026-04-04 12:25:35 +08:00
parent 0b353ad6a0
commit 0ccb086598
5 changed files with 601 additions and 261 deletions
+1
View File
@@ -3,3 +3,4 @@ node_modules/
.turbo/
.idea/
.eslintcache
/.husky/_
+1
View File
@@ -0,0 +1 @@
pnpm lint:staged
+2
View File
@@ -0,0 +1,2 @@
pnpm typecheck
pnpm test
+3 -1
View File
@@ -10,7 +10,8 @@
"lint": "turbo run lint && eslint .",
"typecheck": "turbo run typecheck",
"format": "prettier --write .",
"lint:staged": "lint-staged"
"lint:staged": "lint-staged",
"prepare": "husky"
},
"keywords": [],
"author": "",
@@ -21,6 +22,7 @@
"@eslint/js": "^10.0.1",
"eslint": "^10.2.0",
"globals": "^17.4.0",
"husky": "^9.1.7",
"lint-staged": "^16.4.0",
"prettier": "^3.8.1",
"turbo": "^2.9.3"
+578 -244
View File
File diff suppressed because it is too large Load Diff