Socket
Socket
Sign inDemoInstall

@typescript-eslint/eslint-plugin

Package Overview
Dependencies
Maintainers
1
Versions
3773
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@typescript-eslint/eslint-plugin - npm Package Compare versions

Comparing version 1.3.1-alpha.23 to 1.3.1-alpha.24

7

dist/rules/promise-function-async.js

@@ -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

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