-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathlefthook.yaml
More file actions
32 lines (31 loc) · 936 Bytes
/
lefthook.yaml
File metadata and controls
32 lines (31 loc) · 936 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
pre-commit:
piped: true
jobs:
- name: gitleaks
run: gitleaks protect --staged --config .gitleaks.toml
- name: oxlint
glob: '*.{ts,tsx,js,jsx,mts,cts}'
run: pnpm oxlint --max-warnings=0 --type-aware --type-check --fix {staged_files}
stage_fixed: true
- name: oxfmt
glob: '*'
run: pnpm oxfmt --no-error-on-unmatched-pattern {staged_files}
stage_fixed: true
- name: nixfmt
glob: '*.nix'
run: nix develop --command nixfmt {staged_files}
stage_fixed: true
pre-push:
parallel: true
jobs:
- name: knip
run: pnpm run lint:knip
- name: lockfile-sync-check
glob: '{**/package.json,pnpm-workspace.yaml}'
run: pnpm install --lockfile-only --frozen-lockfile
- name: lint-all-on-lockfile-change
glob: 'pnpm-lock.yaml'
run: pnpm lint
- name: test-all-on-lockfile-change
glob: 'pnpm-lock.yaml'
run: pnpm test