Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on May 15, 2024 via pnpm

eslint-plugin-promise 6.1.1

Enforce best practices for JavaScript promises
Package summary
Share
0
issues
7
licenses
71
MIT
15
ISC
6
BSD-2-Clause
8
other licenses
Apache-2.0
4
BSD-3-Clause
2
Python-2.0
1
(MIT OR CC0-1.0)
1
Package created
22 Jan 2016
Version published
19 Oct 2022
Maintainers
3
Total deps
100
Direct deps
1
License
ISC

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
71 Packages, Including:
@eslint-community/eslint-utils@4.4.0
@eslint-community/regexpp@4.10.0
@eslint/eslintrc@2.1.4
@eslint/js@8.57.0
@nodelib/fs.scandir@2.1.5
@nodelib/fs.stat@2.0.5
@nodelib/fs.walk@1.2.8
acorn-jsx@5.3.2
acorn@8.11.3
ajv@6.12.6
ansi-regex@5.0.1
ansi-styles@4.3.0
balanced-match@1.0.2
brace-expansion@1.1.11
callsites@3.1.0
chalk@4.1.2
color-convert@2.0.1
color-name@1.1.4
concat-map@0.0.1
cross-spawn@7.0.3
debug@4.3.4
deep-is@0.1.4
escape-string-regexp@4.0.0
eslint@8.57.0
fast-deep-equal@3.1.3
fast-json-stable-stringify@2.1.0
fast-levenshtein@2.0.6
file-entry-cache@6.0.1
find-up@5.0.0
flat-cache@3.2.0
globals@13.24.0
graphemer@1.4.0
has-flag@4.0.0
ignore@5.3.1
import-fresh@3.3.0
imurmurhash@0.1.4
is-extglob@2.1.1
is-glob@4.0.3
is-path-inside@3.0.3
js-yaml@4.1.0
json-buffer@3.0.1
json-schema-traverse@0.4.1
json-stable-stringify-without-jsonify@1.0.1
keyv@4.5.4
levn@0.4.1
locate-path@6.0.0
lodash.merge@4.6.2
ms@2.1.2
natural-compare@1.4.0
optionator@0.9.4

ISC License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
Must
include-copyright
include-license
15 Packages, Including:
@ungap/structured-clone@1.2.0
eslint-plugin-promise@6.1.1
fastq@1.17.1
flatted@3.3.1
fs.realpath@1.0.0
glob-parent@6.0.2
glob@7.2.3
inflight@1.0.6
inherits@2.0.4
isexe@2.0.0
minimatch@3.1.2
once@1.4.0
rimraf@3.0.2
which@2.0.2
wrappy@1.0.2

BSD 2-Clause "Simplified" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
hold-liable
Must
include-copyright
include-license
6 Packages, Including:
eslint-scope@7.2.2
espree@9.6.1
esrecurse@4.3.0
estraverse@5.3.0
esutils@2.0.3
uri-js@4.4.1

Apache License 2.0

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
use-patent-claims
place-warranty
Cannot
hold-liable
use-trademark
Must
include-copyright
include-license
state-changes
include-notice
4 Packages, Including:
@humanwhocodes/config-array@0.11.14
@humanwhocodes/module-importer@1.0.1
doctrine@3.0.0
eslint-visitor-keys@3.4.3

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
2 Packages, Including:
@humanwhocodes/object-schema@2.0.3
esquery@1.5.0

Python License 2.0

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
state-changes
1 Packages, Including:
argparse@2.0.1

(MIT OR CC0-1.0)

Public Domain
1 Packages, Including:
type-fest@0.20.2
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

1
All Dependencies CSV
β“˜ This is a list of eslint-plugin-promise 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
eslint8.57.02.9 MBMIT
prod peer

Visualizations

Frequently Asked Questions

What does eslint-plugin-promise do?

The eslint-plugin-promise is a powerful JavaScript tool that enforces best practices for JavaScript promises. By analyzing your code, it helps ensure adherence to guidelines that enhance code readability, reliability, and maintainability. Crucially for JavaScript developers utilizing promises, this reduces errors and makes efficient use of JavaScript's asynchronous capabilities.

How do you use eslint-plugin-promise?

To utilize eslint-plugin-promise in your project, follow these simple steps.

  1. Make sure you have ESLint installed. If not, run:
$ npm install eslint --save-dev
  1. Then you install eslint-plugin-promise:
$ npm install eslint-plugin-promise --save-dev

Remember that if ESLint is installed globally, you'll also need to install eslint-plugin-promise globally.

Next, add promise to the plugins section of your .eslintrc.json configuration file:

{
  "plugins": ["promise"]
}

Now, you can configure the rules you want to use under the rules section, or start with the recommended rule set:

{
  "rules": {
    "promise/always-return": "error",
    "promise/no-return-wrap": "error",
    "promise/param-names": "error",
    "promise/catch-or-return": "error",
    "promise/no-native": "off",
    "promise/no-nesting": "warn",
    "promise/no-promise-in-callback": "warn",
    "promise/no-callback-in-promise": "warn",
    "promise/avoid-new": "warn",
    "promise/no-new-statics": "error",
    "promise/no-return-in-finally": "warn",
    "promise/valid-params": "warn"
  }
}

Alternatively, start with the recommended rule set:

{
  "extends": ["plugin:promise/recommended"]
}

Where are the eslint-plugin-promise docs?

Detailed documentation for eslint-plugin-promise, including comprehensive descriptions of all rules and how to use them, is available in the plugin's GitHub repository. Refer to this resource to maximise your use of this tool and better enforce JavaScript promises best practices in your projects.