feat: expose more options for lefthook

This commit is contained in:
eric
2026-03-15 16:51:49 +01:00
parent 0d339e2de0
commit 9983f0b8e9
5 changed files with 167 additions and 21 deletions

View File

@@ -67,6 +67,14 @@
# };
};
# For advanced Lefthook fields like `stage_fixed`, use raw passthrough.
# repo-lib merges this after generated checks.
# lefthook.pre-push.commands.tests.stage_fixed = true;
# lefthook.commit-msg.commands.commitlint = {
# run = "pnpm commitlint --edit {1}";
# stage_fixed = true;
# };
# repo-lib also installs built-in hooks for:
# - treefmt / nixfmt on `pre-commit`
# - gitleaks on `pre-commit`