forked from codefuturist/email-mcp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlefthook.yml
More file actions
49 lines (46 loc) · 1.37 KB
/
Copy pathlefthook.yml
File metadata and controls
49 lines (46 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# ==============================================================================
# Lefthook Git Hooks Configuration
# ==============================================================================
# Docs: https://lefthook.dev/configuration/
#
# Install hooks: pnpm lefthook install
# ==============================================================================
pre-commit:
parallel: true
commands:
biome:
glob: '*.{ts,tsx,js,jsx,json,jsonc}'
exclude: '*lock*'
run: npx biome check --write {staged_files}
stage_fixed: true
eslint:
glob: 'src/**/*.{ts,tsx,js,jsx}'
run: npx eslint --fix {staged_files}
stage_fixed: true
typecheck:
run: npx tsc --noEmit
actionlint:
glob: '.github/workflows/*.{yml,yaml}'
run: actionlint {staged_files}
commit-msg:
commands:
conventional-commit:
run: |
cog verify --file {1} 2>/dev/null || {
echo ""
echo "❌ Invalid commit message format"
echo ""
echo "Expected: <type>(<scope>): <description>"
echo "Example: feat(imap): add thread reconstruction"
echo ""
echo "Types: feat, fix, docs, style, refactor, perf, test, build, ci, chore, revert"
echo ""
exit 1
}
pre-push:
parallel: true
commands:
test:
run: pnpm test
check:
run: pnpm check