chore: 添加 lint-staged 并更新 husky 配置

添加 lint-staged 用于在提交前自动格式化代码,同时更新 husky 的 prepare 脚本配置
This commit is contained in:
houakang
2026-04-10 10:13:08 +08:00
parent c5638ab821
commit 4d578b3f0b
3 changed files with 381 additions and 4 deletions

1
.husky/commit-msg Normal file
View File

@@ -0,0 +1 @@
pnpm exec commitlint --config commitlint.config.js --edit "${1}"