Files
metabuilder/codegen/sh/verify-lint.sh
johndoe6345789 a51130a127 feat: Add external low-code and postgres repositories
- codegen: Low-code React app with JSON-driven component system
- packagerepo: Schema-driven package repository with backend/frontend
- postgres: Next.js app with Drizzle ORM and PostgreSQL

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-21 16:48:52 +00:00

47 lines
1.1 KiB
Bash

#!/bin/bash
echo "=========================================="
echo "Running Linter Verification"
echo "=========================================="
echo ""
echo "Run 1 of 2: Running ESLint..."
npm run lint:check 2>&1 | tee /tmp/lint-run-1.log
EXIT_CODE_1=${PIPESTATUS[0]}
echo ""
echo "Exit code for run 1: $EXIT_CODE_1"
echo ""
echo "=========================================="
echo ""
sleep 2
echo "Run 2 of 2: Running ESLint again..."
npm run lint:check 2>&1 | tee /tmp/lint-run-2.log
EXIT_CODE_2=${PIPESTATUS[0]}
echo ""
echo "Exit code for run 2: $EXIT_CODE_2"
echo ""
echo "=========================================="
echo ""
if [ $EXIT_CODE_1 -eq 0 ] && [ $EXIT_CODE_2 -eq 0 ]; then
echo "✅ SUCCESS: Both linting runs passed with exit code 0!"
echo ""
echo "Summary:"
echo " - Run 1: Exit code $EXIT_CODE_1"
echo " - Run 2: Exit code $EXIT_CODE_2"
echo " - All warnings are non-blocking"
echo " - Codebase is CI/CD ready"
exit 0
else
echo "❌ FAILURE: Linting failed"
echo ""
echo "Summary:"
echo " - Run 1: Exit code $EXIT_CODE_1"
echo " - Run 2: Exit code $EXIT_CODE_2"
exit 1
fi