next.js
905ee8ed - fix(next-lint): fix next lint not throwing exit 1 on error (#62378)

Commit
1 year ago
fix(next-lint): fix next lint not throwing exit 1 on error (#62378) ## Changes The error on https://github.com/vercel/next.js/blob/3e92d8a41d5ed4970e252b6e34f11b100dacd167/packages/next/src/lib/eslint/runLintCheck.ts#L117 runs to the `try` in here → https://github.com/vercel/next.js/blob/3e92d8a41d5ed4970e252b6e34f11b100dacd167/packages/next/src/cli/next-lint.ts#L191 instead of throwing in the `catch`, so we add a last `else` statement to `process.exit(1)`. Closes NEXT-2567
Author
Parents
Loading