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

echo "==> UAEF [backend-nestjs]: Pre-commit Security & Lint Gates"

npx secretlint "**/*" || exit 1
npx tsc --noEmit -p tsconfig.json || exit 1

echo "==> Running NestJS ESLint..."
npm run lint || exit 1

echo "==> All backend pre-commit gates passed."
