@typescript-eslint/visitor-keys
Advanced tools
Comparing version 3.8.1-alpha.0 to 3.8.1-alpha.1
@@ -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,3 @@ ImportExpression: ['source'], | ||
ArrowFunctionExpression: ['typeParameters', 'params', 'returnType', 'body'], | ||
CallExpression: ['callee', 'typeParameters', 'arguments'], | ||
ClassDeclaration: [ | ||
@@ -52,3 +51,2 @@ 'decorators', | ||
], | ||
TaggedTemplateExpression: ['tag', 'typeParameters', 'quasi'], | ||
FunctionDeclaration: ['id', 'typeParameters', 'params', 'returnType', 'body'], | ||
@@ -58,6 +56,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 | ||
@@ -72,3 +70,4 @@ JSXOpeningElement: ['name', 'typeParameters', 'attributes'], | ||
OptionalCallExpression: ['callee', 'typeParameters', 'arguments'], | ||
OptionalMemberExpression: eslintVisitorKeys.KEYS.MemberExpression, | ||
OptionalMemberExpression: ['object', 'property'], | ||
// TS-prefixed nodes | ||
TSAbstractClassProperty: ['decorators', 'key', 'typeAnnotation', 'value'], | ||
@@ -86,4 +85,4 @@ TSAbstractKeyword: [], | ||
TSConditionalType: ['checkType', 'extendsType', 'trueType', 'falseType'], | ||
TSConstructorType: ['typeParameters', 'params', 'returnType'], | ||
TSConstructSignatureDeclaration: ['typeParameters', 'params', 'returnType'], | ||
TSConstructorType: ['typeParameters', 'params', 'returnType'], | ||
TSDeclareFunction: ['id', 'typeParameters', 'params', 'returnType', 'body'], | ||
@@ -102,13 +101,13 @@ TSDeclareKeyword: [], | ||
TSExternalModuleReference: ['expression'], | ||
TSFunctionType: ['typeParameters', 'params', 'returnType'], | ||
TSImportEqualsDeclaration: ['id', 'moduleReference'], | ||
TSImportType: ['parameter', 'qualifier', 'typeParameters'], | ||
TSInferType: ['typeParameter'], | ||
TSLiteralType: ['literal'], | ||
TSIntersectionType: ['types'], | ||
TSIndexedAccessType: ['indexType', 'objectType'], | ||
TSIndexSignature: ['parameters', 'typeAnnotation'], | ||
TSInferType: ['typeParameter'], | ||
TSInterfaceBody: ['body'], | ||
TSInterfaceDeclaration: ['id', 'typeParameters', 'extends', 'body'], | ||
TSInterfaceHeritage: ['expression', 'typeParameters'], | ||
TSImportEqualsDeclaration: ['id', 'moduleReference'], | ||
TSFunctionType: ['typeParameters', 'params', 'returnType'], | ||
TSIntersectionType: ['types'], | ||
TSLiteralType: ['literal'], | ||
TSMappedType: ['typeParameter', 'typeAnnotation'], | ||
@@ -118,5 +117,6 @@ TSMethodSignature: ['typeParameters', 'key', 'params', 'returnType'], | ||
TSModuleDeclaration: ['id', 'body'], | ||
TSNamedTupleMember: ['elementType'], | ||
TSNamespaceExportDeclaration: ['id'], | ||
TSNeverKeyword: [], | ||
TSNonNullExpression: ['expression'], | ||
TSNeverKeyword: [], | ||
TSNullKeyword: [], | ||
@@ -149,10 +149,11 @@ TSNumberKeyword: [], | ||
TSTypePredicate: ['typeAnnotation', 'parameterName'], | ||
TSTypeQuery: ['exprName'], | ||
TSTypeReference: ['typeName', 'typeParameters'], | ||
TSTypeQuery: ['exprName'], | ||
TSUndefinedKeyword: [], | ||
TSUnionType: ['types'], | ||
TSUndefinedKeyword: [], | ||
TSUnknownKeyword: [], | ||
TSVoidKeyword: [], | ||
}); | ||
}; | ||
const visitorKeys = eslintVisitorKeys.unionWith(additionalKeys); | ||
exports.visitorKeys = visitorKeys; | ||
//# sourceMappingURL=visitor-keys.js.map |
{ | ||
"name": "@typescript-eslint/visitor-keys", | ||
"version": "3.8.1-alpha.0+522277d7", | ||
"version": "3.8.1-alpha.1+00d84ffb", | ||
"description": "Visitor keys used to help traverse the TypeScript-ESTree AST", | ||
@@ -42,3 +42,3 @@ "keywords": [ | ||
"devDependencies": { | ||
"@typescript-eslint/types": "3.8.1-alpha.0+522277d7" | ||
"@typescript-eslint/types": "3.8.1-alpha.1+00d84ffb" | ||
}, | ||
@@ -49,3 +49,3 @@ "funding": { | ||
}, | ||
"gitHead": "522277d74d15467b9a1ec29fcd0f4eec0b0aaa9d" | ||
"gitHead": "00d84ffbcbe9d0ec98bdb2f2ce59959a27ce4dbe" | ||
} |
Sorry, the diff of this file is not supported yet
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
16123
160