chore: add husky + lint-staged + commitlint for commit quality control

This commit is contained in:
SpecialX
2026-07-07 20:17:15 +08:00
parent fb619139e5
commit 072c0d52b9
5 changed files with 1410 additions and 4 deletions

1
.husky/commit-msg Normal file
View File

@@ -0,0 +1 @@
npx --no-install commitlint --edit $1

1
.husky/pre-commit Normal file
View File

@@ -0,0 +1 @@
npx lint-staged