From 41c325c02b6513efb4e52ea5ef2b038471fef852 Mon Sep 17 00:00:00 2001 From: Vance Ingalls Date: Mon, 23 Mar 2026 10:22:51 -0700 Subject: [PATCH] build: add lefthook git hooks for lint, format, and commitlint VA-851 --- lefthook.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 lefthook.yml diff --git a/lefthook.yml b/lefthook.yml new file mode 100644 index 0000000000..6fb79cfe34 --- /dev/null +++ b/lefthook.yml @@ -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}"