generated from meza/create-meza-cli
-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
lefthook.yml
38 lines (37 loc) · 1.1 KB
/
lefthook.yml
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
#
# Lefthook
#
# Skip lefthook execution:
# e.g. `LEFTHOOK=0 git commit -am "Lefthook skipped"`
# https://github.com/evilmartians/lefthook/blob/master/docs/full_guide.md#skip-lefthook-execution
#
#
# Full Lefthook guide:
# https://github.com/evilmartians/lefthook/blob/master/docs/full_guide.md
#
# Full list of git hooks:
# https://git-scm.com/docs/githooks
commit-msg:
commands:
lint-commit-msg:
run: npx commitlint --edit
pre-commit:
parallel: false
commands:
check:
glob: "*.{js,ts,cjs,mjs,d.cts,d.mts,jsx,tsx,json,jsonc}"
run: npx @biomejs/biome check --write --no-errors-on-unmatched --files-ignore-unknown=true --reporter=summary --colors=off {staged_files}
stage_fixed: true
lint:
run: npx pnpm lint
test:
run: npx pnpm report
pre-push:
commands:
check:
glob: "*.{js,ts,cjs,mjs,d.cts,d.mts,jsx,tsx,json,jsonc}"
run: npx @biomejs/biome check --no-errors-on-unmatched --files-ignore-unknown=true --reporter=summary --colors=off {push_files}
post-merge:
commands:
install-deps-postmerge:
run: npx pnpm install --frozen-lockfile