From 223c2357490f22283c0464dd8040a025d68d4908 Mon Sep 17 00:00:00 2001 From: Tuan-Dat Tran Date: Fri, 20 Feb 2026 10:22:06 +0100 Subject: [PATCH] chore(ci): configure husky git hooks for commitlint --- .husky/commit-msg | 1 + .husky/pre-commit | 1 + package.json | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100755 .husky/commit-msg create mode 100755 .husky/pre-commit diff --git a/.husky/commit-msg b/.husky/commit-msg new file mode 100755 index 0000000..da99483 --- /dev/null +++ b/.husky/commit-msg @@ -0,0 +1 @@ +npx --no -- commitlint --edit "$1" diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100755 index 0000000..3867a0f --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1 @@ +npm run lint diff --git a/package.json b/package.json index dcf423c..2ecbb28 100644 --- a/package.json +++ b/package.json @@ -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",