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 @@ npm 脚本是项目常见的配置,用于执行一些常见的任务,比如
"postinstall": "pnpm -r run stub --if-present",
// 只允许使用pnpm
"preinstall": "npx only-allow pnpm",
// husky的安装
"prepare": "is-ci || husky",
// lefthook的安装
"prepare": "is-ci || lefthook install",
// 预览应用
"preview": "turbo-run preview",
// 包规范检查