Add lefthook formatter checks

This commit is contained in:
Nathan Flurry 2026-03-10 22:20:05 -07:00
parent 6d7e67fe72
commit 97d9356932
5 changed files with 339 additions and 211 deletions

11
lefthook.yml Normal file
View file

@ -0,0 +1,11 @@
pre-commit:
parallel: true
jobs:
- name: biome
glob: "*.{cjs,cts,js,jsx,json,jsonc,mjs,mts,ts,tsx}"
run: pnpm exec biome format --write --no-errors-on-unmatched {staged_files}
stage_fixed: true
- name: rustfmt
glob: "*.rs"
run: rustfmt --edition 2021 {staged_files}
stage_fixed: true