fuzzyworld

word-waltz / files / .githooks / pre-commit

pre-commit

297 B · history · blame

1#!/bin/sh
2# Pre-commit hook: run spell check and type check before allowing a commit.
3# Installed automatically via `npm run prepare` (git config core.hooksPath).
4
5set -e
6
7echo "→ cspell…"
8npx cspell "**" --no-progress
9
10echo "→ tsc…"
11npx tsc --noEmit
12
13echo "✓ Pre-commit checks passed."