by eslint-community · eslint-plugin-promise
Best practices for promise chains: always return, always catch, no nesting.
pnpm add -D eslint eslint-plugin-promise// eslint.config.js
import promise from "eslint-plugin-promise";
export default [
promise.configs["flat/recommended"],
];| Rule | Severity | Linters | Reach | Trend |
|---|---|---|---|---|
| promise/no-return-in-finally | warn | In ESLint, Oxlint, Biome | 37.8M | +79.4% |
| promise/param-names | error | In ESLint, Oxlint | 13.4M | +25.7% |
| promise/no-return-wrap | error | In ESLint, Oxlint | 10M | +29.7% |
| promise/no-nesting | warn | In ESLint, Oxlint, Biome | 9.8M | +29.6% |
| promise/always-return | error | In ESLint, Oxlint | 9.8M | +29.6% |
| promise/catch-or-return | error | In ESLint, Oxlint | 9.8M | +29.6% |
| promise/no-callback-in-promise | warn | In ESLint, Oxlint | 9.8M | +29.6% |
| promise/no-new-statics | error | In ESLint, Oxlint | 9.8M | +29.6% |
| promise/no-promise-in-callback | warn | In ESLint, Oxlint | 9.8M | +29.6% |
| promise/valid-params | warn | In ESLint, Oxlint | 9.8M | +29.6% |