# no-process-exit

Rule `eslint/no-process-exit`. Disallow the use of `process.exit()`

- Source: eslint
- Technologies: JavaScript
- Kind: style
- Needs type information: no
- Autofix: no
- Deprecated: yes
- Reach: 0 weekly downloads of presets that enable it
- Trend: 0% last quarter
- Rank: #1704 by reach

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `no-process-exit` | no | no | package `eslint` | [docs](https://eslint.org/docs/latest/rules/no-process-exit) |
| Biome | `nursery/noProcessExit` | no | no | group nursery, since 2.6.0 | [docs](https://biomejs.dev/linter/rules/no-process-exit/) |

## Code examples

### Incorrect: the rule reports this

```js
process.exit(1);
process.exit(0);
```

### Correct: the rule accepts this

```js
Process.exit();
var exit = process.exit;
```

Examples from the ESLint documentation.

## Enable it

### ESLint: `eslint.config.js`

```js
export default [
  {
    rules: {
      "no-process-exit": "error",
    },
  },
];
```

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "nursery": {
        "noProcessExit": "error"
      }
    }
  }
}
```

## Related rules

- [node/no-process-exit](https://lintradar.dev/rules/node/no-process-exit.md): Disallow the use of `process.exit()`
- [unicorn/no-process-exit](https://lintradar.dev/rules/unicorn/no-process-exit.md): Disallow `process.exit()`.
- [eslint/sort-keys](https://lintradar.dev/rules/eslint/sort-keys.md): Require object keys to be sorted
- [eslint/sort-imports](https://lintradar.dev/rules/eslint/sort-imports.md): Enforce sorted `import` declarations within modules
- [eslint/no-undefined](https://lintradar.dev/rules/eslint/no-undefined.md): Disallow the use of `undefined` as an identifier
- [eslint/id-length](https://lintradar.dev/rules/eslint/id-length.md): Enforce minimum and maximum identifier lengths

---

Web page: https://lintradar.dev/rules/eslint/no-process-exit. Data from npm and the linters' documentation, collected Dec 4, 2026. Site guide for agents: https://lintradar.dev/llms.txt
