clawdie-iso/scripts/check-format.sh

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'