From 2920ed6aed99ce87b38c3b17bdd1c89b3abba419 Mon Sep 17 00:00:00 2001 From: Houssein Djirdeh Date: Thu, 19 Aug 2021 12:25:21 -0400 Subject: [PATCH] Adds process.exit to successful next lint output --- packages/next/cli/next-lint.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/next/cli/next-lint.ts b/packages/next/cli/next-lint.ts index 987ba5773ba120c..da80f1b614ffc11 100755 --- a/packages/next/cli/next-lint.ts +++ b/packages/next/cli/next-lint.ts @@ -198,9 +198,9 @@ const nextLint: cliCommand = async (argv) => { } if (lintOutput) { - console.log(lintOutput) + printAndExit(lintOutput, 0) } else if (lintResults && !lintOutput) { - console.log(chalk.green('✔ No ESLint warnings or errors')) + printAndExit(chalk.green('✔ No ESLint warnings or errors'), 0) } }) .catch((err) => {