clawdie-iso/scripts/check-format.sh
Sam & Claude 6185610b37 Codify markdown format gate (Sam & Codex)
---

Build: not run — docs/tooling only

Tests: pass — ./scripts/check-format.sh; sh -n scripts/check-format.sh; git diff --check
2026-05-20 13:26:04 +02:00

11 lines
264 B
Bash
Executable file

#!/bin/sh
# Check repository markdown formatting using the pinned Prettier major version.
# Run before pushing documentation changes.
set -eu
ROOT_DIR="$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)"
cd "$ROOT_DIR"
exec npx --yes prettier@3 --check '**/*.md'