Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-promise

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-promise - npm Package Compare versions

Comparing version 3.3.2 to 3.4.0-0

rules/lib/has-promise-callback.js

4

CHANGELOG.md

@@ -0,1 +1,5 @@

## 3.3.2
- Removed eslint from peerDeps
## 3.3.1

@@ -2,0 +6,0 @@

5

index.js

@@ -9,3 +9,6 @@ module.exports = {

'prefer-await-to-then': require('./rules/prefer-await-to-then'),
'no-native': require('./rules/no-native')
'no-native': require('./rules/no-native'),
'no-callback-in-promise': require('./rules/no-callback-in-promise'),
'no-promise-in-callback': require('./rules/no-promise-in-callback'),
'no-nesting': require('./rules/no-nesting')
},

@@ -12,0 +15,0 @@ rulesConfig: {

{
"name": "eslint-plugin-promise",
"version": "3.3.2",
"version": "3.4.0-0",
"description": "Enforce best practices for JavaScript promises",

@@ -5,0 +5,0 @@ "keywords": [

@@ -62,2 +62,5 @@ # eslint-plugin-promise

- `no-native` In an ES5 environment, make sure to create a `Promise` constructor before using.
- `no-nesting` Avoid nested .then() or .catch() statements
- `no-promise-in-callback` Avoid using promises inside of callbacks
- `no-callback-in-promise` Avoid calling `cb()` inside of a `then()`

@@ -64,0 +67,0 @@ ### Async/Await Rules

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc