no-process-exit
eslint
No autofix
eslint.config.js
export default [
{
rules: {
"no-process-exit": "error",
},
},
];This rule is deprecated. Check its documentation for a replacement before enabling it.
process.exit(1);
process.exit(0);Process.exit();
var exit = process.exit;Examples from the ESLint documentation.
No tracked preset enables this rule, so it has no reach yet.
None of the tracked presets enable this rule. Turn it on with the config below.
no-process-exit
eslint
export default [
{
rules: {
"no-process-exit": "error",
},
},
];Oxlint does not have this rule.
nursery/noProcessExit
nursery · since 2.6.0
{
"linter": {
"rules": {
"nursery": {
"noProcessExit": "error"
}
}
}
}