Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add no-process-exit? #32

Closed
fregante opened this issue Sep 16, 2016 · 2 comments
Closed

Add no-process-exit? #32

fregante opened this issue Sep 16, 2016 · 2 comments

Comments

@fregante
Copy link
Member

fregante commented Sep 16, 2016

[process.exit()] doesn’t give the application any chance to respond to the error. It’s usually better to throw an error and allow the application to handle it appropriately

This sounds good, especially because most of the time throw new Error() behaves the same.
More info: http://eslint.org/docs/rules/no-process-exit

@sindresorhus
Copy link
Member

sindresorhus commented Sep 16, 2016

It's intentionally not included here, since we have xo/no-process-exit included directly in XO.

See: eslint/eslint#2666

@fregante
Copy link
Member Author

Makes sense! I saw that ESLint was my throwing an error but xo wasn't. That's a good exception

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants