feat(project): migrate from husky and lint-staged to lefthook (#6104)

This commit is contained in:
Vben
2025-05-03 19:43:12 +08:00
committed by GitHub
parent 045bc4e5ee
commit 5689ac60ff
17 changed files with 307 additions and 116 deletions

View File

@@ -98,8 +98,8 @@ The execution command is: `pnpm run [script]` or `npm run [script]`.
"postinstall": "pnpm -r run stub --if-present",
// Only allow using pnpm
"preinstall": "npx only-allow pnpm",
// Install husky
"prepare": "is-ci || husky",
// Install lefthook
"prepare": "is-ci || lefthook install",
// Preview the application
"preview": "turbo-run preview",
// Package specification check