-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlefthook.yml
More file actions
36 lines (30 loc) · 932 Bytes
/
lefthook.yml
File metadata and controls
36 lines (30 loc) · 932 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
# lefthook.yml — git hook runner config for Stackbox
# Docs: https://lefthook.dev/configuration/
pre-commit:
parallel: true
jobs:
- name: biome lint + format check
glob: "*.{ts,tsx,js,jsx,json}"
run: bun biome check --no-errors-on-unmatched {staged_files}
- name: typescript typecheck
glob: "*.{ts,tsx}"
run: bun run typecheck
- name: no debug console.log
glob: "render/**/*.{ts,tsx}"
run: |
if grep -rn "console\.log" {staged_files} 2>/dev/null; then
echo "ERROR: console.log found in staged files. Use the notifications system instead."
exit 1
fi
pre-push:
parallel: false
jobs:
- name: cargo check
root: "kernel/"
run: cargo check --all-targets
- name: cargo clippy
root: "kernel/"
run: cargo clippy --all-targets --
- name: cargo fmt check
root: "kernel/"
run: cargo fmt --check