chore(ci): configure husky git hooks for commitlint

This commit is contained in:
Tuan-Dat Tran
2026-02-20 10:22:06 +01:00
parent 3012ebf630
commit 223c235749
3 changed files with 4 additions and 1 deletions

1
.husky/commit-msg Executable file
View File

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

1
.husky/pre-commit Executable file
View File

@@ -0,0 +1 @@
npm run lint

View File

@@ -15,7 +15,8 @@
"test:e2e": "playwright test",
"test:e2e:ui": "playwright test --ui",
"test:perf": "k6 run tests/performance/k6/load.js",
"test:lighthouse": "lhci autorun --config tests/performance/lighthouserc.js"
"test:lighthouse": "lhci autorun --config tests/performance/lighthouserc.js",
"prepare": "husky"
},
"dependencies": {
"framer-motion": "^12.34.1",