eslint-plugin-promise
Advanced tools
Comparing version 5.2.0 to 6.0.0
@@ -0,1 +1,7 @@ | ||
## 6.0.0 | ||
- Dropped node 10 from engines #231 | ||
- Updated a ton of deps #236, #237, #235, #234 | ||
- ESLint 8 support #219 | ||
## 5.2.0 | ||
@@ -2,0 +8,0 @@ |
Copyright (c) 2020, Jamund Ferguson | ||
Permission to use, copy, modify, and/or distribute this software for any | ||
purpose with or without fee is hereby granted, provided that the above | ||
copyright notice and this permission notice appear in all copies. | ||
Permission to use, copy, modify, and/or distribute this software for any purpose | ||
with or without fee is hereby granted, provided that the above copyright notice | ||
and this permission notice appear in all copies. | ||
@@ -10,5 +10,5 @@ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH | ||
FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, | ||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM | ||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR | ||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | ||
PERFORMANCE OF THIS SOFTWARE. | ||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS | ||
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER | ||
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF | ||
THIS SOFTWARE. |
{ | ||
"name": "eslint-plugin-promise", | ||
"version": "5.2.0", | ||
"version": "6.0.0", | ||
"description": "Enforce best practices for JavaScript promises", | ||
@@ -20,27 +20,27 @@ "keywords": [ | ||
"scripts": { | ||
"precommit": "lint-staged --concurrent false", | ||
"test": "jest --coverage", | ||
"lint": "eslint rules __tests__ index.js", | ||
"format": "prettier --write '**/*.js'" | ||
"format": "prettier --write .", | ||
"lint": "eslint .", | ||
"prepare": "husky install", | ||
"test": "jest --coverage" | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"doctoc": "^2.0.0", | ||
"eslint": "^7.23.0", | ||
"eslint-config-prettier": "^8.1.0", | ||
"eslint-plugin-eslint-plugin": "^3.0.0", | ||
"eslint-plugin-jest": "^24.3.4", | ||
"doctoc": "^2.1.0", | ||
"eslint": "^8.5.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-plugin-eslint-plugin": "^4.1.0", | ||
"eslint-plugin-jest": "^25.3.0", | ||
"eslint-plugin-node": "^11.1.0", | ||
"eslint-plugin-prettier": "^3.3.1", | ||
"husky": "^6.0.0", | ||
"jest": "^26.6.3", | ||
"jest-runner-eslint": "^0.10.0", | ||
"lint-staged": "^10.5.4", | ||
"prettier": "^2.2.1" | ||
"eslint-plugin-prettier": "^4.0.0", | ||
"husky": "^7.0.4", | ||
"jest": "^27.4.5", | ||
"jest-runner-eslint": "^1.0.0", | ||
"lint-staged": "^12.1.2", | ||
"prettier": "^2.5.1" | ||
}, | ||
"peerDependencies": { | ||
"eslint": "^7.0.0" | ||
"eslint": "^7.0.0 || ^8.0.0" | ||
}, | ||
"engines": { | ||
"node": "^10.12.0 || >=12.0.0" | ||
"node": "^12.22.0 || ^14.17.0 || >=16.0.0" | ||
}, | ||
@@ -47,0 +47,0 @@ "license": "ISC", |
@@ -93,3 +93,3 @@ # eslint-plugin-promise | ||
| [`valid-params`][valid-params] | Ensures the proper number of arguments are passed to Promise functions | :warning: | | | ||
| [`prefer-await-to-then`][prefer-await-to-then] | Prefer `await` to `then()`/`catch()`/`finally()` for reading Promise values | :seven: | | | ||
| [`prefer-await-to-then`][prefer-await-to-then] | Prefer `await` to `then()`/`catch()`/`finally()` for reading Promise values | :seven: | | | ||
| [`prefer-await-to-callbacks`][prefer-await-to-callbacks] | Prefer async/await to the callback pattern | :seven: | | | ||
@@ -96,0 +96,0 @@ |
@@ -65,2 +65,3 @@ 'use strict' | ||
}, | ||
schema: [], | ||
}, | ||
@@ -67,0 +68,0 @@ create(context) { |
@@ -16,2 +16,3 @@ /** | ||
}, | ||
schema: [], | ||
}, | ||
@@ -18,0 +19,0 @@ create(context) { |
@@ -21,2 +21,27 @@ /** | ||
}, | ||
schema: [ | ||
{ | ||
type: 'object', | ||
properties: { | ||
allowFinally: { | ||
type: 'boolean', | ||
}, | ||
allowThen: { | ||
type: 'boolean', | ||
}, | ||
terminationMethod: { | ||
oneOf: [ | ||
{ type: 'string' }, | ||
{ | ||
type: 'array', | ||
items: { | ||
type: 'string', | ||
}, | ||
}, | ||
], | ||
}, | ||
}, | ||
additionalProperties: false, | ||
}, | ||
], | ||
}, | ||
@@ -23,0 +48,0 @@ create(context) { |
@@ -22,2 +22,16 @@ /** | ||
}, | ||
schema: [ | ||
{ | ||
type: 'object', | ||
properties: { | ||
exceptions: { | ||
type: 'array', | ||
items: { | ||
type: 'string', | ||
}, | ||
}, | ||
}, | ||
additionalProperties: false, | ||
}, | ||
], | ||
}, | ||
@@ -24,0 +38,0 @@ create(context) { |
@@ -35,2 +35,3 @@ // Borrowed from here: | ||
}, | ||
schema: [], | ||
}, | ||
@@ -37,0 +38,0 @@ create(context) { |
@@ -18,2 +18,3 @@ /** | ||
}, | ||
schema: [], | ||
}, | ||
@@ -20,0 +21,0 @@ create(context) { |
@@ -13,2 +13,3 @@ 'use strict' | ||
fixable: 'code', | ||
schema: [], | ||
}, | ||
@@ -15,0 +16,0 @@ create(context) { |
@@ -18,2 +18,3 @@ /** | ||
}, | ||
schema: [], | ||
}, | ||
@@ -20,0 +21,0 @@ create(context) { |
@@ -12,2 +12,3 @@ 'use strict' | ||
}, | ||
schema: [], | ||
}, | ||
@@ -14,0 +15,0 @@ create(context) { |
@@ -48,2 +48,13 @@ /** | ||
}, | ||
schema: [ | ||
{ | ||
type: 'object', | ||
properties: { | ||
allowReject: { | ||
type: 'boolean', | ||
}, | ||
}, | ||
additionalProperties: false, | ||
}, | ||
], | ||
}, | ||
@@ -50,0 +61,0 @@ create(context) { |
@@ -11,2 +11,3 @@ 'use strict' | ||
}, | ||
schema: [], | ||
}, | ||
@@ -13,0 +14,0 @@ create(context) { |
@@ -14,2 +14,3 @@ 'use strict' | ||
}, | ||
schema: [], | ||
}, | ||
@@ -16,0 +17,0 @@ create(context) { |
@@ -16,2 +16,3 @@ /** | ||
}, | ||
schema: [], | ||
}, | ||
@@ -18,0 +19,0 @@ create(context) { |
@@ -14,2 +14,3 @@ 'use strict' | ||
}, | ||
schema: [], | ||
}, | ||
@@ -16,0 +17,0 @@ create(context) { |
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
43758
30
1030