@@ -4,7 +4,7 @@ export const visitorKeys = eslintVisitorKeys.unionWith({
4
4
// Additional estree nodes.
5
5
Import : [ ] ,
6
6
// Additional Properties.
7
- ArrayPattern : [ 'elements' , 'typeAnnotation' ] ,
7
+ ArrayPattern : [ 'decorators' , ' elements', 'typeAnnotation' ] ,
8
8
ArrowFunctionExpression : [ 'typeParameters' , 'params' , 'returnType' , 'body' ] ,
9
9
ClassDeclaration : [
10
10
'decorators' ,
@@ -24,12 +24,13 @@ export const visitorKeys = eslintVisitorKeys.unionWith({
24
24
'implements' ,
25
25
'body'
26
26
] ,
27
+ TaggedTemplateExpression : [ 'tag' , 'typeParameters' , 'quasi' ] ,
27
28
FunctionDeclaration : [ 'id' , 'typeParameters' , 'params' , 'returnType' , 'body' ] ,
28
29
FunctionExpression : [ 'id' , 'typeParameters' , 'params' , 'returnType' , 'body' ] ,
29
30
Identifier : [ 'decorators' , 'typeAnnotation' ] ,
30
31
MethodDefinition : [ 'decorators' , 'key' , 'value' ] ,
31
- ObjectPattern : [ 'properties' , 'typeAnnotation' ] ,
32
- RestElement : [ 'argument' , 'typeAnnotation' ] ,
32
+ ObjectPattern : [ 'decorators' , ' properties', 'typeAnnotation' ] ,
33
+ RestElement : [ 'decorators' , ' argument', 'typeAnnotation' ] ,
33
34
NewExpression : [ 'callee' , 'typeParameters' , 'arguments' ] ,
34
35
CallExpression : [ 'callee' , 'typeParameters' , 'arguments' ] ,
35
36
// JSX
@@ -56,7 +57,7 @@ export const visitorKeys = eslintVisitorKeys.unionWith({
56
57
TSConditionalType : [ 'checkType' , 'extendsType' , 'trueType' , 'falseType' ] ,
57
58
TSConstructSignatureDeclaration : [ 'typeParameters' , 'params' , 'returnType' ] ,
58
59
TSConstructorType : [ 'typeParameters' , 'params' , 'returnType' ] ,
59
- TSDeclareFunction : [ 'id' , 'typeParameters' , 'params' , 'returnType' ] ,
60
+ TSDeclareFunction : [ 'id' , 'typeParameters' , 'params' , 'returnType' , 'body' ] ,
60
61
TSDeclareKeyword : [ ] ,
61
62
TSEmptyBodyFunctionExpression : [
62
63
'id' ,
@@ -91,7 +92,7 @@ export const visitorKeys = eslintVisitorKeys.unionWith({
91
92
TSNumberKeyword : [ ] ,
92
93
TSObjectKeyword : [ ] ,
93
94
TSOptionalType : [ 'typeAnnotation' ] ,
94
- TSParameterProperty : [ 'parameter' ] ,
95
+ TSParameterProperty : [ 'decorators' , ' parameter'] ,
95
96
TSParenthesizedType : [ 'typeAnnotation' ] ,
96
97
TSPrivateKeyword : [ ] ,
97
98
TSPropertySignature : [ 'typeAnnotation' , 'key' , 'initializer' ] ,
0 commit comments