You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ESLint does not address `process.exit()` as stop in code path analysis, then [consistent-return]rule will warn the above code.
ESLint does not mark code after `process.exit()`calls as unreachable like it does with `throw` and `return` expressions, meaning rules like [consistent-return] will still warn.
If you turn this rule on, ESLint comes to address `process.exit()` as throw in code path analysis. So, above code will get expected code path.
This rule overrides the default code path analyzer so that code after `process.exit()`calls are marked as unreachable, meaning code like the above will not trigger warnings.