#!/bin/sh
echo "π Running pre-commit checks..."
# Run lint-staged for formatting and linting on staged files
npx lint-staged
# Run full prettier check on all files
echo "π¨ Checking prettier formatting on all files..."
npx prettier --check .
# Run type checking
echo "π§ Type checking..."
npm run typecheck
echo "β Pre-commit checks passed!"