-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathlefthook.yml
More file actions
41 lines (33 loc) · 853 Bytes
/
lefthook.yml
File metadata and controls
41 lines (33 loc) · 853 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
33
34
35
36
37
38
39
40
41
# Refer for explanation to following link:
# https://lefthook.dev/configuration/
pre-commit:
parallel: true
commands:
oxlint:
glob: "**/*.{ts,tsx,js,jsx}"
run: bunx oxlint --fix {staged_files} && git add {staged_files}
oxfmt:
glob: "**/*.{ts,tsx,js,jsx,json,md}"
run: bunx oxfmt --write {staged_files} && git add {staged_files}
# typecheck:
# run: bun run check-types
pre-push:
parallel: true
commands:
build:
run: bun run build
# push-secrets:
# run: bun run secrets:push
# typecheck-full:
# tags: ci types
# run: bun run check-types
audit:
run: bun audit --audit-level=high --prod
# TODO
# test:
# run: bun run test
# TODO
# commit-msg:
# commands:
# conventional:
# run: bunx commitlint --edit {1} # @commitlint/cli