Skip to content

How to Better Implement This Code to Avoid no-process-exit? #14241

Answered by nzakas
manavm1990 asked this question in Q&A
Discussion options

You must be logged in to vote

In this case it’s fine to turn off the rule. In general, process.exit() is best avoided because there’s no way to catch or respond to it. In the entry point to a CLI or service, it makes sense to use it.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by manavm1990
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants