fix(ci): remove deprecated eslint compact formatter from lint gate

The compact formatter was removed from ESLint core. Switch to the
default stylish formatter and adjust the error-counting grep pattern.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-10 14:12:31 +00:00
parent ff4ef4363b
commit ed96f95e28

View File

@@ -444,9 +444,9 @@ jobs:
run: |
set -o pipefail
cd frontends/nextjs
npx eslint . --format compact 2>&1 | tee /tmp/lint-out.txt
npx eslint . 2>&1 | tee /tmp/lint-out.txt
# Count errors in local src/ only (skip workspace transitive errors)
LOCAL_ERRORS=$(grep -c "Error -" /tmp/lint-out.txt 2>/dev/null || echo "0")
LOCAL_ERRORS=$(grep -cE "error " /tmp/lint-out.txt 2>/dev/null || echo "0")
echo "Total lint issues: $LOCAL_ERRORS"
# Allow up to 1500 issues (pre-existing workspace type-safety warnings)
if [ "$LOCAL_ERRORS" -gt 1500 ]; then