aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.githooks/pre-commit
diff options
context:
space:
mode:
authorLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-04-21 01:24:38 +0100
committerLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-04-21 01:24:38 +0100
commitafbc07bb44170d7b6f060dd0276157c8db3da68c (patch)
tree6781c6edd81c09b58a94fae46633a1048d5c4ccb /.githooks/pre-commit
parent7d1c9e7f965a3e6cfdb9674d283f0170e0c6ec7b (diff)
downloaddotfiles-afbc07bb44170d7b6f060dd0276157c8db3da68c.tar.gz
dotfiles-afbc07bb44170d7b6f060dd0276157c8db3da68c.tar.bz2
dotfiles-afbc07bb44170d7b6f060dd0276157c8db3da68c.zip
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).
Diffstat (limited to '.githooks/pre-commit')
-rwxr-xr-x.githooks/pre-commit3
1 files changed, 3 insertions, 0 deletions
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