Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upTreat process.exit() the same as throw in code path analysis rules (node/process-exit-as-throw) #699
Comments
feross
added
the
enhancement
label
Nov 23, 2016
This comment has been minimized.
This comment has been minimized.
|
This causes no errors in the test suite. |
feross
added this to the
standard v10 milestone
Feb 9, 2017
feross
changed the title
Make the same code path as throw at process.exit() (process-exit-as-throw)
Make the same code path as throw at process.exit() (node/process-exit-as-throw)
Mar 2, 2017
feross
changed the title
Make the same code path as throw at process.exit() (node/process-exit-as-throw)
Treat process.exit() the same as throw in code path analysis rules (node/process-exit-as-throw)
Mar 2, 2017
This comment has been minimized.
This comment has been minimized.
|
This will be part of the standard v10 beta. |
feross
closed this
Mar 2, 2017
feross
added a commit
to standard/eslint-config-standard
that referenced
this issue
Mar 2, 2017
lock
bot
locked as resolved and limited conversation to collaborators
May 10, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
feross commentedNov 23, 2016
This rule makes
process.exit()get treated like athrow, which makes other eslint rules work better.https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/process-exit-as-throw.md
(This rule depends on
eslint-plugin-node, so we should only add it if we're already depending on the plugin due to #693)