eslint-plugin-promise
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -0,1 +1,6 @@ | ||
## 4.0.1 | ||
- Remove `promise/param-names` fixer | ||
([#146](https://github.com/xjamundx/eslint-plugin-promise/pull/146)) | ||
## 4.0.0 | ||
@@ -2,0 +7,0 @@ |
{ | ||
"name": "eslint-plugin-promise", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "Enforce best practices for JavaScript promises", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -83,3 +83,3 @@ # eslint-plugin-promise | ||
| [`no-return-wrap`][no-return-wrap] | Avoid wrapping values in `Promise.resolve` or `Promise.reject` when not needed. | :bangbang: | | | ||
| [`param-names`][param-names] | Enforce consistent param names and ordering when creating new promises. | :bangbang: | :wrench: | | ||
| [`param-names`][param-names] | Enforce consistent param names and ordering when creating new promises. | :bangbang: | | | ||
| [`always-return`][always-return] | Return inside each `then()` to create readable and reusable Promise chains. | :bangbang: | | | ||
@@ -86,0 +86,0 @@ | [`no-native`][no-native] | In an ES5 environment, make sure to create a `Promise` constructor before using. | | | |
@@ -29,9 +29,3 @@ 'use strict' | ||
message: | ||
'Promise constructor parameters must be named resolve, reject', | ||
fix(fixer) { | ||
return [ | ||
fixer.replaceText(params[0], 'resolve'), | ||
params[1] && fixer.replaceText(params[1], 'reject') | ||
].filter(Boolean) | ||
} | ||
'Promise constructor parameters must be named resolve, reject' | ||
}) | ||
@@ -38,0 +32,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37169
873