Socket
Socket
Sign inDemoInstall

@typescript-eslint/visitor-keys

Package Overview
Dependencies
2
Maintainers
1
Versions
2896
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.0.0-alpha.6 to 4.0.0-alpha.7

14

dist/visitor-keys.js

@@ -24,5 +24,3 @@ "use strict";

const eslintVisitorKeys = __importStar(require("eslint-visitor-keys"));
const visitorKeys = eslintVisitorKeys.unionWith({
// Additional estree nodes.
Import: [],
const additionalKeys = {
// ES2020

@@ -33,2 +31,4 @@ ImportExpression: ['source'],

ArrowFunctionExpression: ['typeParameters', 'params', 'returnType', 'body'],
AssignmentPattern: ['decorators', 'left', 'right', 'typeAnnotation'],
CallExpression: ['callee', 'typeParameters', 'arguments'],
ClassDeclaration: [

@@ -52,3 +52,2 @@ 'decorators',

],
TaggedTemplateExpression: ['tag', 'typeParameters', 'quasi'],
FunctionDeclaration: ['id', 'typeParameters', 'params', 'returnType', 'body'],

@@ -58,6 +57,6 @@ FunctionExpression: ['id', 'typeParameters', 'params', 'returnType', 'body'],

MethodDefinition: ['decorators', 'key', 'value'],
NewExpression: ['callee', 'typeParameters', 'arguments'],
ObjectPattern: ['decorators', 'properties', 'typeAnnotation'],
RestElement: ['decorators', 'argument', 'typeAnnotation'],
NewExpression: ['callee', 'typeParameters', 'arguments'],
CallExpression: ['callee', 'typeParameters', 'arguments'],
TaggedTemplateExpression: ['tag', 'typeParameters', 'quasi'],
// JSX

@@ -149,4 +148,5 @@ JSXOpeningElement: ['name', 'typeParameters', 'attributes'],

TSVoidKeyword: [],
});
};
const visitorKeys = eslintVisitorKeys.unionWith(additionalKeys);
exports.visitorKeys = visitorKeys;
//# sourceMappingURL=visitor-keys.js.map
{
"name": "@typescript-eslint/visitor-keys",
"version": "4.0.0-alpha.6+62c0fb52",
"version": "4.0.0-alpha.7+5ab473c0",
"description": "Visitor keys used to help traverse the TypeScript-ESTree AST",

@@ -33,2 +33,3 @@ "keywords": [

"clean": "tsc -b tsconfig.build.json --clean",
"postclean": "rimraf dist",
"format": "prettier --write \"./**/*.{ts,js,json,md}\" --ignore-path ../../.prettierignore",

@@ -40,3 +41,3 @@ "lint": "eslint . --ext .js,.ts --ignore-path='../../.eslintignore'",

"dependencies": {
"@typescript-eslint/types": "4.0.0-alpha.6+62c0fb52",
"@typescript-eslint/types": "4.0.0-alpha.7+5ab473c0",
"eslint-visitor-keys": "^1.3.0"

@@ -51,3 +52,3 @@ },

},
"gitHead": "62c0fb5256d3bba8e848a1c4154699ee33da13e6"
"gitHead": "5ab473c07d43da70ddf8827efc8678c376fb15ab"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc