chore: add lefthook for pre-commit checks

This commit is contained in:
2026-03-05 14:21:18 +04:00
parent 3b7fa31670
commit 0caab1e8e2
3 changed files with 38 additions and 1 deletions

11
lefthook.yml Normal file
View File

@@ -0,0 +1,11 @@
# lefthook.yml
pre-commit:
parallel: true
commands:
format:
glob: '*.{ts,tsx,js,jsx,json,md}'
run: bun run format:check
lint:
glob: '*.{ts,tsx,js,jsx}'
run: bun run lint