Skip to content

Commit

Permalink
[ESLint] Adds process.exit to next lint success output (#28299)
Browse files Browse the repository at this point in the history
This PR ensures that `next lint` always exits after the process is complete. This fixes #28194.
  • Loading branch information
housseindjirdeh committed Aug 19, 2021
1 parent 517ea6d commit 4e76911
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/next/cli/next-lint.ts
Expand Up @@ -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) => {
Expand Down

0 comments on commit 4e76911

Please sign in to comment.