-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlefthook.yml
More file actions
32 lines (27 loc) · 826 Bytes
/
Copy pathlefthook.yml
File metadata and controls
32 lines (27 loc) · 826 Bytes
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
# lefthook config — pre-commit and commit-msg gates.
# https://github.com/evilmartians/lefthook
#
# Install hooks once per clone: `bunx lefthook install`
# Bypassing with --no-verify is not permitted on this project.
pre-commit:
parallel: true
commands:
biome-check:
glob: "*.{ts,tsx,js,jsx,mjs,cjs,json,jsonc,css}"
run: bunx biome check --no-errors-on-unmatched --files-ignore-unknown=true {staged_files}
stage_fixed: true
typecheck:
glob: "*.{ts,tsx}"
run: bunx tsc --noEmit --pretty
commit-msg:
commands:
commitlint:
run: bunx commitlint --edit {1}
pre-push:
commands:
test:
# Exclude site/tests/e2e — those are Playwright specs, run via `bun run e2e`.
run: bun test --bail --path-ignore-patterns='**/tests/e2e/**'
skip:
- merge
- rebase