build: add lefthook git hooks for lint, format, and commitlint

VA-851
This commit is contained in:
Vance Ingalls
2026-03-23 14:55:29 -07:00
parent 67a8fa4e69
commit 41c325c02b
+14
View File
@@ -0,0 +1,14 @@
pre-commit:
parallel: true
commands:
lint:
glob: "*.{js,jsx,ts,tsx}"
run: oxlint {staged_files}
format:
glob: "*.{js,jsx,ts,tsx,json,css,md,yaml,yml}"
run: oxfmt --check {staged_files}
commit-msg:
commands:
commitlint:
run: commitlint --edit "{1}"