Skip to content

Commit d00904c

Browse files
oschwaldclaude
andcommitted
Add pre-commit hook running precious lint
Checks staged files with precious before each commit. Enable with: git config core.hooksPath .githooks Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 1f37a18 commit d00904c

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.githooks/pre-commit

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
precious lint --staged

CLAUDE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,5 @@ src/
6262

6363
- **mise** manages Node, pnpm, and precious versions (see `mise.toml`).
6464
- **precious** is the code-quality runner (config: `.precious.toml`).
65+
- **Git hooks** live in `.githooks/`. Enable with: `git config core.hooksPath .githooks`
6566
- GitHub Actions: test, lint, CodeQL, zizmor, release workflows.

0 commit comments

Comments
 (0)