#!/bin/sh
# Pre-commit gate: formatting, linting, tests must all pass.
# Enabled via `core.hooksPath` (set by the `prepare` npm script).
set -e

echo "pre-commit › prettier --check"
npm run format:check

echo "pre-commit › eslint"
npm run lint

echo "pre-commit › vitest"
npm test
