npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@mizunashi_mana/eslint-plugin-promise

v1.0.0

Published

ESLint plugin for Promise best practices (ESLint v10)

Readme

@mizunashi_mana/eslint-plugin-promise

npm version

ESLint plugin for Promise best practices, rewritten for ESLint v10.

This is a modern rewrite of eslint-plugin-promise targeting ESLint v10's flat config and Rule API.

Install

npm install --save-dev @mizunashi_mana/eslint-plugin-promise eslint

Usage

Use the recommended config:

// eslint.config.js
import promisePlugin from '@mizunashi_mana/eslint-plugin-promise';

export default [
  ...promisePlugin.configs.recommended,
  // your other configs...
];

Or configure individual rules:

// eslint.config.js
import promisePlugin from '@mizunashi_mana/eslint-plugin-promise';

export default [
  {
    plugins: {
      '@mizunashi_mana/promise': promisePlugin,
    },
    rules: {
      '@mizunashi_mana/promise/always-return': 'error',
      '@mizunashi_mana/promise/catch-or-return': 'error',
    },
  },
];

Note: If you use @mizunashi_mana/eslint-config-refined, these rules are already included in the common rule set. No separate setup is needed.

Rules

| Rule | Description | Recommended | |---|---|---| | always-return | Require returning inside each then() to create readable and reusable Promise chains | error | | catch-or-return | Enforce the use of catch() on un-returned promises | error | | no-new-statics | Disallow calling new on a Promise static method | error | | no-return-wrap | Disallow wrapping values in Promise.resolve or Promise.reject when not needed | error | | param-names | Enforce consistent param names and ordering when creating new promises | error | | no-callback-in-promise | Disallow calling a callback inside a then() or catch() | warn | | no-nesting | Disallow nested then() or catch() statements | warn | | no-promise-in-callback | Disallow using promises inside of callbacks | warn | | no-return-in-finally | Disallow return statements in finally() | warn | | valid-params | Enforces the proper number of arguments are passed to Promise functions | warn | | no-multiple-resolved | Disallow creating new promises with paths that resolve multiple times | off | | prefer-await-to-then | Prefer await to then()/catch()/finally() for reading Promise values | off |

License

This package is dual-licensed under Apache License 2.0 or Mozilla Public License 2.0, at your option.