@typescript-eslint/eslint-plugin
Advanced tools
Comparing version 1.3.1-alpha.23 to 1.3.1-alpha.24
@@ -73,6 +73,9 @@ "use strict"; | ||
const originalNode = parserServices.esTreeNodeToTSNodeMap.get(node); | ||
const [callSignature] = checker | ||
const signatures = checker | ||
.getTypeAtLocation(originalNode) | ||
.getCallSignatures(); | ||
const returnType = checker.getReturnTypeOfSignature(callSignature); | ||
if (!signatures.length) { | ||
return; | ||
} | ||
const returnType = checker.getReturnTypeOfSignature(signatures[0]); | ||
if (!util.containsTypeByName(returnType, allAllowedPromiseNames)) { | ||
@@ -79,0 +82,0 @@ return; |
{ | ||
"name": "@typescript-eslint/eslint-plugin", | ||
"version": "1.3.1-alpha.23+80bd72c", | ||
"version": "1.3.1-alpha.24+9f1d314", | ||
"description": "TypeScript plugin for ESLint", | ||
@@ -38,4 +38,4 @@ "keywords": [ | ||
"dependencies": { | ||
"@typescript-eslint/parser": "1.3.1-alpha.23+80bd72c", | ||
"@typescript-eslint/typescript-estree": "1.3.1-alpha.23+80bd72c", | ||
"@typescript-eslint/parser": "1.3.1-alpha.24+9f1d314", | ||
"@typescript-eslint/typescript-estree": "1.3.1-alpha.24+9f1d314", | ||
"requireindex": "^1.2.0", | ||
@@ -52,3 +52,3 @@ "tsutils": "^3.7.0" | ||
}, | ||
"gitHead": "80bd72c96944c637bcc94e8cc2219a9d416e2ed5" | ||
"gitHead": "9f1d314c039a5e789be52cae732ce3a3ea17b587" | ||
} |
Sorry, the diff of this file is not supported yet
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
440574
4962