Files
TREK/hooks/pre-commit
2026-05-25 21:59:42 +02:00

14 lines
270 B
Bash
Executable File

#!/usr/bin/env bash
set -e
echo "Running format..."
npm run format
# Re-stage files that format modified so the commit includes the formatted output.
git diff --name-only | while read -r file; do
git add "$file"
done
echo "[SKIPPED] Running lint..."
# npm run lint