clawdie-iso/scripts/check-format.sh

12 lines
264 B
Bash
Raw Normal View History

#!/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'