# Promise recommended

Best practices for promise chains: always return, always catch, no nesting.

- Linter: ESLint
- Package: `eslint-plugin-promise` (https://github.com/eslint-community/eslint-plugin-promise#usage)
- Author: eslint-community (official)
- Rules: 10
- Weekly downloads: 7.8M, +15.7% last quarter
- Technologies: javascript (10)

## Install

```sh
npm install -D eslint eslint-plugin-promise
pnpm add -D eslint eslint-plugin-promise
yarn add -D eslint eslint-plugin-promise
bun add -d eslint eslint-plugin-promise
```

## Config: `eslint.config.js`

```js
// eslint.config.js
import promise from "eslint-plugin-promise";

export default [
  promise.configs["flat/recommended"],
];
```

## Rules it enables

| Rule | Severity | Description | Reach |
| --- | --- | --- | --- |
| [promise/no-return-in-finally](https://lintradar.dev/rules/promise/no-return-in-finally.md) | warn | Disallow return statements in `finally()`. | 38.4M |
| [promise/param-names](https://lintradar.dev/rules/promise/param-names.md) | error | Enforce consistent param names and ordering when creating new promises. | 13.5M |
| [promise/no-return-wrap](https://lintradar.dev/rules/promise/no-return-wrap.md) | error | Disallow wrapping values in `Promise.resolve` or `Promise.reject` when not needed. | 10M |
| [promise/no-nesting](https://lintradar.dev/rules/promise/no-nesting.md) | warn | Disallow nested `then()` or `catch()` statements. | 9.9M |
| [promise/always-return](https://lintradar.dev/rules/promise/always-return.md) | error | Require returning inside each `then()` to create readable and reusable Promise chains. | 9.9M |
| [promise/catch-or-return](https://lintradar.dev/rules/promise/catch-or-return.md) | error | Enforce the use of `catch()` on un-returned promises. | 9.9M |
| [promise/no-callback-in-promise](https://lintradar.dev/rules/promise/no-callback-in-promise.md) | warn | Disallow calling `cb()` inside of a `then()` (use [util.callbackify][] instead). | 9.9M |
| [promise/no-new-statics](https://lintradar.dev/rules/promise/no-new-statics.md) | error | Disallow calling `new` on a Promise static method. | 9.9M |
| [promise/no-promise-in-callback](https://lintradar.dev/rules/promise/no-promise-in-callback.md) | warn | Disallow using promises inside of callbacks. | 9.9M |
| [promise/valid-params](https://lintradar.dev/rules/promise/valid-params.md) | warn | Enforces the proper number of arguments are passed to Promise functions. | 9.9M |

---

Web page: https://lintradar.dev/presets/promise-recommended. Data from npm and the linters' documentation, collected Dec 4, 2026. Site guide for agents: https://lintradar.dev/llms.txt
