mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-24 13:54:57 +00:00
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:
4
.github/workflows/gated-pipeline.yml
vendored
4
.github/workflows/gated-pipeline.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user