@typescript-eslint/utils 6.4.2-alpha.0 → 6.4.2-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -371,9 +371,17 @@ export declare const isNodeOfType: <NodeType extends AST_NODE_TYPES>(nodeType: N
|
|
|
371
371
|
type: NodeType;
|
|
372
372
|
}> | Extract<TSESTree.UpdateExpression, {
|
|
373
373
|
type: NodeType;
|
|
374
|
-
}> | Extract<TSESTree.
|
|
374
|
+
}> | Extract<TSESTree.LetOrConstOrVarDeclaration, {
|
|
375
375
|
type: NodeType;
|
|
376
|
-
}> | Extract<TSESTree.
|
|
376
|
+
}> | Extract<TSESTree.UsingInForOfDeclaration, {
|
|
377
|
+
type: NodeType;
|
|
378
|
+
}> | Extract<TSESTree.UsingInNomalConextDeclaration, {
|
|
379
|
+
type: NodeType;
|
|
380
|
+
}> | Extract<TSESTree.LetOrConstOrVarDeclarator, {
|
|
381
|
+
type: NodeType;
|
|
382
|
+
}> | Extract<TSESTree.UsingInForOfDeclarator, {
|
|
383
|
+
type: NodeType;
|
|
384
|
+
}> | Extract<TSESTree.UsingInNomalConextDeclarator, {
|
|
377
385
|
type: NodeType;
|
|
378
386
|
}> | Extract<TSESTree.WhileStatement, {
|
|
379
387
|
type: NodeType;
|
|
@@ -754,9 +762,17 @@ export declare const isNodeOfTypes: <NodeTypes extends readonly AST_NODE_TYPES[]
|
|
|
754
762
|
type: NodeTypes[number];
|
|
755
763
|
}> | Extract<TSESTree.UpdateExpression, {
|
|
756
764
|
type: NodeTypes[number];
|
|
757
|
-
}> | Extract<TSESTree.
|
|
765
|
+
}> | Extract<TSESTree.LetOrConstOrVarDeclaration, {
|
|
766
|
+
type: NodeTypes[number];
|
|
767
|
+
}> | Extract<TSESTree.UsingInForOfDeclaration, {
|
|
768
|
+
type: NodeTypes[number];
|
|
769
|
+
}> | Extract<TSESTree.UsingInNomalConextDeclaration, {
|
|
758
770
|
type: NodeTypes[number];
|
|
759
|
-
}> | Extract<TSESTree.
|
|
771
|
+
}> | Extract<TSESTree.LetOrConstOrVarDeclarator, {
|
|
772
|
+
type: NodeTypes[number];
|
|
773
|
+
}> | Extract<TSESTree.UsingInForOfDeclarator, {
|
|
774
|
+
type: NodeTypes[number];
|
|
775
|
+
}> | Extract<TSESTree.UsingInNomalConextDeclarator, {
|
|
760
776
|
type: NodeTypes[number];
|
|
761
777
|
}> | Extract<TSESTree.WhileStatement, {
|
|
762
778
|
type: NodeTypes[number];
|
|
@@ -1137,9 +1153,17 @@ export declare const isNodeOfTypeWithConditions: <NodeType extends AST_NODE_TYPE
|
|
|
1137
1153
|
type: NodeType;
|
|
1138
1154
|
}> | Extract<TSESTree.UpdateExpression, {
|
|
1139
1155
|
type: NodeType;
|
|
1140
|
-
}> | Extract<TSESTree.
|
|
1156
|
+
}> | Extract<TSESTree.LetOrConstOrVarDeclaration, {
|
|
1157
|
+
type: NodeType;
|
|
1158
|
+
}> | Extract<TSESTree.UsingInForOfDeclaration, {
|
|
1159
|
+
type: NodeType;
|
|
1160
|
+
}> | Extract<TSESTree.UsingInNomalConextDeclaration, {
|
|
1161
|
+
type: NodeType;
|
|
1162
|
+
}> | Extract<TSESTree.LetOrConstOrVarDeclarator, {
|
|
1163
|
+
type: NodeType;
|
|
1164
|
+
}> | Extract<TSESTree.UsingInForOfDeclarator, {
|
|
1141
1165
|
type: NodeType;
|
|
1142
|
-
}> | Extract<TSESTree.
|
|
1166
|
+
}> | Extract<TSESTree.UsingInNomalConextDeclarator, {
|
|
1143
1167
|
type: NodeType;
|
|
1144
1168
|
}> | Extract<TSESTree.WhileStatement, {
|
|
1145
1169
|
type: NodeType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/ast-utils/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEC,CAAC;AAE5C,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qGAQ/B,SAAS,IAAI,GAAG,IAAI,GAAG,SAAS,uCASvC,CAAC;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;6DAQ/B,SAAS,KAAK,GAAG,IAAI,GAAG,SAAS,yCAWzC,CAAC;AAEF,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;yGAShC,SAAS,KAAK,GAAG,IAAI,GAAG,SAAS,m0BAGkB,CAAC"}
|
|
@@ -25,7 +25,7 @@ declare const isLogicalOrOperator: (node: TSESTree.Node | null | undefined) => n
|
|
|
25
25
|
* ```
|
|
26
26
|
*/
|
|
27
27
|
declare const isTypeAssertion: (node: TSESTree.Node | null | undefined) => node is TSESTree.TSAsExpression | TSESTree.TSTypeAssertion;
|
|
28
|
-
declare const isVariableDeclarator: (node: TSESTree.Node | null | undefined) => node is TSESTree.
|
|
28
|
+
declare const isVariableDeclarator: (node: TSESTree.Node | null | undefined) => node is TSESTree.LetOrConstOrVarDeclarator | TSESTree.UsingInForOfDeclarator | TSESTree.UsingInNomalConextDeclarator;
|
|
29
29
|
declare const isFunction: (node: TSESTree.Node | null | undefined) => node is TSESTree.ArrowFunctionExpression | TSESTree.FunctionDeclarationWithName | TSESTree.FunctionDeclarationWithOptionalName | TSESTree.FunctionExpression;
|
|
30
30
|
declare const isFunctionType: (node: TSESTree.Node | null | undefined) => node is TSESTree.TSCallSignatureDeclaration | TSESTree.TSConstructorType | TSESTree.TSConstructSignatureDeclaration | TSESTree.TSEmptyBodyFunctionExpression | TSESTree.TSFunctionType | TSESTree.TSMethodSignatureComputedName | TSESTree.TSMethodSignatureNonComputedName;
|
|
31
31
|
declare const isFunctionOrFunctionType: (node: TSESTree.Node | null | undefined) => node is TSESTree.ArrowFunctionExpression | TSESTree.FunctionDeclarationWithName | TSESTree.FunctionDeclarationWithOptionalName | TSESTree.FunctionExpression | TSESTree.TSCallSignatureDeclaration | TSESTree.TSConstructorType | TSESTree.TSConstructSignatureDeclaration | TSESTree.TSEmptyBodyFunctionExpression | TSESTree.TSFunctionType | TSESTree.TSMethodSignatureComputedName | TSESTree.TSMethodSignatureNonComputedName;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"predicates.d.ts","sourceRoot":"","sources":["../../src/ast-utils/predicates.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAU7C,QAAA,MAAM,yBAAyB;;4BAG9B,CAAC;AAEF,QAAA,MAAM,4BAA4B,gYAGjC,CAAC;AAEF,QAAA,MAAM,4BAA4B;;4BAGjC,CAAC;AAEF,QAAA,MAAM,+BAA+B,gYAGpC,CAAC;AAEF;;GAEG;AACH,QAAA,MAAM,wBAAwB;;2BAK7B,CAAC;AAEF;;GAEG;AACH,QAAA,MAAM,mBAAmB,sHAGxB,CAAC;AAEF;;;;;;GAMG;AACH,QAAA,MAAM,eAAe,wGAGV,CAAC;AAEZ,QAAA,MAAM,oBAAoB,
|
|
1
|
+
{"version":3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BAEnB,CAAC;AAEH,QAAA,MAAM,MAAM,qLAMD,CAAC;AAEZ,OAAO,EACL,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,oBAAoB,EACpB,UAAU,EACV,wBAAwB,EACxB,cAAc,EACd,YAAY,EACZ,eAAe,EACf,MAAM,EACN,mBAAmB,EACnB,4BAA4B,EAC5B,+BAA+B,EAC/B,4BAA4B,EAC5B,yBAAyB,EACzB,wBAAwB,EACxB,QAAQ,EACR,mBAAmB,EACnB,gBAAgB,EAChB,eAAe,EACf,aAAa,EACb,oBAAoB,GACrB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typescript-eslint/utils",
|
|
3
|
-
"version": "6.4.2-alpha.
|
|
3
|
+
"version": "6.4.2-alpha.10+f18c88dd3",
|
|
4
4
|
"description": "Utilities for working with TypeScript + ESLint together",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -68,16 +68,16 @@
|
|
|
68
68
|
"@eslint-community/eslint-utils": "^4.4.0",
|
|
69
69
|
"@types/json-schema": "^7.0.12",
|
|
70
70
|
"@types/semver": "^7.5.0",
|
|
71
|
-
"@typescript-eslint/scope-manager": "6.4.2-alpha.
|
|
72
|
-
"@typescript-eslint/types": "6.4.2-alpha.
|
|
73
|
-
"@typescript-eslint/typescript-estree": "6.4.2-alpha.
|
|
71
|
+
"@typescript-eslint/scope-manager": "6.4.2-alpha.10+f18c88dd3",
|
|
72
|
+
"@typescript-eslint/types": "6.4.2-alpha.10+f18c88dd3",
|
|
73
|
+
"@typescript-eslint/typescript-estree": "6.4.2-alpha.10+f18c88dd3",
|
|
74
74
|
"semver": "^7.5.4"
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
77
77
|
"eslint": "^7.0.0 || ^8.0.0"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
|
-
"@typescript-eslint/parser": "6.4.2-alpha.
|
|
80
|
+
"@typescript-eslint/parser": "6.4.2-alpha.10+f18c88dd3",
|
|
81
81
|
"downlevel-dts": "*",
|
|
82
82
|
"jest": "29.6.2",
|
|
83
83
|
"prettier": "^2.8.4",
|
|
@@ -95,5 +95,5 @@
|
|
|
95
95
|
]
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
|
-
"gitHead": "
|
|
98
|
+
"gitHead": "f18c88dd35a807958af41404001c78485b7b558a"
|
|
99
99
|
}
|