#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

# Only run if Husky is enabled
if [ "$HUSKY_ENABLED" = "1" ] || [ -f .husky-enabled ]; then
  echo "Running pre-commit hooks..."
  npm run lint-fix
else
  echo "Husky pre-commit hook skipped (not enabled)"
  exit 0
fi
