Logo
  • DB
  • About
  • Updates
eslint-plugin-promise

Enforce best practices for JavaScript promises

❯ npm i --save-dev eslint-plugin-promise
🏠 Homepage🐛 BugsGitHub LogoGitHubnpm Logonpm
🕵️‍♂️ Linter
  • 1 Config
  • 15 Rules
GitHub LogoGitHub
  • JavaScript
  • 873 Stars
  • 14 Watchers
npm Logonpm
  • 2.5M Wkly Downloads
  • +40% WoW
  • 6.1.1 67.1 kB
📋 Requirements
  • Node: ^12.22 || ^14.17 || >=16
  • ESLint: ^7 || ^8
ConfigurationRules
recommended5 error • 5 warn • 2 off
RuleDescription🔧💡💭🗂️⚙️
always-return⚙️
avoid-new📖🚫
catch-or-return⚙️
no-callback-in-promise📖⚙️⚠️
no-multiple-resolved
no-native📖🚫
no-nesting📖⚠️
no-new-statics🔧
no-promise-in-callback📖⚠️
no-return-in-finally⚠️
no-return-wrap📖⚙️
param-names📖⚙️
prefer-await-to-callbacks📖
prefer-await-to-then📖
valid-params

Ensures the proper number of arguments are passed to Promise functions

⚠️
© 2024 Lintbase