eslint-plugin-promise
Advanced tools
Comparing version 6.0.0 to 6.0.1
@@ -0,1 +1,5 @@ | ||
## 6.0.1 | ||
- Fixed @typescript-eslint/parser issue #331, #205 | ||
## 6.0.0 | ||
@@ -2,0 +6,0 @@ |
{ | ||
"name": "eslint-plugin-promise", | ||
"version": "6.0.0", | ||
"version": "6.0.1", | ||
"description": "Enforce best practices for JavaScript promises", | ||
@@ -14,3 +14,4 @@ "keywords": [ | ||
"contributors": [ | ||
"Brett Zamir" | ||
"Brett Zamir", | ||
"Aadit M Shah <aaditmshah@aadit.codes> (https://aadit.codes/)" | ||
], | ||
@@ -26,3 +27,2 @@ "repository": "https://github.com/xjamundx/eslint-plugin-promise", | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
@@ -29,0 +29,0 @@ "doctoc": "^2.1.0", |
@@ -109,2 +109,3 @@ # eslint-plugin-promise | ||
- Macklin Underdown - [@macklinu][] | ||
- Aadit M Shah - [@aaditmshah][] | ||
@@ -132,3 +133,4 @@ ## License | ||
[pify]: https://www.npmjs.com/package/pify | ||
[@aaditmshah]: https://github.com/aaditmshah | ||
[@macklinu]: https://github.com/macklinu | ||
[@xjamundx]: https://github.com/xjamundx |
@@ -48,4 +48,12 @@ // Borrowed from here: | ||
const scope = context.getScope() | ||
const leftToBeResolved = | ||
scope.implicit.left || | ||
/* istanbul ignore next | ||
* Fixes https://github.com/xjamundx/eslint-plugin-promise/issues/205. | ||
* The problem was that @typescript-eslint has a scope manager | ||
* which has `leftToBeResolved` instead of the default `left`. | ||
*/ | ||
scope.implicit.leftToBeResolved | ||
scope.implicit.left.forEach((ref) => { | ||
leftToBeResolved.forEach((ref) => { | ||
if (ref.identifier.name !== 'Promise') { | ||
@@ -52,0 +60,0 @@ return |
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
44324
1038
135