From afbc07bb44170d7b6f060dd0276157c8db3da68c Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Tue, 21 Apr 2026 01:24:38 +0100 Subject: feat(justfile): add check-fmt and check recipes; pre-commit hook Split concerns: fmt-check (check-fmt) from lint. check-fmt mirrors fmt with each tool's --check/-d flag. check runs both as a single quality gate. A new .githooks/pre-commit runs 'just check' on every commit; bypass with git commit --no-verify. Also drop just --fmt --check and prettier --check from the lint recipe (they're format checks, belong in check-fmt). --- .githooks/pre-commit | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 .githooks/pre-commit (limited to '.githooks') diff --git a/.githooks/pre-commit b/.githooks/pre-commit new file mode 100755 index 0000000..8ee1775 --- /dev/null +++ b/.githooks/pre-commit @@ -0,0 +1,3 @@ +#!/bin/sh +# Code quality gate. Bypass with: git commit --no-verify +exec just check -- cgit v1.2.3-70-g09d2