-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlefthook.yaml
37 lines (32 loc) · 867 Bytes
/
lefthook.yaml
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
pre-commit:
parallel: true
commands:
biome-check:
glob: "*.{js,ts,cjs,mjs,d.cts,d.mts,jsx,tsx,json,jsonc}"
run: |
bun biome check \
--no-errors-on-unmatched \
--files-ignore-unknown=true {staged_files}
git update-index --again
type-check:
glob: "*.{js,ts,cjs,mjs,d.cts,d.mts,jsx,tsx,json,jsonc}"
run: |
bun tsc --noEmit
clippy:
root: "src-tauri/"
glob: "*.rs"
run: |
cargo clippy --all-targets --all-features -- -D warnings
rustfmt:
root: "src-tauri/"
glob: "*.rs"
run: |
cargo fmt -- --check
pre-push:
commands:
biome-check:
glob: "*.{js,ts,cjs,mjs,d.cts,d.mts,jsx,tsx,json,jsonc}"
run: |
bun biome check \
--no-errors-on-unmatched \
--files-ignore-unknown=true {push_files}