Unverified Commit 4e769113 authored by Houssein Djirdeh's avatar Houssein Djirdeh Committed by GitHub

[ESLint] Adds `process.exit` to `next lint` success output (#28299)

This PR ensures that `next lint` always exits after the process is complete. This fixes #28194.
parent 517ea6dc
......@@ -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) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment