n/process-exit-as-throw
eslint-plugin-n
No autofixRecommended
eslint.config.js
import n from "eslint-plugin-n";
export default [
{
plugins: { n },
rules: {
"n/process-exit-as-throw": "error",
},
},
];Require that process.exit() expressions use the same code path as throw
No code example for this rule
The linters' documentation does not include one we could extract.
n/process-exit-as-throw
eslint-plugin-n
import n from "eslint-plugin-n";
export default [
{
plugins: { n },
rules: {
"n/process-exit-as-throw": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Disallow import declarations which import extraneous modules
Disallow string concatenation with __dirname, __filename, and import.meta paths