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