File tree Expand file tree Collapse file tree 5 files changed +29
-36
lines changed
Expand file tree Collapse file tree 5 files changed +29
-36
lines changed Original file line number Diff line number Diff line change @@ -35,3 +35,4 @@ coverage
3535* .env
3636.worktrees /
3737.claude /
38+ lefthook-local.yml
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ commit-msg :
2+ commands :
3+ conventional-commit :
4+ run : |
5+ MSG=$(grep -v '^#' "{1}" | head -1)
6+ if [ -z "$MSG" ]; then exit 0; fi
7+ PATTERN='^(feat|fix|docs|style|refactor|perf|test|build|ci|chore|revert)(\(.+\))?: .+'
8+ if ! echo "$MSG" | grep -qE "$PATTERN"; then
9+ echo ""
10+ echo " Bad commit message: $MSG"
11+ echo ""
12+ echo " Must match: <type>(<scope>): <description>"
13+ echo ""
14+ echo " Types: feat fix docs style refactor perf test build ci chore revert"
15+ echo " Examples:"
16+ echo " feat: add shadow DOM diagnostics"
17+ echo " fix(solver): resolve WS leak race"
18+ echo " chore: update dependencies"
19+ echo ""
20+ exit 1
21+ fi
22+
23+ pre-push :
24+ commands :
25+ test :
26+ run : npx vitest run
Original file line number Diff line number Diff line change 4141 "test:integration" : " vitest run --project=integration" ,
4242 "coverage" : " npm run build:ts && c8 --reporter=text --reporter=html --reporter=lcov cross-env DEBUG=quiet mocha" ,
4343 "start" : " env-cmd -f .env bun build" ,
44- "prepare" : " husky || true "
44+ "prepare" : " lefthook install "
4545 },
4646 "files" : [
4747 " assets/*" ,
195195 "devDependencies" : {
196196 "@effect/vitest" : " 4.0.0-beta.31" ,
197197 "env-cmd" : " ^11.0.0" ,
198- "husky " : " ^9.1.7 " ,
198+ "lefthook " : " ^1.11.13 " ,
199199 "vitest" : " ^4.0.18"
200200 }
201201}
You can’t perform that action at this time.
0 commit comments