@typescript-eslint/utils 8.20.0 → 8.20.1-alpha.1
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.
- package/dist/ast-utils/eslint-utils/PatternMatcher.d.ts +2 -2
- package/dist/ast-utils/eslint-utils/PatternMatcher.d.ts.map +1 -1
- package/dist/ast-utils/eslint-utils/PatternMatcher.js +1 -2
- package/dist/ast-utils/eslint-utils/PatternMatcher.js.map +1 -1
- package/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts +2 -2
- package/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts.map +1 -1
- package/dist/ast-utils/eslint-utils/ReferenceTracker.js +1 -2
- package/dist/ast-utils/eslint-utils/ReferenceTracker.js.map +1 -1
- package/dist/ast-utils/eslint-utils/astUtilities.d.ts +7 -8
- package/dist/ast-utils/eslint-utils/astUtilities.d.ts.map +1 -1
- package/dist/ast-utils/eslint-utils/astUtilities.js +7 -14
- package/dist/ast-utils/eslint-utils/astUtilities.js.map +1 -1
- package/dist/ast-utils/eslint-utils/predicates.d.ts +23 -23
- package/dist/ast-utils/eslint-utils/predicates.d.ts.map +1 -1
- package/dist/ast-utils/eslint-utils/predicates.js +23 -45
- package/dist/ast-utils/eslint-utils/predicates.js.map +1 -1
- package/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts +2 -3
- package/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts.map +1 -1
- package/dist/ast-utils/eslint-utils/scopeAnalysis.js +2 -4
- package/dist/ast-utils/eslint-utils/scopeAnalysis.js.map +1 -1
- package/dist/ast-utils/misc.d.ts +2 -3
- package/dist/ast-utils/misc.d.ts.map +1 -1
- package/dist/ast-utils/misc.js +1 -2
- package/dist/ast-utils/misc.js.map +1 -1
- package/dist/ast-utils/predicates.d.ts +22 -23
- package/dist/ast-utils/predicates.d.ts.map +1 -1
- package/dist/ast-utils/predicates.js +22 -49
- package/dist/ast-utils/predicates.js.map +1 -1
- package/dist/eslint-utils/InferTypesFromRule.d.ts +2 -3
- package/dist/eslint-utils/InferTypesFromRule.d.ts.map +1 -1
- package/dist/eslint-utils/applyDefault.d.ts +1 -2
- package/dist/eslint-utils/applyDefault.d.ts.map +1 -1
- package/dist/eslint-utils/applyDefault.js.map +1 -1
- package/dist/eslint-utils/deepMerge.d.ts +1 -2
- package/dist/eslint-utils/deepMerge.d.ts.map +1 -1
- package/dist/eslint-utils/deepMerge.js +1 -1
- package/dist/eslint-utils/deepMerge.js.map +1 -1
- package/dist/eslint-utils/getParserServices.d.ts +4 -5
- package/dist/eslint-utils/getParserServices.d.ts.map +1 -1
- package/dist/eslint-utils/getParserServices.js.map +1 -1
- package/dist/eslint-utils/nullThrows.d.ts +2 -3
- package/dist/eslint-utils/nullThrows.d.ts.map +1 -1
- package/dist/eslint-utils/nullThrows.js +1 -2
- package/dist/eslint-utils/nullThrows.js.map +1 -1
- package/dist/ts-eslint/AST.js +1 -1
- package/dist/ts-eslint/AST.js.map +1 -1
- package/dist/ts-eslint/Linter.js +1 -1
- package/dist/ts-eslint/Linter.js.map +1 -1
- package/dist/ts-eslint/RuleTester.d.ts +9 -9
- package/dist/ts-eslint/RuleTester.d.ts.map +1 -1
- package/dist/ts-eslint/RuleTester.js.map +1 -1
- package/dist/ts-eslint/Scope.d.ts +1 -2
- package/dist/ts-eslint/Scope.d.ts.map +1 -1
- package/dist/ts-eslint/Scope.js.map +1 -1
- package/dist/ts-eslint/SourceCode.js +1 -1
- package/dist/ts-eslint/SourceCode.js.map +1 -1
- package/package.json +4 -4
|
@@ -41,8 +41,8 @@ interface PatternMatcher {
|
|
|
41
41
|
*
|
|
42
42
|
* @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#patternmatcher-class}
|
|
43
43
|
*/
|
|
44
|
-
declare const PatternMatcher: new (pattern: RegExp, options?: {
|
|
44
|
+
export declare const PatternMatcher: new (pattern: RegExp, options?: {
|
|
45
45
|
escaped?: boolean;
|
|
46
46
|
}) => PatternMatcher;
|
|
47
|
-
export {
|
|
47
|
+
export {};
|
|
48
48
|
//# sourceMappingURL=PatternMatcher.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PatternMatcher.d.ts","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/PatternMatcher.ts"],"names":[],"mappings":"AAEA,UAAU,cAAc;IACtB;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,CAAC,MAAM,CAAC,OAAO,CAAC,CACd,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,MAAM,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,MAAM,EAAE,KAAK,MAAM,CAAC,GACjD,MAAM,CAAC;IAEV;;;;OAIG;IACH,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,gBAAgB,CAAC,eAAe,CAAC,CAAC;IAExD;;;;OAIG;IACH,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AAED;;;;;GAKG;AACH,
|
|
1
|
+
{"version":3,"file":"PatternMatcher.d.ts","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/PatternMatcher.ts"],"names":[],"mappings":"AAEA,UAAU,cAAc;IACtB;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,CAAC,MAAM,CAAC,OAAO,CAAC,CACd,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,MAAM,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,MAAM,EAAE,KAAK,MAAM,CAAC,GACjD,MAAM,CAAC;IAEV;;;;OAIG;IACH,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,gBAAgB,CAAC,eAAe,CAAC,CAAC;IAExD;;;;OAIG;IACH,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AAED;;;;;GAKG;AACH,eAAO,MAAM,cAAc,EAAiC,KAC1D,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,KAC5B,cAAc,CAAC"}
|
|
@@ -41,6 +41,5 @@ const eslintUtils = __importStar(require("@eslint-community/eslint-utils"));
|
|
|
41
41
|
*
|
|
42
42
|
* @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#patternmatcher-class}
|
|
43
43
|
*/
|
|
44
|
-
|
|
45
|
-
exports.PatternMatcher = PatternMatcher;
|
|
44
|
+
exports.PatternMatcher = eslintUtils.PatternMatcher;
|
|
46
45
|
//# sourceMappingURL=PatternMatcher.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PatternMatcher.js","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/PatternMatcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4EAA8D;AA6C9D;;;;;GAKG;
|
|
1
|
+
{"version":3,"file":"PatternMatcher.js","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/PatternMatcher.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4EAA8D;AA6C9D;;;;;GAKG;AACU,QAAA,cAAc,GAAG,WAAW,CAAC,cAGvB,CAAC"}
|
|
@@ -71,6 +71,6 @@ declare namespace ReferenceTracker {
|
|
|
71
71
|
*
|
|
72
72
|
* @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#referencetracker-class}
|
|
73
73
|
*/
|
|
74
|
-
declare const ReferenceTracker: ReferenceTrackerStatic;
|
|
75
|
-
export {
|
|
74
|
+
export declare const ReferenceTracker: ReferenceTrackerStatic;
|
|
75
|
+
export {};
|
|
76
76
|
//# sourceMappingURL=ReferenceTracker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReferenceTracker.d.ts","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/ReferenceTracker.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,QAAQ,MAAM,iBAAiB,CAAC;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ACzB,KAAY,IAAI,GAAG,sBAAsB,CAAC,MAAM,CAAC,CAAC;IAClD,KAAY,IAAI,GAAG,sBAAsB,CAAC,MAAM,CAAC,CAAC;IAClD,KAAY,SAAS,GAAG,sBAAsB,CAAC,WAAW,CAAC,CAAC;IAC5D,KAAY,GAAG,GAAG,sBAAsB,CAAC,KAAK,CAAC,CAAC;IAChD,KAAY,aAAa,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,CAAC;IAEpD,KAAY,QAAQ,CAAC,CAAC,GAAG,GAAG,IAAI,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;IACnE,UAAiB,eAAe,CAAC,CAAC;QAChC,CAAC,GAAG,EAAE,MAAM,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC;QAClC,CAAC,oBAAoB,CAAC,CAAC,EAAE,CAAC,CAAC;QAC3B,CAAC,yBAAyB,CAAC,CAAC,EAAE,CAAC,CAAC;QAChC,CAAC,mBAAmB,CAAC,CAAC,EAAE,IAAI,CAAC;QAC7B,CAAC,oBAAoB,CAAC,CAAC,EAAE,CAAC,CAAC;KAC5B;IAED,UAAiB,cAAc,CAAC,CAAC,GAAG,GAAG;QACrC,IAAI,EAAE,CAAC,CAAC;QACR,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC;QACpB,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;QACxB,IAAI,EAAE,aAAa,CAAC;KACrB;CACF;AAED;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,EACK,sBAAsB,CAAC"}
|
|
@@ -45,6 +45,5 @@ const ReferenceTrackerESM = eslintUtils.ReferenceTracker.ESM;
|
|
|
45
45
|
*
|
|
46
46
|
* @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#referencetracker-class}
|
|
47
47
|
*/
|
|
48
|
-
|
|
49
|
-
exports.ReferenceTracker = ReferenceTracker;
|
|
48
|
+
exports.ReferenceTracker = eslintUtils.ReferenceTracker;
|
|
50
49
|
//# sourceMappingURL=ReferenceTracker.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReferenceTracker.js","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/ReferenceTracker.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAoD;AACpD,4EAA8D;AAK9D,MAAM,oBAAoB,GAAkB,WAAW,CAAC,gBAAgB,CAAC,IAAI,CAAC;AAC9E,MAAM,oBAAoB,GAAkB,WAAW,CAAC,gBAAgB,CAAC,IAAI,CAAC;AAC9E,MAAM,yBAAyB,GAC7B,WAAW,CAAC,gBAAgB,CAAC,SAAS,CAAC;AACzC,MAAM,mBAAmB,GAAkB,WAAW,CAAC,gBAAgB,CAAC,GAAG,CAAC;AAiF5E;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"ReferenceTracker.js","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/ReferenceTracker.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAoD;AACpD,4EAA8D;AAK9D,MAAM,oBAAoB,GAAkB,WAAW,CAAC,gBAAgB,CAAC,IAAI,CAAC;AAC9E,MAAM,oBAAoB,GAAkB,WAAW,CAAC,gBAAgB,CAAC,IAAI,CAAC;AAC9E,MAAM,yBAAyB,GAC7B,WAAW,CAAC,gBAAgB,CAAC,SAAS,CAAC;AACzC,MAAM,mBAAmB,GAAkB,WAAW,CAAC,gBAAgB,CAAC,GAAG,CAAC;AAiF5E;;;;GAIG;AACU,QAAA,gBAAgB,GAC3B,WAAW,CAAC,gBAA0C,CAAC"}
|
|
@@ -5,13 +5,13 @@ import type { TSESTree } from '../../ts-estree';
|
|
|
5
5
|
*
|
|
6
6
|
* @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getfunctionheadlocation}
|
|
7
7
|
*/
|
|
8
|
-
declare const getFunctionHeadLocation: (node: TSESTree.ArrowFunctionExpression | TSESTree.FunctionDeclaration | TSESTree.FunctionExpression, sourceCode: TSESLint.SourceCode) => TSESTree.SourceLocation;
|
|
8
|
+
export declare const getFunctionHeadLocation: (node: TSESTree.ArrowFunctionExpression | TSESTree.FunctionDeclaration | TSESTree.FunctionExpression, sourceCode: TSESLint.SourceCode) => TSESTree.SourceLocation;
|
|
9
9
|
/**
|
|
10
10
|
* Get the name and kind of a given function node.
|
|
11
11
|
*
|
|
12
12
|
* @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getfunctionnamewithkind}
|
|
13
13
|
*/
|
|
14
|
-
declare const getFunctionNameWithKind: (node: TSESTree.ArrowFunctionExpression | TSESTree.FunctionDeclaration | TSESTree.FunctionExpression, sourceCode?: TSESLint.SourceCode) => string;
|
|
14
|
+
export declare const getFunctionNameWithKind: (node: TSESTree.ArrowFunctionExpression | TSESTree.FunctionDeclaration | TSESTree.FunctionExpression, sourceCode?: TSESLint.SourceCode) => string;
|
|
15
15
|
/**
|
|
16
16
|
* Get the property name of a given property node.
|
|
17
17
|
* If the node is a computed property, this tries to compute the property name by the getStringIfConstant function.
|
|
@@ -19,7 +19,7 @@ declare const getFunctionNameWithKind: (node: TSESTree.ArrowFunctionExpression |
|
|
|
19
19
|
* @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getpropertyname}
|
|
20
20
|
* @returns The property name of the node. If the property name is not constant then it returns `null`.
|
|
21
21
|
*/
|
|
22
|
-
declare const getPropertyName: (node: TSESTree.MemberExpression | TSESTree.MethodDefinition | TSESTree.Property | TSESTree.PropertyDefinition, initialScope?: TSESLint.Scope.Scope) => string | null;
|
|
22
|
+
export declare const getPropertyName: (node: TSESTree.MemberExpression | TSESTree.MethodDefinition | TSESTree.Property | TSESTree.PropertyDefinition, initialScope?: TSESLint.Scope.Scope) => string | null;
|
|
23
23
|
/**
|
|
24
24
|
* Get the value of a given node if it can decide the value statically.
|
|
25
25
|
* If the 2nd parameter `initialScope` was given, this function tries to resolve identifier references which are in the
|
|
@@ -31,7 +31,7 @@ declare const getPropertyName: (node: TSESTree.MemberExpression | TSESTree.Metho
|
|
|
31
31
|
* @returns The `{ value: any }` shaped object. The `value` property is the static value. If it couldn't compute the
|
|
32
32
|
* static value of the node, it returns `null`.
|
|
33
33
|
*/
|
|
34
|
-
declare const getStaticValue: (node: TSESTree.Node, initialScope?: TSESLint.Scope.Scope) => {
|
|
34
|
+
export declare const getStaticValue: (node: TSESTree.Node, initialScope?: TSESLint.Scope.Scope) => {
|
|
35
35
|
value: unknown;
|
|
36
36
|
} | null;
|
|
37
37
|
/**
|
|
@@ -40,7 +40,7 @@ declare const getStaticValue: (node: TSESTree.Node, initialScope?: TSESLint.Scop
|
|
|
40
40
|
*
|
|
41
41
|
* @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getstringifconstant}
|
|
42
42
|
*/
|
|
43
|
-
declare const getStringIfConstant: (node: TSESTree.Node, initialScope?: TSESLint.Scope.Scope) => string | null;
|
|
43
|
+
export declare const getStringIfConstant: (node: TSESTree.Node, initialScope?: TSESLint.Scope.Scope) => string | null;
|
|
44
44
|
/**
|
|
45
45
|
* Check whether a given node has any side effect or not.
|
|
46
46
|
* The side effect means that it may modify a certain variable or object member. This function considers the node which
|
|
@@ -64,11 +64,11 @@ declare const getStringIfConstant: (node: TSESTree.Node, initialScope?: TSESLint
|
|
|
64
64
|
*
|
|
65
65
|
* @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#hassideeffect}
|
|
66
66
|
*/
|
|
67
|
-
declare const hasSideEffect: (node: TSESTree.Node, sourceCode: TSESLint.SourceCode, options?: {
|
|
67
|
+
export declare const hasSideEffect: (node: TSESTree.Node, sourceCode: TSESLint.SourceCode, options?: {
|
|
68
68
|
considerGetters?: boolean;
|
|
69
69
|
considerImplicitTypeConversion?: boolean;
|
|
70
70
|
}) => boolean;
|
|
71
|
-
declare const isParenthesized: {
|
|
71
|
+
export declare const isParenthesized: {
|
|
72
72
|
(times: number, node: TSESTree.Node, sourceCode: TSESLint.SourceCode): boolean;
|
|
73
73
|
/**
|
|
74
74
|
* Check whether a given node is parenthesized or not.
|
|
@@ -81,5 +81,4 @@ declare const isParenthesized: {
|
|
|
81
81
|
*/
|
|
82
82
|
(node: TSESTree.Node, sourceCode: TSESLint.SourceCode): boolean;
|
|
83
83
|
};
|
|
84
|
-
export { getFunctionHeadLocation, getFunctionNameWithKind, getPropertyName, getStaticValue, getStringIfConstant, hasSideEffect, isParenthesized, };
|
|
85
84
|
//# sourceMappingURL=astUtilities.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"astUtilities.d.ts","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/astUtilities.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEhD;;;;GAIG;AACH,
|
|
1
|
+
{"version":3,"file":"astUtilities.d.ts","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/astUtilities.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEhD;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,EAA0C,CAC5E,IAAI,EACA,QAAQ,CAAC,uBAAuB,GAChC,QAAQ,CAAC,mBAAmB,GAC5B,QAAQ,CAAC,kBAAkB,EAC/B,UAAU,EAAE,QAAQ,CAAC,UAAU,KAC5B,QAAQ,CAAC,cAAc,CAAC;AAE7B;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,EAA0C,CAC5E,IAAI,EACA,QAAQ,CAAC,uBAAuB,GAChC,QAAQ,CAAC,mBAAmB,GAC5B,QAAQ,CAAC,kBAAkB,EAC/B,UAAU,CAAC,EAAE,QAAQ,CAAC,UAAU,KAC7B,MAAM,CAAC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ar(require("@eslint-community/eslint-utils"));
|
|
|
40
40
|
*
|
|
41
41
|
* @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getfunctionheadlocation}
|
|
42
42
|
*/
|
|
43
|
-
|
|
44
|
-
exports.getFunctionHeadLocation = getFunctionHeadLocation;
|
|
43
|
+
exports.getFunctionHeadLocation = eslintUtils.getFunctionHeadLocation;
|
|
45
44
|
/**
|
|
46
45
|
* Get the name and kind of a given function node.
|
|
47
46
|
*
|
|
48
47
|
* @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getfunctionnamewithkind}
|
|
49
48
|
*/
|
|
50
|
-
|
|
51
|
-
exports.getFunctionNameWithKind = getFunctionNameWithKind;
|
|
49
|
+
exports.getFunctionNameWithKind = eslintUtils.getFunctionNameWithKind;
|
|
52
50
|
/**
|
|
53
51
|
* Get the property name of a given property node.
|
|
54
52
|
* If the node is a computed property, this tries to compute the property name by the getStringIfConstant function.
|
|
@@ -56,8 +54,7 @@ exports.getFunctionNameWithKind = getFunctionNameWithKind;
|
|
|
56
54
|
* @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getpropertyname}
|
|
57
55
|
* @returns The property name of the node. If the property name is not constant then it returns `null`.
|
|
58
56
|
*/
|
|
59
|
-
|
|
60
|
-
exports.getPropertyName = getPropertyName;
|
|
57
|
+
exports.getPropertyName = eslintUtils.getPropertyName;
|
|
61
58
|
/**
|
|
62
59
|
* Get the value of a given node if it can decide the value statically.
|
|
63
60
|
* If the 2nd parameter `initialScope` was given, this function tries to resolve identifier references which are in the
|
|
@@ -69,16 +66,14 @@ exports.getPropertyName = getPropertyName;
|
|
|
69
66
|
* @returns The `{ value: any }` shaped object. The `value` property is the static value. If it couldn't compute the
|
|
70
67
|
* static value of the node, it returns `null`.
|
|
71
68
|
*/
|
|
72
|
-
|
|
73
|
-
exports.getStaticValue = getStaticValue;
|
|
69
|
+
exports.getStaticValue = eslintUtils.getStaticValue;
|
|
74
70
|
/**
|
|
75
71
|
* Get the string value of a given node.
|
|
76
72
|
* This function is a tiny wrapper of the getStaticValue function.
|
|
77
73
|
*
|
|
78
74
|
* @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#getstringifconstant}
|
|
79
75
|
*/
|
|
80
|
-
|
|
81
|
-
exports.getStringIfConstant = getStringIfConstant;
|
|
76
|
+
exports.getStringIfConstant = eslintUtils.getStringIfConstant;
|
|
82
77
|
/**
|
|
83
78
|
* Check whether a given node has any side effect or not.
|
|
84
79
|
* The side effect means that it may modify a certain variable or object member. This function considers the node which
|
|
@@ -102,8 +97,6 @@ exports.getStringIfConstant = getStringIfConstant;
|
|
|
102
97
|
*
|
|
103
98
|
* @see {@link https://eslint-community.github.io/eslint-utils/api/ast-utils.html#hassideeffect}
|
|
104
99
|
*/
|
|
105
|
-
|
|
106
|
-
exports.
|
|
107
|
-
const isParenthesized = eslintUtils.isParenthesized;
|
|
108
|
-
exports.isParenthesized = isParenthesized;
|
|
100
|
+
exports.hasSideEffect = eslintUtils.hasSideEffect;
|
|
101
|
+
exports.isParenthesized = eslintUtils.isParenthesized;
|
|
109
102
|
//# sourceMappingURL=astUtilities.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"astUtilities.js","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/astUtilities.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4EAA8D;AAK9D;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"astUtilities.js","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/astUtilities.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4EAA8D;AAK9D;;;;GAIG;AACU,QAAA,uBAAuB,GAAG,WAAW,CAAC,uBAMvB,CAAC;AAE7B;;;;GAIG;AACU,QAAA,uBAAuB,GAAG,WAAW,CAAC,uBAMxC,CAAC;AAEZ;;;;;;GAMG;AACU,QAAA,eAAe,GAAG,WAAW,CAAC,eAOzB,CAAC;AAEnB;;;;;;;;;;GAUG;AACU,QAAA,cAAc,GAAG,WAAW,CAAC,cAGZ,CAAC;AAE/B;;;;;GAKG;AACU,QAAA,mBAAmB,GAAG,WAAW,CAAC,mBAG7B,CAAC;AAEnB;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACU,QAAA,aAAa,GAAG,WAAW,CAAC,aAO7B,CAAC;AAEA,QAAA,eAAe,GAAG,WAAW,CAAC,eAiB1C,CAAC"}
|
|
@@ -6,27 +6,27 @@ type PunctuatorTokenWithValue<Value extends string> = {
|
|
|
6
6
|
} & TSESTree.PunctuatorToken;
|
|
7
7
|
type IsPunctuatorTokenWithValueFunction<Value extends string> = IsSpecificTokenFunction<PunctuatorTokenWithValue<Value>>;
|
|
8
8
|
type IsNotPunctuatorTokenWithValueFunction<Value extends string> = IsNotSpecificTokenFunction<PunctuatorTokenWithValue<Value>>;
|
|
9
|
-
declare const isArrowToken: IsPunctuatorTokenWithValueFunction<"=>">;
|
|
10
|
-
declare const isNotArrowToken: IsNotPunctuatorTokenWithValueFunction<"=>">;
|
|
11
|
-
declare const isClosingBraceToken: IsPunctuatorTokenWithValueFunction<"}">;
|
|
12
|
-
declare const isNotClosingBraceToken: IsNotPunctuatorTokenWithValueFunction<"}">;
|
|
13
|
-
declare const isClosingBracketToken: IsPunctuatorTokenWithValueFunction<"]">;
|
|
14
|
-
declare const isNotClosingBracketToken: IsNotPunctuatorTokenWithValueFunction<"]">;
|
|
15
|
-
declare const isClosingParenToken: IsPunctuatorTokenWithValueFunction<")">;
|
|
16
|
-
declare const isNotClosingParenToken: IsNotPunctuatorTokenWithValueFunction<")">;
|
|
17
|
-
declare const isColonToken: IsPunctuatorTokenWithValueFunction<":">;
|
|
18
|
-
declare const isNotColonToken: IsNotPunctuatorTokenWithValueFunction<":">;
|
|
19
|
-
declare const isCommaToken: IsPunctuatorTokenWithValueFunction<",">;
|
|
20
|
-
declare const isNotCommaToken: IsNotPunctuatorTokenWithValueFunction<",">;
|
|
21
|
-
declare const isCommentToken: IsSpecificTokenFunction<TSESTree.Comment>;
|
|
22
|
-
declare const isNotCommentToken: IsNotSpecificTokenFunction<TSESTree.Comment>;
|
|
23
|
-
declare const isOpeningBraceToken: IsPunctuatorTokenWithValueFunction<"{">;
|
|
24
|
-
declare const isNotOpeningBraceToken: IsNotPunctuatorTokenWithValueFunction<"{">;
|
|
25
|
-
declare const isOpeningBracketToken: IsPunctuatorTokenWithValueFunction<"[">;
|
|
26
|
-
declare const isNotOpeningBracketToken: IsNotPunctuatorTokenWithValueFunction<"[">;
|
|
27
|
-
declare const isOpeningParenToken: IsPunctuatorTokenWithValueFunction<"(">;
|
|
28
|
-
declare const isNotOpeningParenToken: IsNotPunctuatorTokenWithValueFunction<"(">;
|
|
29
|
-
declare const isSemicolonToken: IsPunctuatorTokenWithValueFunction<";">;
|
|
30
|
-
declare const isNotSemicolonToken: IsNotPunctuatorTokenWithValueFunction<";">;
|
|
31
|
-
export {
|
|
9
|
+
export declare const isArrowToken: IsPunctuatorTokenWithValueFunction<"=>">;
|
|
10
|
+
export declare const isNotArrowToken: IsNotPunctuatorTokenWithValueFunction<"=>">;
|
|
11
|
+
export declare const isClosingBraceToken: IsPunctuatorTokenWithValueFunction<"}">;
|
|
12
|
+
export declare const isNotClosingBraceToken: IsNotPunctuatorTokenWithValueFunction<"}">;
|
|
13
|
+
export declare const isClosingBracketToken: IsPunctuatorTokenWithValueFunction<"]">;
|
|
14
|
+
export declare const isNotClosingBracketToken: IsNotPunctuatorTokenWithValueFunction<"]">;
|
|
15
|
+
export declare const isClosingParenToken: IsPunctuatorTokenWithValueFunction<")">;
|
|
16
|
+
export declare const isNotClosingParenToken: IsNotPunctuatorTokenWithValueFunction<")">;
|
|
17
|
+
export declare const isColonToken: IsPunctuatorTokenWithValueFunction<":">;
|
|
18
|
+
export declare const isNotColonToken: IsNotPunctuatorTokenWithValueFunction<":">;
|
|
19
|
+
export declare const isCommaToken: IsPunctuatorTokenWithValueFunction<",">;
|
|
20
|
+
export declare const isNotCommaToken: IsNotPunctuatorTokenWithValueFunction<",">;
|
|
21
|
+
export declare const isCommentToken: IsSpecificTokenFunction<TSESTree.Comment>;
|
|
22
|
+
export declare const isNotCommentToken: IsNotSpecificTokenFunction<TSESTree.Comment>;
|
|
23
|
+
export declare const isOpeningBraceToken: IsPunctuatorTokenWithValueFunction<"{">;
|
|
24
|
+
export declare const isNotOpeningBraceToken: IsNotPunctuatorTokenWithValueFunction<"{">;
|
|
25
|
+
export declare const isOpeningBracketToken: IsPunctuatorTokenWithValueFunction<"[">;
|
|
26
|
+
export declare const isNotOpeningBracketToken: IsNotPunctuatorTokenWithValueFunction<"[">;
|
|
27
|
+
export declare const isOpeningParenToken: IsPunctuatorTokenWithValueFunction<"(">;
|
|
28
|
+
export declare const isNotOpeningParenToken: IsNotPunctuatorTokenWithValueFunction<"(">;
|
|
29
|
+
export declare const isSemicolonToken: IsPunctuatorTokenWithValueFunction<";">;
|
|
30
|
+
export declare const isNotSemicolonToken: IsNotPunctuatorTokenWithValueFunction<";">;
|
|
31
|
+
export {};
|
|
32
32
|
//# sourceMappingURL=predicates.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"predicates.d.ts","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/predicates.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEhD,KAAK,uBAAuB,CAAC,aAAa,SAAS,QAAQ,CAAC,KAAK,IAAI,CACnE,KAAK,EAAE,QAAQ,CAAC,KAAK,KAClB,KAAK,IAAI,aAAa,CAAC;AAE5B,KAAK,0BAA0B,CAAC,aAAa,SAAS,QAAQ,CAAC,KAAK,IAAI,CACtE,KAAK,EAAE,QAAQ,CAAC,KAAK,KAClB,KAAK,IAAI,OAAO,CAAC,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC;AAErD,KAAK,wB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AG,CAAC,CAAC;AAC1E,eAAO,MAAM,mBAAmB,EACK,qCAAqC,CAAC,GAAG,CAAC,CAAC"}
|
|
@@ -33,50 +33,28 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.
|
|
36
|
+
exports.isNotSemicolonToken = exports.isSemicolonToken = exports.isNotOpeningParenToken = exports.isOpeningParenToken = exports.isNotOpeningBracketToken = exports.isOpeningBracketToken = exports.isNotOpeningBraceToken = exports.isOpeningBraceToken = exports.isNotCommentToken = exports.isCommentToken = exports.isNotCommaToken = exports.isCommaToken = exports.isNotColonToken = exports.isColonToken = exports.isNotClosingParenToken = exports.isClosingParenToken = exports.isNotClosingBracketToken = exports.isClosingBracketToken = exports.isNotClosingBraceToken = exports.isClosingBraceToken = exports.isNotArrowToken = exports.isArrowToken = void 0;
|
|
37
37
|
const eslintUtils = __importStar(require("@eslint-community/eslint-utils"));
|
|
38
|
-
|
|
39
|
-
exports.
|
|
40
|
-
|
|
41
|
-
exports.
|
|
42
|
-
|
|
43
|
-
exports.
|
|
44
|
-
|
|
45
|
-
exports.
|
|
46
|
-
|
|
47
|
-
exports.
|
|
48
|
-
|
|
49
|
-
exports.
|
|
50
|
-
|
|
51
|
-
exports.
|
|
52
|
-
|
|
53
|
-
exports.
|
|
54
|
-
|
|
55
|
-
exports.
|
|
56
|
-
|
|
57
|
-
exports.
|
|
58
|
-
|
|
59
|
-
exports.
|
|
60
|
-
const isNotCommaToken = eslintUtils.isNotCommaToken;
|
|
61
|
-
exports.isNotCommaToken = isNotCommaToken;
|
|
62
|
-
const isCommentToken = eslintUtils.isCommentToken;
|
|
63
|
-
exports.isCommentToken = isCommentToken;
|
|
64
|
-
const isNotCommentToken = eslintUtils.isNotCommentToken;
|
|
65
|
-
exports.isNotCommentToken = isNotCommentToken;
|
|
66
|
-
const isOpeningBraceToken = eslintUtils.isOpeningBraceToken;
|
|
67
|
-
exports.isOpeningBraceToken = isOpeningBraceToken;
|
|
68
|
-
const isNotOpeningBraceToken = eslintUtils.isNotOpeningBraceToken;
|
|
69
|
-
exports.isNotOpeningBraceToken = isNotOpeningBraceToken;
|
|
70
|
-
const isOpeningBracketToken = eslintUtils.isOpeningBracketToken;
|
|
71
|
-
exports.isOpeningBracketToken = isOpeningBracketToken;
|
|
72
|
-
const isNotOpeningBracketToken = eslintUtils.isNotOpeningBracketToken;
|
|
73
|
-
exports.isNotOpeningBracketToken = isNotOpeningBracketToken;
|
|
74
|
-
const isOpeningParenToken = eslintUtils.isOpeningParenToken;
|
|
75
|
-
exports.isOpeningParenToken = isOpeningParenToken;
|
|
76
|
-
const isNotOpeningParenToken = eslintUtils.isNotOpeningParenToken;
|
|
77
|
-
exports.isNotOpeningParenToken = isNotOpeningParenToken;
|
|
78
|
-
const isSemicolonToken = eslintUtils.isSemicolonToken;
|
|
79
|
-
exports.isSemicolonToken = isSemicolonToken;
|
|
80
|
-
const isNotSemicolonToken = eslintUtils.isNotSemicolonToken;
|
|
81
|
-
exports.isNotSemicolonToken = isNotSemicolonToken;
|
|
38
|
+
exports.isArrowToken = eslintUtils.isArrowToken;
|
|
39
|
+
exports.isNotArrowToken = eslintUtils.isNotArrowToken;
|
|
40
|
+
exports.isClosingBraceToken = eslintUtils.isClosingBraceToken;
|
|
41
|
+
exports.isNotClosingBraceToken = eslintUtils.isNotClosingBraceToken;
|
|
42
|
+
exports.isClosingBracketToken = eslintUtils.isClosingBracketToken;
|
|
43
|
+
exports.isNotClosingBracketToken = eslintUtils.isNotClosingBracketToken;
|
|
44
|
+
exports.isClosingParenToken = eslintUtils.isClosingParenToken;
|
|
45
|
+
exports.isNotClosingParenToken = eslintUtils.isNotClosingParenToken;
|
|
46
|
+
exports.isColonToken = eslintUtils.isColonToken;
|
|
47
|
+
exports.isNotColonToken = eslintUtils.isNotColonToken;
|
|
48
|
+
exports.isCommaToken = eslintUtils.isCommaToken;
|
|
49
|
+
exports.isNotCommaToken = eslintUtils.isNotCommaToken;
|
|
50
|
+
exports.isCommentToken = eslintUtils.isCommentToken;
|
|
51
|
+
exports.isNotCommentToken = eslintUtils.isNotCommentToken;
|
|
52
|
+
exports.isOpeningBraceToken = eslintUtils.isOpeningBraceToken;
|
|
53
|
+
exports.isNotOpeningBraceToken = eslintUtils.isNotOpeningBraceToken;
|
|
54
|
+
exports.isOpeningBracketToken = eslintUtils.isOpeningBracketToken;
|
|
55
|
+
exports.isNotOpeningBracketToken = eslintUtils.isNotOpeningBracketToken;
|
|
56
|
+
exports.isOpeningParenToken = eslintUtils.isOpeningParenToken;
|
|
57
|
+
exports.isNotOpeningParenToken = eslintUtils.isNotOpeningParenToken;
|
|
58
|
+
exports.isSemicolonToken = eslintUtils.isSemicolonToken;
|
|
59
|
+
exports.isNotSemicolonToken = eslintUtils.isNotSemicolonToken;
|
|
82
60
|
//# sourceMappingURL=predicates.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"predicates.js","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/predicates.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4EAA8D;
|
|
1
|
+
{"version":3,"file":"predicates.js","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/predicates.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4EAA8D;AAoBjD,QAAA,YAAY,GACvB,WAAW,CAAC,YAAwD,CAAC;AAC1D,QAAA,eAAe,GAC1B,WAAW,CAAC,eAA8D,CAAC;AAEhE,QAAA,mBAAmB,GAC9B,WAAW,CAAC,mBAA8D,CAAC;AAChE,QAAA,sBAAsB,GACjC,WAAW,CAAC,sBAAoE,CAAC;AAEtE,QAAA,qBAAqB,GAChC,WAAW,CAAC,qBAAgE,CAAC;AAClE,QAAA,wBAAwB,GACnC,WAAW,CAAC,wBAAsE,CAAC;AAExE,QAAA,mBAAmB,GAC9B,WAAW,CAAC,mBAA8D,CAAC;AAChE,QAAA,sBAAsB,GACjC,WAAW,CAAC,sBAAoE,CAAC;AAEtE,QAAA,YAAY,GACvB,WAAW,CAAC,YAAuD,CAAC;AACzD,QAAA,eAAe,GAC1B,WAAW,CAAC,eAA6D,CAAC;AAE/D,QAAA,YAAY,GACvB,WAAW,CAAC,YAAuD,CAAC;AACzD,QAAA,eAAe,GAC1B,WAAW,CAAC,eAA6D,CAAC;AAE/D,QAAA,cAAc,GACzB,WAAW,CAAC,cAA2D,CAAC;AAC7D,QAAA,iBAAiB,GAC5B,WAAW,CAAC,iBAAiE,CAAC;AAEnE,QAAA,mBAAmB,GAC9B,WAAW,CAAC,mBAA8D,CAAC;AAChE,QAAA,sBAAsB,GACjC,WAAW,CAAC,sBAAoE,CAAC;AAEtE,QAAA,qBAAqB,GAChC,WAAW,CAAC,qBAAgE,CAAC;AAClE,QAAA,wBAAwB,GACnC,WAAW,CAAC,wBAAsE,CAAC;AAExE,QAAA,mBAAmB,GAC9B,WAAW,CAAC,mBAA8D,CAAC;AAChE,QAAA,sBAAsB,GACjC,WAAW,CAAC,sBAAoE,CAAC;AAEtE,QAAA,gBAAgB,GAC3B,WAAW,CAAC,gBAA2D,CAAC;AAC7D,QAAA,mBAAmB,GAC9B,WAAW,CAAC,mBAAiE,CAAC"}
|
|
@@ -5,7 +5,7 @@ import type { TSESTree } from '../../ts-estree';
|
|
|
5
5
|
*
|
|
6
6
|
* @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#findvariable}
|
|
7
7
|
*/
|
|
8
|
-
declare const findVariable: (initialScope: TSESLint.Scope.Scope, nameOrNode: string | TSESTree.Identifier) => TSESLint.Scope.Variable | null;
|
|
8
|
+
export declare const findVariable: (initialScope: TSESLint.Scope.Scope, nameOrNode: string | TSESTree.Identifier) => TSESLint.Scope.Variable | null;
|
|
9
9
|
/**
|
|
10
10
|
* Get the innermost scope which contains a given node.
|
|
11
11
|
*
|
|
@@ -13,6 +13,5 @@ declare const findVariable: (initialScope: TSESLint.Scope.Scope, nameOrNode: str
|
|
|
13
13
|
* @returns The innermost scope which contains the given node.
|
|
14
14
|
* If such scope doesn't exist then it returns the 1st argument `initialScope`.
|
|
15
15
|
*/
|
|
16
|
-
declare const getInnermostScope: (initialScope: TSESLint.Scope.Scope, node: TSESTree.Node) => TSESLint.Scope.Scope;
|
|
17
|
-
export { findVariable, getInnermostScope };
|
|
16
|
+
export declare const getInnermostScope: (initialScope: TSESLint.Scope.Scope, node: TSESTree.Node) => TSESLint.Scope.Scope;
|
|
18
17
|
//# sourceMappingURL=scopeAnalysis.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scopeAnalysis.d.ts","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/scopeAnalysis.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEhD;;;;GAIG;AACH,
|
|
1
|
+
{"version":3,"file":"scopeAnalysis.d.ts","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/scopeAnalysis.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEhD;;;;GAIG;AACH,eAAO,MAAM,YAAY,EAA+B,CACtD,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAC,KAAK,EAClC,UAAU,EAAE,MAAM,GAAG,QAAQ,CAAC,UAAU,KACrC,QAAQ,CAAC,KAAK,CAAC,QAAQ,GAAG,IAAI,CAAC;AAEpC;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,EAAoC,CAChE,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAC,KAAK,EAClC,IAAI,EAAE,QAAQ,CAAC,IAAI,KAChB,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC"}
|
|
@@ -40,8 +40,7 @@ const eslintUtils = __importStar(require("@eslint-community/eslint-utils"));
|
|
|
40
40
|
*
|
|
41
41
|
* @see {@link https://eslint-community.github.io/eslint-utils/api/scope-utils.html#findvariable}
|
|
42
42
|
*/
|
|
43
|
-
|
|
44
|
-
exports.findVariable = findVariable;
|
|
43
|
+
exports.findVariable = eslintUtils.findVariable;
|
|
45
44
|
/**
|
|
46
45
|
* Get the innermost scope which contains a given node.
|
|
47
46
|
*
|
|
@@ -49,6 +48,5 @@ exports.findVariable = findVariable;
|
|
|
49
48
|
* @returns The innermost scope which contains the given node.
|
|
50
49
|
* If such scope doesn't exist then it returns the 1st argument `initialScope`.
|
|
51
50
|
*/
|
|
52
|
-
|
|
53
|
-
exports.getInnermostScope = getInnermostScope;
|
|
51
|
+
exports.getInnermostScope = eslintUtils.getInnermostScope;
|
|
54
52
|
//# sourceMappingURL=scopeAnalysis.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scopeAnalysis.js","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/scopeAnalysis.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4EAA8D;AAK9D;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"scopeAnalysis.js","sourceRoot":"","sources":["../../../src/ast-utils/eslint-utils/scopeAnalysis.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4EAA8D;AAK9D;;;;GAIG;AACU,QAAA,YAAY,GAAG,WAAW,CAAC,YAGL,CAAC;AAEpC;;;;;;GAMG;AACU,QAAA,iBAAiB,GAAG,WAAW,CAAC,iBAGpB,CAAC"}
|
package/dist/ast-utils/misc.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type { TSESTree } from '../ts-estree';
|
|
2
|
-
declare const LINEBREAK_MATCHER: RegExp;
|
|
2
|
+
export declare const LINEBREAK_MATCHER: RegExp;
|
|
3
3
|
/**
|
|
4
4
|
* Determines whether two adjacent tokens are on the same line
|
|
5
5
|
*/
|
|
6
|
-
declare function isTokenOnSameLine(left: TSESTree.Node | TSESTree.Token, right: TSESTree.Node | TSESTree.Token): boolean;
|
|
7
|
-
export { isTokenOnSameLine, LINEBREAK_MATCHER };
|
|
6
|
+
export declare function isTokenOnSameLine(left: TSESTree.Node | TSESTree.Token, right: TSESTree.Node | TSESTree.Token): boolean;
|
|
8
7
|
//# sourceMappingURL=misc.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"misc.d.ts","sourceRoot":"","sources":["../../src/ast-utils/misc.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE7C,
|
|
1
|
+
{"version":3,"file":"misc.d.ts","sourceRoot":"","sources":["../../src/ast-utils/misc.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE7C,eAAO,MAAM,iBAAiB,QAA4B,CAAC;AAE3D;;GAEG;AACH,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,QAAQ,CAAC,KAAK,EACpC,KAAK,EAAE,QAAQ,CAAC,IAAI,GAAG,QAAQ,CAAC,KAAK,GACpC,OAAO,CAET"}
|
package/dist/ast-utils/misc.js
CHANGED
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.LINEBREAK_MATCHER = void 0;
|
|
4
4
|
exports.isTokenOnSameLine = isTokenOnSameLine;
|
|
5
|
-
|
|
6
|
-
exports.LINEBREAK_MATCHER = LINEBREAK_MATCHER;
|
|
5
|
+
exports.LINEBREAK_MATCHER = /\r\n|[\r\n\u2028\u2029]/;
|
|
7
6
|
/**
|
|
8
7
|
* Determines whether two adjacent tokens are on the same line
|
|
9
8
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"misc.js","sourceRoot":"","sources":["../../src/ast-utils/misc.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"misc.js","sourceRoot":"","sources":["../../src/ast-utils/misc.ts"],"names":[],"mappings":";;;AAOA,8CAKC;AAVY,QAAA,iBAAiB,GAAG,yBAAyB,CAAC;AAE3D;;GAEG;AACH,SAAgB,iBAAiB,CAC/B,IAAoC,EACpC,KAAqC;IAErC,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,KAAK,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC;AACpD,CAAC"}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import type { TSESTree } from '../ts-estree';
|
|
2
|
-
declare const isOptionalChainPunctuator: (token: TSESTree.Token | null | undefined) => token is {
|
|
2
|
+
export declare const isOptionalChainPunctuator: (token: TSESTree.Token | null | undefined) => token is {
|
|
3
3
|
value: "?.";
|
|
4
4
|
} & TSESTree.PunctuatorToken;
|
|
5
|
-
declare const isNotOptionalChainPunctuator: (token: TSESTree.Token | null | undefined) => token is TSESTree.BooleanToken | TSESTree.BlockComment | TSESTree.LineComment | TSESTree.IdentifierToken | TSESTree.JSXIdentifierToken | TSESTree.JSXTextToken | TSESTree.KeywordToken | TSESTree.NullToken | TSESTree.NumericToken | TSESTree.PunctuatorToken | TSESTree.RegularExpressionToken | TSESTree.StringToken | TSESTree.TemplateToken;
|
|
6
|
-
declare const isNonNullAssertionPunctuator: (token: TSESTree.Token | null | undefined) => token is {
|
|
5
|
+
export declare const isNotOptionalChainPunctuator: (token: TSESTree.Token | null | undefined) => token is TSESTree.BooleanToken | TSESTree.BlockComment | TSESTree.LineComment | TSESTree.IdentifierToken | TSESTree.JSXIdentifierToken | TSESTree.JSXTextToken | TSESTree.KeywordToken | TSESTree.NullToken | TSESTree.NumericToken | TSESTree.PunctuatorToken | TSESTree.RegularExpressionToken | TSESTree.StringToken | TSESTree.TemplateToken;
|
|
6
|
+
export declare const isNonNullAssertionPunctuator: (token: TSESTree.Token | null | undefined) => token is {
|
|
7
7
|
value: "!";
|
|
8
8
|
} & TSESTree.PunctuatorToken;
|
|
9
|
-
declare const isNotNonNullAssertionPunctuator: (token: TSESTree.Token | null | undefined) => token is TSESTree.BooleanToken | TSESTree.BlockComment | TSESTree.LineComment | TSESTree.IdentifierToken | TSESTree.JSXIdentifierToken | TSESTree.JSXTextToken | TSESTree.KeywordToken | TSESTree.NullToken | TSESTree.NumericToken | TSESTree.PunctuatorToken | TSESTree.RegularExpressionToken | TSESTree.StringToken | TSESTree.TemplateToken;
|
|
9
|
+
export declare const isNotNonNullAssertionPunctuator: (token: TSESTree.Token | null | undefined) => token is TSESTree.BooleanToken | TSESTree.BlockComment | TSESTree.LineComment | TSESTree.IdentifierToken | TSESTree.JSXIdentifierToken | TSESTree.JSXTextToken | TSESTree.KeywordToken | TSESTree.NullToken | TSESTree.NumericToken | TSESTree.PunctuatorToken | TSESTree.RegularExpressionToken | TSESTree.StringToken | TSESTree.TemplateToken;
|
|
10
10
|
/**
|
|
11
11
|
* Returns true if and only if the node represents: foo?.() or foo.bar?.()
|
|
12
12
|
*/
|
|
13
|
-
declare const isOptionalCallExpression: (node: TSESTree.Node | null | undefined) => node is {
|
|
13
|
+
export declare const isOptionalCallExpression: (node: TSESTree.Node | null | undefined) => node is {
|
|
14
14
|
optional: boolean;
|
|
15
15
|
} & TSESTree.CallExpression;
|
|
16
16
|
/**
|
|
17
17
|
* Returns true if and only if the node represents logical OR
|
|
18
18
|
*/
|
|
19
|
-
declare const isLogicalOrOperator: (node: TSESTree.Node | null | undefined) => node is Partial<TSESTree.LogicalExpression> & TSESTree.LogicalExpression;
|
|
19
|
+
export declare const isLogicalOrOperator: (node: TSESTree.Node | null | undefined) => node is Partial<TSESTree.LogicalExpression> & TSESTree.LogicalExpression;
|
|
20
20
|
/**
|
|
21
21
|
* Checks if a node is a type assertion:
|
|
22
22
|
* ```
|
|
@@ -24,47 +24,46 @@ declare const isLogicalOrOperator: (node: TSESTree.Node | null | undefined) => n
|
|
|
24
24
|
* <foo>x
|
|
25
25
|
* ```
|
|
26
26
|
*/
|
|
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.VariableDeclaratorDefiniteAssignment | TSESTree.VariableDeclaratorMaybeInit | TSESTree.VariableDeclaratorNoInit | TSESTree.UsingInForOfDeclarator | TSESTree.UsingInNormalContextDeclarator;
|
|
29
|
-
declare const isFunction: (node: TSESTree.Node | null | undefined) => node is TSESTree.ArrowFunctionExpression | TSESTree.FunctionDeclarationWithName | TSESTree.FunctionDeclarationWithOptionalName | TSESTree.FunctionExpression;
|
|
30
|
-
declare const isFunctionType: (node: TSESTree.Node | null | undefined) => node is TSESTree.TSCallSignatureDeclaration | TSESTree.TSConstructorType | TSESTree.TSConstructSignatureDeclaration | TSESTree.TSDeclareFunctionNoDeclare | TSESTree.TSDeclareFunctionWithDeclare | TSESTree.TSEmptyBodyFunctionExpression | TSESTree.TSFunctionType | TSESTree.TSMethodSignatureComputedName | TSESTree.TSMethodSignatureNonComputedName;
|
|
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.TSDeclareFunctionNoDeclare | TSESTree.TSDeclareFunctionWithDeclare | TSESTree.TSEmptyBodyFunctionExpression | TSESTree.TSFunctionType | TSESTree.TSMethodSignatureComputedName | TSESTree.TSMethodSignatureNonComputedName;
|
|
32
|
-
declare const isTSFunctionType: (node: TSESTree.Node | null | undefined) => node is TSESTree.TSFunctionType;
|
|
33
|
-
declare const isTSConstructorType: (node: TSESTree.Node | null | undefined) => node is TSESTree.TSConstructorType;
|
|
34
|
-
declare const isClassOrTypeElement: (node: TSESTree.Node | null | undefined) => node is TSESTree.FunctionExpression | TSESTree.MethodDefinitionComputedName | TSESTree.MethodDefinitionNonComputedName | TSESTree.PropertyDefinitionComputedName | TSESTree.PropertyDefinitionNonComputedName | TSESTree.TSAbstractMethodDefinitionComputedName | TSESTree.TSAbstractMethodDefinitionNonComputedName | TSESTree.TSAbstractPropertyDefinitionComputedName | TSESTree.TSAbstractPropertyDefinitionNonComputedName | TSESTree.TSCallSignatureDeclaration | TSESTree.TSConstructSignatureDeclaration | TSESTree.TSEmptyBodyFunctionExpression | TSESTree.TSIndexSignature | TSESTree.TSMethodSignatureComputedName | TSESTree.TSMethodSignatureNonComputedName | TSESTree.TSPropertySignatureComputedName | TSESTree.TSPropertySignatureNonComputedName;
|
|
27
|
+
export declare const isTypeAssertion: (node: TSESTree.Node | null | undefined) => node is TSESTree.TSAsExpression | TSESTree.TSTypeAssertion;
|
|
28
|
+
export declare const isVariableDeclarator: (node: TSESTree.Node | null | undefined) => node is TSESTree.VariableDeclaratorDefiniteAssignment | TSESTree.VariableDeclaratorMaybeInit | TSESTree.VariableDeclaratorNoInit | TSESTree.UsingInForOfDeclarator | TSESTree.UsingInNormalContextDeclarator;
|
|
29
|
+
export declare const isFunction: (node: TSESTree.Node | null | undefined) => node is TSESTree.ArrowFunctionExpression | TSESTree.FunctionDeclarationWithName | TSESTree.FunctionDeclarationWithOptionalName | TSESTree.FunctionExpression;
|
|
30
|
+
export declare const isFunctionType: (node: TSESTree.Node | null | undefined) => node is TSESTree.TSCallSignatureDeclaration | TSESTree.TSConstructorType | TSESTree.TSConstructSignatureDeclaration | TSESTree.TSDeclareFunctionNoDeclare | TSESTree.TSDeclareFunctionWithDeclare | TSESTree.TSEmptyBodyFunctionExpression | TSESTree.TSFunctionType | TSESTree.TSMethodSignatureComputedName | TSESTree.TSMethodSignatureNonComputedName;
|
|
31
|
+
export 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.TSDeclareFunctionNoDeclare | TSESTree.TSDeclareFunctionWithDeclare | TSESTree.TSEmptyBodyFunctionExpression | TSESTree.TSFunctionType | TSESTree.TSMethodSignatureComputedName | TSESTree.TSMethodSignatureNonComputedName;
|
|
32
|
+
export declare const isTSFunctionType: (node: TSESTree.Node | null | undefined) => node is TSESTree.TSFunctionType;
|
|
33
|
+
export declare const isTSConstructorType: (node: TSESTree.Node | null | undefined) => node is TSESTree.TSConstructorType;
|
|
34
|
+
export declare const isClassOrTypeElement: (node: TSESTree.Node | null | undefined) => node is TSESTree.FunctionExpression | TSESTree.MethodDefinitionComputedName | TSESTree.MethodDefinitionNonComputedName | TSESTree.PropertyDefinitionComputedName | TSESTree.PropertyDefinitionNonComputedName | TSESTree.TSAbstractMethodDefinitionComputedName | TSESTree.TSAbstractMethodDefinitionNonComputedName | TSESTree.TSAbstractPropertyDefinitionComputedName | TSESTree.TSAbstractPropertyDefinitionNonComputedName | TSESTree.TSCallSignatureDeclaration | TSESTree.TSConstructSignatureDeclaration | TSESTree.TSEmptyBodyFunctionExpression | TSESTree.TSIndexSignature | TSESTree.TSMethodSignatureComputedName | TSESTree.TSMethodSignatureNonComputedName | TSESTree.TSPropertySignatureComputedName | TSESTree.TSPropertySignatureNonComputedName;
|
|
35
35
|
/**
|
|
36
36
|
* Checks if a node is a constructor method.
|
|
37
37
|
*/
|
|
38
|
-
declare const isConstructor: (node: TSESTree.Node | null | undefined) => node is Partial<TSESTree.MethodDefinitionComputedName | TSESTree.MethodDefinitionNonComputedName> & (TSESTree.MethodDefinitionComputedName | TSESTree.MethodDefinitionNonComputedName);
|
|
38
|
+
export declare const isConstructor: (node: TSESTree.Node | null | undefined) => node is Partial<TSESTree.MethodDefinitionComputedName | TSESTree.MethodDefinitionNonComputedName> & (TSESTree.MethodDefinitionComputedName | TSESTree.MethodDefinitionNonComputedName);
|
|
39
39
|
/**
|
|
40
40
|
* Checks if a node is a setter method.
|
|
41
41
|
*/
|
|
42
|
-
declare function isSetter(node: TSESTree.Node | undefined): node is {
|
|
42
|
+
export declare function isSetter(node: TSESTree.Node | undefined): node is {
|
|
43
43
|
kind: 'set';
|
|
44
44
|
} & (TSESTree.MethodDefinition | TSESTree.Property);
|
|
45
|
-
declare const isIdentifier: (node: TSESTree.Node | null | undefined) => node is TSESTree.Identifier;
|
|
45
|
+
export declare const isIdentifier: (node: TSESTree.Node | null | undefined) => node is TSESTree.Identifier;
|
|
46
46
|
/**
|
|
47
47
|
* Checks if a node represents an `await …` expression.
|
|
48
48
|
*/
|
|
49
|
-
declare const isAwaitExpression: (node: TSESTree.Node | null | undefined) => node is TSESTree.AwaitExpression;
|
|
49
|
+
export declare const isAwaitExpression: (node: TSESTree.Node | null | undefined) => node is TSESTree.AwaitExpression;
|
|
50
50
|
/**
|
|
51
51
|
* Checks if a possible token is the `await` keyword.
|
|
52
52
|
*/
|
|
53
|
-
declare const isAwaitKeyword: (token: TSESTree.Token | null | undefined) => token is {
|
|
53
|
+
export declare const isAwaitKeyword: (token: TSESTree.Token | null | undefined) => token is {
|
|
54
54
|
value: "await";
|
|
55
55
|
} & TSESTree.IdentifierToken;
|
|
56
56
|
/**
|
|
57
57
|
* Checks if a possible token is the `type` keyword.
|
|
58
58
|
*/
|
|
59
|
-
declare const isTypeKeyword: (token: TSESTree.Token | null | undefined) => token is {
|
|
59
|
+
export declare const isTypeKeyword: (token: TSESTree.Token | null | undefined) => token is {
|
|
60
60
|
value: "type";
|
|
61
61
|
} & TSESTree.IdentifierToken;
|
|
62
62
|
/**
|
|
63
63
|
* Checks if a possible token is the `import` keyword.
|
|
64
64
|
*/
|
|
65
|
-
declare const isImportKeyword: (token: TSESTree.Token | null | undefined) => token is {
|
|
65
|
+
export declare const isImportKeyword: (token: TSESTree.Token | null | undefined) => token is {
|
|
66
66
|
value: "import";
|
|
67
67
|
} & TSESTree.KeywordToken;
|
|
68
|
-
declare const isLoop: (node: TSESTree.Node | null | undefined) => node is TSESTree.DoWhileStatement | TSESTree.ForInStatement | TSESTree.ForOfStatement | TSESTree.ForStatement | TSESTree.WhileStatement;
|
|
69
|
-
export { isAwaitExpression, isAwaitKeyword, isClassOrTypeElement, isConstructor, isFunction, isFunctionOrFunctionType, isFunctionType, isIdentifier, isImportKeyword, isLogicalOrOperator, isLoop, isNonNullAssertionPunctuator, isNotNonNullAssertionPunctuator, isNotOptionalChainPunctuator, isOptionalCallExpression, isOptionalChainPunctuator, isSetter, isTSConstructorType, isTSFunctionType, isTypeAssertion, isTypeKeyword, isVariableDeclarator, };
|
|
68
|
+
export declare const isLoop: (node: TSESTree.Node | null | undefined) => node is TSESTree.DoWhileStatement | TSESTree.ForInStatement | TSESTree.ForOfStatement | TSESTree.ForStatement | TSESTree.WhileStatement;
|
|
70
69
|
//# sourceMappingURL=predicates.d.ts.map
|
|
@@ -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;AAW7C,
|
|
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;AAW7C,eAAO,MAAM,yBAAyB,UA6DzB,SAAW,KACxB;;4BA3DC,CAAC;AAEF,eAAO,MAAM,4BAA4B,UA8EZ,SAAU,KAAK,wWA3E3C,CAAC;AAEF,eAAO,MAAM,4BAA4B,UAmD5B,S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C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,UA/Eb,SAAW,KACxB;;4BAiFC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,UAvFf,SAAW,KACxB;;yBAyFC,CAAC;AAEF,eAAO,MAAM,MAAM,SA/IgD,SAC/D,IAAI,+JAoJG,CAAC"}
|
|
@@ -1,30 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.isLoop = exports.isImportKeyword = exports.isTypeKeyword = exports.isAwaitKeyword = exports.isAwaitExpression = exports.isIdentifier = exports.isConstructor = exports.isClassOrTypeElement = exports.isTSConstructorType = exports.isTSFunctionType = exports.isFunctionOrFunctionType = exports.isFunctionType = exports.isFunction = exports.isVariableDeclarator = exports.isTypeAssertion = exports.isLogicalOrOperator = exports.isOptionalCallExpression = exports.isNotNonNullAssertionPunctuator = exports.isNonNullAssertionPunctuator = exports.isNotOptionalChainPunctuator = exports.isOptionalChainPunctuator = void 0;
|
|
4
4
|
exports.isSetter = isSetter;
|
|
5
5
|
const ts_estree_1 = require("../ts-estree");
|
|
6
6
|
const helpers_1 = require("./helpers");
|
|
7
|
-
|
|
8
|
-
exports.
|
|
9
|
-
|
|
10
|
-
exports.
|
|
11
|
-
const isNonNullAssertionPunctuator = (0, helpers_1.isTokenOfTypeWithConditions)(ts_estree_1.AST_TOKEN_TYPES.Punctuator, { value: '!' });
|
|
12
|
-
exports.isNonNullAssertionPunctuator = isNonNullAssertionPunctuator;
|
|
13
|
-
const isNotNonNullAssertionPunctuator = (0, helpers_1.isNotTokenOfTypeWithConditions)(ts_estree_1.AST_TOKEN_TYPES.Punctuator, { value: '!' });
|
|
14
|
-
exports.isNotNonNullAssertionPunctuator = isNotNonNullAssertionPunctuator;
|
|
7
|
+
exports.isOptionalChainPunctuator = (0, helpers_1.isTokenOfTypeWithConditions)(ts_estree_1.AST_TOKEN_TYPES.Punctuator, { value: '?.' });
|
|
8
|
+
exports.isNotOptionalChainPunctuator = (0, helpers_1.isNotTokenOfTypeWithConditions)(ts_estree_1.AST_TOKEN_TYPES.Punctuator, { value: '?.' });
|
|
9
|
+
exports.isNonNullAssertionPunctuator = (0, helpers_1.isTokenOfTypeWithConditions)(ts_estree_1.AST_TOKEN_TYPES.Punctuator, { value: '!' });
|
|
10
|
+
exports.isNotNonNullAssertionPunctuator = (0, helpers_1.isNotTokenOfTypeWithConditions)(ts_estree_1.AST_TOKEN_TYPES.Punctuator, { value: '!' });
|
|
15
11
|
/**
|
|
16
12
|
* Returns true if and only if the node represents: foo?.() or foo.bar?.()
|
|
17
13
|
*/
|
|
18
|
-
|
|
14
|
+
exports.isOptionalCallExpression = (0, helpers_1.isNodeOfTypeWithConditions)(ts_estree_1.AST_NODE_TYPES.CallExpression,
|
|
19
15
|
// this flag means the call expression itself is option
|
|
20
16
|
// i.e. it is foo.bar?.() and not foo?.bar()
|
|
21
17
|
{ optional: true });
|
|
22
|
-
exports.isOptionalCallExpression = isOptionalCallExpression;
|
|
23
18
|
/**
|
|
24
19
|
* Returns true if and only if the node represents logical OR
|
|
25
20
|
*/
|
|
26
|
-
|
|
27
|
-
exports.isLogicalOrOperator = isLogicalOrOperator;
|
|
21
|
+
exports.isLogicalOrOperator = (0, helpers_1.isNodeOfTypeWithConditions)(ts_estree_1.AST_NODE_TYPES.LogicalExpression, { operator: '||' });
|
|
28
22
|
/**
|
|
29
23
|
* Checks if a node is a type assertion:
|
|
30
24
|
* ```
|
|
@@ -32,20 +26,17 @@ exports.isLogicalOrOperator = isLogicalOrOperator;
|
|
|
32
26
|
* <foo>x
|
|
33
27
|
* ```
|
|
34
28
|
*/
|
|
35
|
-
|
|
29
|
+
exports.isTypeAssertion = (0, helpers_1.isNodeOfTypes)([
|
|
36
30
|
ts_estree_1.AST_NODE_TYPES.TSAsExpression,
|
|
37
31
|
ts_estree_1.AST_NODE_TYPES.TSTypeAssertion,
|
|
38
32
|
]);
|
|
39
|
-
exports.
|
|
40
|
-
const isVariableDeclarator = (0, helpers_1.isNodeOfType)(ts_estree_1.AST_NODE_TYPES.VariableDeclarator);
|
|
41
|
-
exports.isVariableDeclarator = isVariableDeclarator;
|
|
33
|
+
exports.isVariableDeclarator = (0, helpers_1.isNodeOfType)(ts_estree_1.AST_NODE_TYPES.VariableDeclarator);
|
|
42
34
|
const functionTypes = [
|
|
43
35
|
ts_estree_1.AST_NODE_TYPES.ArrowFunctionExpression,
|
|
44
36
|
ts_estree_1.AST_NODE_TYPES.FunctionDeclaration,
|
|
45
37
|
ts_estree_1.AST_NODE_TYPES.FunctionExpression,
|
|
46
38
|
];
|
|
47
|
-
|
|
48
|
-
exports.isFunction = isFunction;
|
|
39
|
+
exports.isFunction = (0, helpers_1.isNodeOfTypes)(functionTypes);
|
|
49
40
|
const functionTypeTypes = [
|
|
50
41
|
ts_estree_1.AST_NODE_TYPES.TSCallSignatureDeclaration,
|
|
51
42
|
ts_estree_1.AST_NODE_TYPES.TSConstructorType,
|
|
@@ -55,18 +46,14 @@ const functionTypeTypes = [
|
|
|
55
46
|
ts_estree_1.AST_NODE_TYPES.TSFunctionType,
|
|
56
47
|
ts_estree_1.AST_NODE_TYPES.TSMethodSignature,
|
|
57
48
|
];
|
|
58
|
-
|
|
59
|
-
exports.
|
|
60
|
-
const isFunctionOrFunctionType = (0, helpers_1.isNodeOfTypes)([
|
|
49
|
+
exports.isFunctionType = (0, helpers_1.isNodeOfTypes)(functionTypeTypes);
|
|
50
|
+
exports.isFunctionOrFunctionType = (0, helpers_1.isNodeOfTypes)([
|
|
61
51
|
...functionTypes,
|
|
62
52
|
...functionTypeTypes,
|
|
63
53
|
]);
|
|
64
|
-
exports.
|
|
65
|
-
|
|
66
|
-
exports.
|
|
67
|
-
const isTSConstructorType = (0, helpers_1.isNodeOfType)(ts_estree_1.AST_NODE_TYPES.TSConstructorType);
|
|
68
|
-
exports.isTSConstructorType = isTSConstructorType;
|
|
69
|
-
const isClassOrTypeElement = (0, helpers_1.isNodeOfTypes)([
|
|
54
|
+
exports.isTSFunctionType = (0, helpers_1.isNodeOfType)(ts_estree_1.AST_NODE_TYPES.TSFunctionType);
|
|
55
|
+
exports.isTSConstructorType = (0, helpers_1.isNodeOfType)(ts_estree_1.AST_NODE_TYPES.TSConstructorType);
|
|
56
|
+
exports.isClassOrTypeElement = (0, helpers_1.isNodeOfTypes)([
|
|
70
57
|
// ClassElement
|
|
71
58
|
ts_estree_1.AST_NODE_TYPES.PropertyDefinition,
|
|
72
59
|
ts_estree_1.AST_NODE_TYPES.FunctionExpression,
|
|
@@ -82,12 +69,10 @@ const isClassOrTypeElement = (0, helpers_1.isNodeOfTypes)([
|
|
|
82
69
|
ts_estree_1.AST_NODE_TYPES.TSMethodSignature,
|
|
83
70
|
ts_estree_1.AST_NODE_TYPES.TSPropertySignature,
|
|
84
71
|
]);
|
|
85
|
-
exports.isClassOrTypeElement = isClassOrTypeElement;
|
|
86
72
|
/**
|
|
87
73
|
* Checks if a node is a constructor method.
|
|
88
74
|
*/
|
|
89
|
-
|
|
90
|
-
exports.isConstructor = isConstructor;
|
|
75
|
+
exports.isConstructor = (0, helpers_1.isNodeOfTypeWithConditions)(ts_estree_1.AST_NODE_TYPES.MethodDefinition, { kind: 'constructor' });
|
|
91
76
|
/**
|
|
92
77
|
* Checks if a node is a setter method.
|
|
93
78
|
*/
|
|
@@ -97,40 +82,28 @@ function isSetter(node) {
|
|
|
97
82
|
node.type === ts_estree_1.AST_NODE_TYPES.Property) &&
|
|
98
83
|
node.kind === 'set');
|
|
99
84
|
}
|
|
100
|
-
|
|
101
|
-
exports.isIdentifier = isIdentifier;
|
|
85
|
+
exports.isIdentifier = (0, helpers_1.isNodeOfType)(ts_estree_1.AST_NODE_TYPES.Identifier);
|
|
102
86
|
/**
|
|
103
87
|
* Checks if a node represents an `await …` expression.
|
|
104
88
|
*/
|
|
105
|
-
|
|
106
|
-
exports.isAwaitExpression = isAwaitExpression;
|
|
89
|
+
exports.isAwaitExpression = (0, helpers_1.isNodeOfType)(ts_estree_1.AST_NODE_TYPES.AwaitExpression);
|
|
107
90
|
/**
|
|
108
91
|
* Checks if a possible token is the `await` keyword.
|
|
109
92
|
*/
|
|
110
|
-
|
|
111
|
-
value: 'await',
|
|
112
|
-
});
|
|
113
|
-
exports.isAwaitKeyword = isAwaitKeyword;
|
|
93
|
+
exports.isAwaitKeyword = (0, helpers_1.isTokenOfTypeWithConditions)(ts_estree_1.AST_TOKEN_TYPES.Identifier, { value: 'await' });
|
|
114
94
|
/**
|
|
115
95
|
* Checks if a possible token is the `type` keyword.
|
|
116
96
|
*/
|
|
117
|
-
|
|
118
|
-
value: 'type',
|
|
119
|
-
});
|
|
120
|
-
exports.isTypeKeyword = isTypeKeyword;
|
|
97
|
+
exports.isTypeKeyword = (0, helpers_1.isTokenOfTypeWithConditions)(ts_estree_1.AST_TOKEN_TYPES.Identifier, { value: 'type' });
|
|
121
98
|
/**
|
|
122
99
|
* Checks if a possible token is the `import` keyword.
|
|
123
100
|
*/
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
});
|
|
127
|
-
exports.isImportKeyword = isImportKeyword;
|
|
128
|
-
const isLoop = (0, helpers_1.isNodeOfTypes)([
|
|
101
|
+
exports.isImportKeyword = (0, helpers_1.isTokenOfTypeWithConditions)(ts_estree_1.AST_TOKEN_TYPES.Keyword, { value: 'import' });
|
|
102
|
+
exports.isLoop = (0, helpers_1.isNodeOfTypes)([
|
|
129
103
|
ts_estree_1.AST_NODE_TYPES.DoWhileStatement,
|
|
130
104
|
ts_estree_1.AST_NODE_TYPES.ForStatement,
|
|
131
105
|
ts_estree_1.AST_NODE_TYPES.ForInStatement,
|
|
132
106
|
ts_estree_1.AST_NODE_TYPES.ForOfStatement,
|
|
133
107
|
ts_estree_1.AST_NODE_TYPES.WhileStatement,
|
|
134
108
|
]);
|
|
135
|
-
exports.isLoop = isLoop;
|
|
136
109
|
//# sourceMappingURL=predicates.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"predicates.js","sourceRoot":"","sources":["../../src/ast-utils/predicates.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"predicates.js","sourceRoot":"","sources":["../../src/ast-utils/predicates.ts"],"names":[],"mappings":";;;AA0HA,4BASC;AAjID,4CAA+D;AAC/D,uCAMmB;AAEN,QAAA,yBAAyB,GAAG,IAAA,qCAA2B,EAClE,2BAAe,CAAC,UAAU,EAC1B,EAAE,KAAK,EAAE,IAAI,EAAE,CAChB,CAAC;AAEW,QAAA,4BAA4B,GAAG,IAAA,wCAA8B,EACxE,2BAAe,CAAC,UAAU,EAC1B,EAAE,KAAK,EAAE,IAAI,EAAE,CAChB,CAAC;AAEW,QAAA,4BAA4B,GAAG,IAAA,qCAA2B,EACrE,2BAAe,CAAC,UAAU,EAC1B,EAAE,KAAK,EAAE,GAAG,EAAE,CACf,CAAC;AAEW,QAAA,+BAA+B,GAAG,IAAA,wCAA8B,EAC3E,2BAAe,CAAC,UAAU,EAC1B,EAAE,KAAK,EAAE,GAAG,EAAE,CACf,CAAC;AAEF;;GAEG;AACU,QAAA,wBAAwB,GAAG,IAAA,oCAA0B,EAChE,0BAAc,CAAC,cAAc;AAC7B,uDAAuD;AACvD,4CAA4C;AAC5C,EAAE,QAAQ,EAAE,IAAI,EAAE,CACnB,CAAC;AAEF;;GAEG;AACU,QAAA,mBAAmB,GAAG,IAAA,oCAA0B,EAC3D,0BAAc,CAAC,iBAAiB,EAChC,EAAE,QAAQ,EAAE,IAAI,EAAE,CACnB,CAAC;AAEF;;;;;;GAMG;AACU,QAAA,eAAe,GAAG,IAAA,uBAAa,EAAC;IAC3C,0BAAc,CAAC,cAAc;IAC7B,0BAAc,CAAC,eAAe;CACtB,CAAC,CAAC;AAEC,QAAA,oBAAoB,GAAG,IAAA,sBAAY,EAC9C,0BAAc,CAAC,kBAAkB,CAClC,CAAC;AAEF,MAAM,aAAa,GAAG;IACpB,0BAAc,CAAC,uBA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AEF;;GAEG;AACH,SAAgB,QAAQ,CACtB,IAA+B;IAE/B,OAAO,CACL,CAAC,CAAC,IAAI;QACN,CAAC,IAAI,CAAC,IAAI,KAAK,0BAAc,CAAC,gBAAgB;YAC5C,IAAI,CAAC,IAAI,KAAK,0BAAc,CAAC,QAAQ,CAAC;QACxC,IAAI,CAAC,IAAI,KAAK,KAAK,CACpB,CAAC;AACJ,CAAC;AAEY,QAAA,YAAY,GAAG,IAAA,sBAAY,EAAC,0BAAc,CAAC,UAAU,CAAC,CAAC;AAEpE;;GAEG;AACU,QAAA,iBAAiB,GAAG,IAAA,sBAAY,EAAC,0BAAc,CAAC,eAAe,CAAC,CAAC;AAE9E;;GAEG;AACU,QAAA,cAAc,GAAG,IAAA,qCAA2B,EACvD,2BAAe,CAAC,UAAU,EAC1B,EAAE,KAAK,EAAE,OAAO,EAAE,CACnB,CAAC;AAEF;;GAEG;AACU,QAAA,aAAa,GAAG,IAAA,qCAA2B,EACtD,2BAAe,CAAC,UAAU,EAC1B,EAAE,KAAK,EAAE,MAAM,EAAE,CAClB,CAAC;AAEF;;GAEG;AACU,QAAA,eAAe,GAAG,IAAA,qCAA2B,EACxD,2BAAe,CAAC,OAAO,EACvB,EAAE,KAAK,EAAE,QAAQ,EAAE,CACpB,CAAC;AAEW,QAAA,MAAM,GAAG,IAAA,uBAAa,EAAC;IAClC,0BAAc,CAAC,gBAAgB;IAC/B,0BAAc,CAAC,YAAY;IAC3B,0BAAc,CAAC,cAAc;IAC7B,0BAAc,CAAC,cAAc;IAC7B,0BAAc,CAAC,cAAc;CACrB,CAAC,CAAC"}
|
|
@@ -2,10 +2,9 @@ import type { RuleCreateFunction, RuleModule } from '../ts-eslint';
|
|
|
2
2
|
/**
|
|
3
3
|
* Uses type inference to fetch the Options type from the given RuleModule
|
|
4
4
|
*/
|
|
5
|
-
type InferOptionsTypeFromRule<T> = T extends RuleModule<infer _MessageIds, infer Options> ? Options : T extends RuleCreateFunction<infer _MessageIds, infer Options> ? Options : unknown;
|
|
5
|
+
export type InferOptionsTypeFromRule<T> = T extends RuleModule<infer _MessageIds, infer Options> ? Options : T extends RuleCreateFunction<infer _MessageIds, infer Options> ? Options : unknown;
|
|
6
6
|
/**
|
|
7
7
|
* Uses type inference to fetch the MessageIds type from the given RuleModule
|
|
8
8
|
*/
|
|
9
|
-
type InferMessageIdsTypeFromRule<T> = T extends RuleModule<infer MessageIds, infer _TOptions> ? MessageIds : T extends RuleCreateFunction<infer MessageIds, infer _TOptions> ? MessageIds : unknown;
|
|
10
|
-
export type { InferMessageIdsTypeFromRule, InferOptionsTypeFromRule };
|
|
9
|
+
export type InferMessageIdsTypeFromRule<T> = T extends RuleModule<infer MessageIds, infer _TOptions> ? MessageIds : T extends RuleCreateFunction<infer MessageIds, infer _TOptions> ? MessageIds : unknown;
|
|
11
10
|
//# sourceMappingURL=InferTypesFromRule.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InferTypesFromRule.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/InferTypesFromRule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAEnE;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"InferTypesFromRule.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/InferTypesFromRule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAEnE;;GAEG;AACH,MAAM,MAAM,wBAAwB,CAAC,CAAC,IACpC,CAAC,SAAS,UAAU,CAAC,MAAM,WAAW,EAAE,MAAM,OAAO,CAAC,GAClD,OAAO,GACP,CAAC,SAAS,kBAAkB,CAAC,MAAM,WAAW,EAAE,MAAM,OAAO,CAAC,GAC5D,OAAO,GACP,OAAO,CAAC;AAEhB;;GAEG;AACH,MAAM,MAAM,2BAA2B,CAAC,CAAC,IACvC,CAAC,SAAS,UAAU,CAAC,MAAM,UAAU,EAAE,MAAM,SAAS,CAAC,GACnD,UAAU,GACV,CAAC,SAAS,kBAAkB,CAAC,MAAM,UAAU,EAAE,MAAM,SAAS,CAAC,GAC7D,UAAU,GACV,OAAO,CAAC"}
|
|
@@ -5,6 +5,5 @@
|
|
|
5
5
|
* @param userOptions the user opts
|
|
6
6
|
* @returns the options with defaults
|
|
7
7
|
*/
|
|
8
|
-
declare function applyDefault<User extends readonly unknown[], Default extends User>(defaultOptions: Readonly<Default>, userOptions: Readonly<User> | null): Default;
|
|
9
|
-
export { applyDefault };
|
|
8
|
+
export declare function applyDefault<User extends readonly unknown[], Default extends User>(defaultOptions: Readonly<Default>, userOptions: Readonly<User> | null): Default;
|
|
10
9
|
//# sourceMappingURL=applyDefault.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applyDefault.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/applyDefault.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,
|
|
1
|
+
{"version":3,"file":"applyDefault.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/applyDefault.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,wBAAgB,YAAY,CAC1B,IAAI,SAAS,SAAS,OAAO,EAAE,EAC/B,OAAO,SAAS,IAAI,EAEpB,cAAc,EAAE,QAAQ,CAAC,OAAO,CAAC,EACjC,WAAW,EAAE,QAAQ,CAAC,IAAI,CAAC,GAAG,IAAI,GACjC,OAAO,CAwBT"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applyDefault.js","sourceRoot":"","sources":["../../src/eslint-utils/applyDefault.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"applyDefault.js","sourceRoot":"","sources":["../../src/eslint-utils/applyDefault.ts"],"names":[],"mappings":";;AASA,oCA8BC;AAvCD,2CAA0D;AAE1D;;;;;;GAMG;AACH,SAAgB,YAAY,CAI1B,cAAiC,EACjC,WAAkC;IAElC,iBAAiB;IACjB,MAAM,OAAO,GAAG,eAAe,CAAC,cAAc,CAAuB,CAAC;IAEtE,IAAI,WAAW,IAAI,IAAI,EAAE,CAAC;QACxB,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,8BAA8B;IAC9B,sFAAsF;IACrF,OAAqB,CAAC,OAAO,CAAC,CAAC,GAAY,EAAE,CAAS,EAAE,EAAE;QACzD,oEAAoE;QACpE,IAAI,WAAW,CAAC,CAAC,CAAC,KAAK,SAAS,EAAE,CAAC;YACjC,MAAM,OAAO,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC;YAE/B,IAAI,IAAA,4BAAgB,EAAC,OAAO,CAAC,IAAI,IAAA,4BAAgB,EAAC,GAAG,CAAC,EAAE,CAAC;gBACvD,OAAO,CAAC,CAAC,CAAC,GAAG,IAAA,qBAAS,EAAC,GAAG,EAAE,OAAO,CAAC,CAAC;YACvC,CAAC;iBAAM,CAAC;gBACN,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC;YACvB,CAAC;QACH,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -3,7 +3,7 @@ export type ObjectLike<T = unknown> = Record<string, T>;
|
|
|
3
3
|
* Check if the variable contains an object strictly rejecting arrays
|
|
4
4
|
* @returns `true` if obj is an object
|
|
5
5
|
*/
|
|
6
|
-
declare function isObjectNotArray(obj: unknown): obj is ObjectLike;
|
|
6
|
+
export declare function isObjectNotArray(obj: unknown): obj is ObjectLike;
|
|
7
7
|
/**
|
|
8
8
|
* Pure function - doesn't mutate either parameter!
|
|
9
9
|
* Merges two objects together deeply, overwriting the properties in first with the properties in second
|
|
@@ -12,5 +12,4 @@ declare function isObjectNotArray(obj: unknown): obj is ObjectLike;
|
|
|
12
12
|
* @returns a new object
|
|
13
13
|
*/
|
|
14
14
|
export declare function deepMerge(first?: ObjectLike, second?: ObjectLike): Record<string, unknown>;
|
|
15
|
-
export { isObjectNotArray };
|
|
16
15
|
//# sourceMappingURL=deepMerge.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deepMerge.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/deepMerge.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,CAAC,CAAC,GAAG,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;AAExD;;;GAGG;AACH,
|
|
1
|
+
{"version":3,"file":"deepMerge.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/deepMerge.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,CAAC,CAAC,GAAG,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;AAExD;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,UAAU,CAEhE;AAED;;;;;;GAMG;AACH,wBAAgB,SAAS,CACvB,KAAK,GAAE,UAAe,EACtB,MAAM,GAAE,UAAe,GACtB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA4BzB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.deepMerge = deepMerge;
|
|
4
3
|
exports.isObjectNotArray = isObjectNotArray;
|
|
4
|
+
exports.deepMerge = deepMerge;
|
|
5
5
|
/**
|
|
6
6
|
* Check if the variable contains an object strictly rejecting arrays
|
|
7
7
|
* @returns `true` if obj is an object
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deepMerge.js","sourceRoot":"","sources":["../../src/eslint-utils/deepMerge.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"deepMerge.js","sourceRoot":"","sources":["../../src/eslint-utils/deepMerge.ts"],"names":[],"mappings":";;AAMA,4CAEC;AASD,8BA+BC;AA9CD;;;GAGG;AACH,SAAgB,gBAAgB,CAAC,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 @@ import type { ParserServices, ParserServicesWithTypeInformation } from '../ts-es
|
|
|
4
4
|
* Try to retrieve type-aware parser service from context.
|
|
5
5
|
* This **_will_** throw if it is not available.
|
|
6
6
|
*/
|
|
7
|
-
declare function getParserServices<MessageIds extends string, Options extends readonly unknown[]>(context: Readonly<TSESLint.RuleContext<MessageIds, Options>>): ParserServicesWithTypeInformation;
|
|
7
|
+
export declare function getParserServices<MessageIds extends string, Options extends readonly unknown[]>(context: Readonly<TSESLint.RuleContext<MessageIds, Options>>): ParserServicesWithTypeInformation;
|
|
8
8
|
/**
|
|
9
9
|
* Try to retrieve type-aware parser service from context.
|
|
10
10
|
* This **_will_** throw if it is not available.
|
|
11
11
|
*/
|
|
12
|
-
declare function getParserServices<MessageIds extends string, Options extends readonly unknown[]>(context: Readonly<TSESLint.RuleContext<MessageIds, Options>>, allowWithoutFullTypeInformation: false): ParserServicesWithTypeInformation;
|
|
12
|
+
export declare function getParserServices<MessageIds extends string, Options extends readonly unknown[]>(context: Readonly<TSESLint.RuleContext<MessageIds, Options>>, allowWithoutFullTypeInformation: false): ParserServicesWithTypeInformation;
|
|
13
13
|
/**
|
|
14
14
|
* Try to retrieve type-aware parser service from context.
|
|
15
15
|
* This **_will not_** throw if it is not available.
|
|
16
16
|
*/
|
|
17
|
-
declare function getParserServices<MessageIds extends string, Options extends readonly unknown[]>(context: Readonly<TSESLint.RuleContext<MessageIds, Options>>, allowWithoutFullTypeInformation: true): ParserServices;
|
|
17
|
+
export declare function getParserServices<MessageIds extends string, Options extends readonly unknown[]>(context: Readonly<TSESLint.RuleContext<MessageIds, Options>>, allowWithoutFullTypeInformation: true): ParserServices;
|
|
18
18
|
/**
|
|
19
19
|
* Try to retrieve type-aware parser service from context.
|
|
20
20
|
* This may or may not throw if it is not available, depending on if `allowWithoutFullTypeInformation` is `true`
|
|
21
21
|
*/
|
|
22
|
-
declare function getParserServices<MessageIds extends string, Options extends readonly unknown[]>(context: Readonly<TSESLint.RuleContext<MessageIds, Options>>, allowWithoutFullTypeInformation: boolean): ParserServices;
|
|
23
|
-
export { getParserServices };
|
|
22
|
+
export declare function getParserServices<MessageIds extends string, Options extends readonly unknown[]>(context: Readonly<TSESLint.RuleContext<MessageIds, Options>>, allowWithoutFullTypeInformation: boolean): ParserServices;
|
|
24
23
|
//# sourceMappingURL=getParserServices.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getParserServices.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/getParserServices.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,QAAQ,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EACV,cAAc,EACd,iCAAiC,EAClC,MAAM,cAAc,CAAC;AAWtB;;;GAGG;AACH,
|
|
1
|
+
{"version":3,"file":"getParserServices.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/getParserServices.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,QAAQ,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EACV,cAAc,EACd,iCAAiC,EAClC,MAAM,cAAc,CAAC;AAWtB;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,UAAU,SAAS,MAAM,EACzB,OAAO,SAAS,SAAS,OAAO,EAAE,EAElC,OAAO,EAAE,QAAQ,CAAC,QAAQ,CAAC,WAAW,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC,GAC3D,iCAAiC,CAAC;AACrC;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,UAAU,SAAS,MAAM,EACzB,OAAO,SAAS,SAAS,OAAO,EAAE,EAElC,OAAO,EAAE,QAAQ,CAAC,QAAQ,CAAC,WAAW,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC,EAC5D,+BAA+B,EAAE,KAAK,GACrC,iCAAiC,CAAC;AACrC;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,UAAU,SAAS,MAAM,EACzB,OAAO,SAAS,SAAS,OAAO,EAAE,EAElC,OAAO,EAAE,QAAQ,CAAC,QAAQ,CAAC,WAAW,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC,EAC5D,+BAA+B,EAAE,IAAI,GACpC,cAAc,CAAC;AAClB;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,UAAU,SAAS,MAAM,EACzB,OAAO,SAAS,SAAS,OAAO,EAAE,EAElC,OAAO,EAAE,QAAQ,CAAC,QAAQ,CAAC,WAAW,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC,EAC5D,+BAA+B,EAAE,OAAO,GACvC,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getParserServices.js","sourceRoot":"","sources":["../../src/eslint-utils/getParserServices.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"getParserServices.js","sourceRoot":"","sources":["../../src/eslint-utils/getParserServices.ts"],"names":[],"mappings":";;AA2DA,8CAkCC;AAvFD,uEAAoE;AAEpE,MAAM,sCAAsC,GAC1C,+OAA+O,CAAC;AAElP,MAAM,4BAA4B,GAChC,mKAAmK,CAAC;AA+CtK,SAAgB,iBAAiB,CAC/B,OAA0D,EAC1D,+BAA+B,GAAG,KAAK;IAEvC,MAAM,MAAM,GACV,OAAO,CAAC,UAAU,IAAI,OAAO,CAAC,eAAe,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC;IAEnE,mFAAmF;IACnF,EAAE;IACF,mCAAmC;IACnC,yCAAyC;IACzC,yGAAyG;IACzG,sEAAsE;IACtE,0FAA0F;IAC1F,EAAE;IACF,qFAAqF;IACrF,wCAAwC;IACxC,IACE,OAAO,CAAC,UAAU,CAAC,cAAc,EAAE,qBAAqB,IAAI,IAAI;QAChE,OAAO,CAAC,UAAU,CAAC,cAAc,CAAC,qBAAqB,IAAI,IAAI,EAC/D,CAAC;QACD,UAAU,CAAC,MAAM,CAAC,CAAC;IACrB,CAAC;IAED,+EAA+E;IAC/E,uDAAuD;IACvD,IACE,OAAO,CAAC,UAAU,CAAC,cAAc,CAAC,OAAO,IAAI,IAAI;QACjD,CAAC,+BAA+B,EAChC,CAAC;QACD,UAAU,CAAC,MAAM,CAAC,CAAC;IACrB,CAAC;IAED,OAAO,OAAO,CAAC,UAAU,CAAC,cAAgC,CAAC;AAC7D,CAAC;AACD,yDAAyD;AAEzD,SAAS,UAAU,CAAC,MAA0B;IAC5C,MAAM,QAAQ,GAAG;QACf,sCAAsC;QACtC,WAAW,MAAM,IAAI,WAAW,EAAE;QAClC,CAAC,IAAA,iDAAuB,EAAC,MAAM,CAAC,IAAI,4BAA4B;KACjE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAElB,MAAM,IAAI,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;AACvC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* A set of common reasons for calling nullThrows
|
|
3
3
|
*/
|
|
4
|
-
declare const NullThrowsReasons: {
|
|
4
|
+
export declare const NullThrowsReasons: {
|
|
5
5
|
readonly MissingParent: "Expected node to have a parent.";
|
|
6
6
|
readonly MissingToken: (token: string, thing: string) => string;
|
|
7
7
|
};
|
|
@@ -9,6 +9,5 @@ declare const NullThrowsReasons: {
|
|
|
9
9
|
* Assert that a value must not be null or undefined.
|
|
10
10
|
* This is a nice explicit alternative to the non-null assertion operator.
|
|
11
11
|
*/
|
|
12
|
-
declare function nullThrows<T>(value: T, message: string): NonNullable<T>;
|
|
13
|
-
export { nullThrows, NullThrowsReasons };
|
|
12
|
+
export declare function nullThrows<T>(value: T, message: string): NonNullable<T>;
|
|
14
13
|
//# sourceMappingURL=nullThrows.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nullThrows.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/nullThrows.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"nullThrows.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/nullThrows.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,iBAAiB;;mCAEN,MAAM,SAAS,MAAM;CAEnC,CAAC;AAEX;;;GAGG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,MAAM,GAAG,WAAW,CAAC,CAAC,CAAC,CAMvE"}
|
|
@@ -5,11 +5,10 @@ exports.nullThrows = nullThrows;
|
|
|
5
5
|
/**
|
|
6
6
|
* A set of common reasons for calling nullThrows
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
exports.NullThrowsReasons = {
|
|
9
9
|
MissingParent: 'Expected node to have a parent.',
|
|
10
10
|
MissingToken: (token, thing) => `Expected to find a ${token} for the ${thing}.`,
|
|
11
11
|
};
|
|
12
|
-
exports.NullThrowsReasons = NullThrowsReasons;
|
|
13
12
|
/**
|
|
14
13
|
* Assert that a value must not be null or undefined.
|
|
15
14
|
* This is a nice explicit alternative to the non-null assertion operator.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nullThrows.js","sourceRoot":"","sources":["../../src/eslint-utils/nullThrows.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"nullThrows.js","sourceRoot":"","sources":["../../src/eslint-utils/nullThrows.ts"],"names":[],"mappings":";;;AAaA,gCAMC;AAnBD;;GAEG;AACU,QAAA,iBAAiB,GAAG;IAC/B,aAAa,EAAE,iCAAiC;IAChD,YAAY,EAAE,CAAC,KAAa,EAAE,KAAa,EAAE,EAAE,CAC7C,sBAAsB,KAAK,YAAY,KAAK,GAAG;CACzC,CAAC;AAEX;;;GAGG;AACH,SAAgB,UAAU,CAAI,KAAQ,EAAE,OAAe;IACrD,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAClB,MAAM,IAAI,KAAK,CAAC,8BAA8B,OAAO,EAAE,CAAC,CAAC;IAC3D,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC"}
|
package/dist/ts-eslint/AST.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AST.js","sourceRoot":"","sources":["../../src/ts-eslint/AST.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"AST.js","sourceRoot":"","sources":["../../src/ts-eslint/AST.ts"],"names":[],"mappings":";AAAA,0EAA0E"}
|
package/dist/ts-eslint/Linter.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/* eslint-disable @typescript-eslint/no-namespace */
|
|
2
|
+
/* eslint-disable @typescript-eslint/no-namespace, no-restricted-syntax */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Linter = void 0;
|
|
5
5
|
const eslint_1 = require("eslint");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Linter.js","sourceRoot":"","sources":["../../src/ts-eslint/Linter.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"Linter.js","sourceRoot":"","sources":["../../src/ts-eslint/Linter.ts"],"names":[],"mappings":";AAAA,0EAA0E;;;AAE1E,mCAAgD;AAuThD;;;;GAIG;AACH,MAAM,MAAO,SAAS,eAAkC;CAAG;AAElD,wBAAM"}
|
|
@@ -6,7 +6,7 @@ import type { ReportDescriptorMessageData, RuleCreateFunction, RuleModule, Share
|
|
|
6
6
|
/**
|
|
7
7
|
* @deprecated Use `@typescript-eslint/rule-tester` instead.
|
|
8
8
|
*/
|
|
9
|
-
interface ValidTestCase<Options extends readonly unknown[]> {
|
|
9
|
+
export interface ValidTestCase<Options extends readonly unknown[]> {
|
|
10
10
|
/**
|
|
11
11
|
* Code for the test case.
|
|
12
12
|
*/
|
|
@@ -51,7 +51,7 @@ interface ValidTestCase<Options extends readonly unknown[]> {
|
|
|
51
51
|
/**
|
|
52
52
|
* @deprecated Use `@typescript-eslint/rule-tester` instead.
|
|
53
53
|
*/
|
|
54
|
-
interface SuggestionOutput<MessageIds extends string> {
|
|
54
|
+
export interface SuggestionOutput<MessageIds extends string> {
|
|
55
55
|
/**
|
|
56
56
|
* The data used to fill the message template.
|
|
57
57
|
*/
|
|
@@ -69,7 +69,7 @@ interface SuggestionOutput<MessageIds extends string> {
|
|
|
69
69
|
/**
|
|
70
70
|
* @deprecated Use `@typescript-eslint/rule-tester` instead.
|
|
71
71
|
*/
|
|
72
|
-
interface InvalidTestCase<MessageIds extends string, Options extends readonly unknown[]> extends ValidTestCase<Options> {
|
|
72
|
+
export interface InvalidTestCase<MessageIds extends string, Options extends readonly unknown[]> extends ValidTestCase<Options> {
|
|
73
73
|
/**
|
|
74
74
|
* Expected errors.
|
|
75
75
|
*/
|
|
@@ -82,7 +82,7 @@ interface InvalidTestCase<MessageIds extends string, Options extends readonly un
|
|
|
82
82
|
/**
|
|
83
83
|
* @deprecated Use `@typescript-eslint/rule-tester` instead.
|
|
84
84
|
*/
|
|
85
|
-
interface TestCaseError<MessageIds extends string> {
|
|
85
|
+
export interface TestCaseError<MessageIds extends string> {
|
|
86
86
|
/**
|
|
87
87
|
* The 1-based column number of the reported start location.
|
|
88
88
|
*/
|
|
@@ -120,18 +120,18 @@ interface TestCaseError<MessageIds extends string> {
|
|
|
120
120
|
* @param text a string describing the rule
|
|
121
121
|
* @deprecated Use `@typescript-eslint/rule-tester` instead.
|
|
122
122
|
*/
|
|
123
|
-
type RuleTesterTestFrameworkFunction = (text: string, callback: () => void) => void;
|
|
123
|
+
export type RuleTesterTestFrameworkFunction = (text: string, callback: () => void) => void;
|
|
124
124
|
/**
|
|
125
125
|
* @deprecated Use `@typescript-eslint/rule-tester` instead.
|
|
126
126
|
*/
|
|
127
|
-
interface RunTests<MessageIds extends string, Options extends readonly unknown[]> {
|
|
127
|
+
export interface RunTests<MessageIds extends string, Options extends readonly unknown[]> {
|
|
128
128
|
readonly invalid: readonly InvalidTestCase<MessageIds, Options>[];
|
|
129
129
|
readonly valid: readonly (string | ValidTestCase<Options>)[];
|
|
130
130
|
}
|
|
131
131
|
/**
|
|
132
132
|
* @deprecated Use `@typescript-eslint/rule-tester` instead.
|
|
133
133
|
*/
|
|
134
|
-
interface RuleTesterConfig extends ClassicConfig.Config {
|
|
134
|
+
export interface RuleTesterConfig extends ClassicConfig.Config {
|
|
135
135
|
readonly parser: string;
|
|
136
136
|
readonly parserOptions?: Readonly<ParserOptions>;
|
|
137
137
|
}
|
|
@@ -178,7 +178,7 @@ declare const RuleTester_base: typeof RuleTesterBase;
|
|
|
178
178
|
/**
|
|
179
179
|
* @deprecated Use `@typescript-eslint/rule-tester` instead.
|
|
180
180
|
*/
|
|
181
|
-
declare class RuleTester extends RuleTester_base {
|
|
181
|
+
export declare class RuleTester extends RuleTester_base {
|
|
182
182
|
}
|
|
183
|
-
export {
|
|
183
|
+
export {};
|
|
184
184
|
//# sourceMappingURL=RuleTester.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RuleTester.d.ts","sourceRoot":"","sources":["../../src/ts-eslint/RuleTester.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EACV,2BAA2B,EAC3B,kBAAkB,EAClB,UAAU,EACV,2BAA2B,EAC5B,MAAM,QAAQ,CAAC;AAEhB;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"RuleTester.d.ts","sourceRoot":"","sources":["../../src/ts-eslint/RuleTester.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,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AClC,IAAI;CACR;+BAKoD,OAAO,cAAc;AAH1E;;GAEG;AACH,qBAAa,UAAW,SAAQ,eAA2C;CAAG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RuleTester.js","sourceRoot":"","sources":["../../src/ts-eslint/RuleTester.ts"],"names":[],"mappings":";;;AAAA,qDAAqD;AACrD,mCAAwD;AAgOxD;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"RuleTester.js","sourceRoot":"","sources":["../../src/ts-eslint/RuleTester.ts"],"names":[],"mappings":";;;AAAA,qDAAqD;AACrD,mCAAwD;AAgOxD;;GAEG;AACH,MAAa,UAAW,SAAS,mBAA0C;CAAG;AAA9E,gCAA8E"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as scopeManager from '@typescript-eslint/scope-manager';
|
|
2
|
-
declare namespace Scope {
|
|
2
|
+
export declare namespace Scope {
|
|
3
3
|
type ScopeManager = scopeManager.ScopeManager;
|
|
4
4
|
type Reference = scopeManager.Reference;
|
|
5
5
|
type Variable = scopeManager.ScopeVariable;
|
|
@@ -40,5 +40,4 @@ declare namespace Scope {
|
|
|
40
40
|
type WithScope = scopeManager.WithScope;
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
export { Scope };
|
|
44
43
|
//# sourceMappingURL=Scope.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Scope.d.ts","sourceRoot":"","sources":["../../src/ts-eslint/Scope.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,YAAY,MAAM,kCAAkC,CAAC;AAEjE,
|
|
1
|
+
{"version":3,"file":"Scope.d.ts","sourceRoot":"","sources":["../../src/ts-eslint/Scope.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,YAAY,MAAM,kCAAkC,CAAC;AAEjE,yBAAiB,KAAK,CAAC;IACrB,KAAY,YAAY,GAAG,YAAY,CAAC,YAAY,CAAC;IACrD,KAAY,SAAS,GAAG,YAAY,CAAC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a,GAAG,YAAY,CAAC,aAAa,CAAC;QACvD,KAAY,iBAAiB,GAAG,YAAY,CAAC,iBAAiB,CAAC;QAC/D,KAAY,WAAW,GAAG,YAAY,CAAC,WAAW,CAAC;QACnD,KAAY,eAAe,GAAG,YAAY,CAAC,eAAe,CAAC;QAC3D,KAAY,WAAW,GAAG,YAAY,CAAC,WAAW,CAAC;QACnD,KAAY,WAAW,GAAG,YAAY,CAAC,WAAW,CAAC;QACnD,KAAY,WAAW,GAAG,YAAY,CAAC,WAAW,CAAC;QACnD,KAAY,aAAa,GAAG,YAAY,CAAC,aAAa,CAAC;QACvD,KAAY,SAAS,GAAG,YAAY,CAAC,SAAS,CAAC;QAC/C,KAAY,SAAS,GAAG,YAAY,CAAC,SAAS,CAAC;KAChD;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Scope.js","sourceRoot":"","sources":["../../src/ts-eslint/Scope.ts"],"names":[],"mappings":";AAAA,oDAAoD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEpD,+EAAiE;AAEjE,
|
|
1
|
+
{"version":3,"file":"Scope.js","sourceRoot":"","sources":["../../src/ts-eslint/Scope.ts"],"names":[],"mappings":";AAAA,oDAAoD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEpD,+EAAiE;AAEjE,IAAiB,KAAK,CA4CrB;AA5CD,WAAiB,KAAK;IAKP,eAAS,GAAG,YAAY,CAAC,SAAS,CAAC;IAInC,oBAAc,GAAG,YAAY,CAAC,cAAc,CAAC;AAmC5D,CAAC,EA5CgB,KAAK,qBAAL,KAAK,QA4CrB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/* eslint-disable @typescript-eslint/no-namespace */
|
|
2
|
+
/* eslint-disable @typescript-eslint/no-namespace, no-restricted-syntax */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.SourceCode = void 0;
|
|
5
5
|
const eslint_1 = require("eslint");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SourceCode.js","sourceRoot":"","sources":["../../src/ts-eslint/SourceCode.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"SourceCode.js","sourceRoot":"","sources":["../../src/ts-eslint/SourceCode.ts"],"names":[],"mappings":";AAAA,0EAA0E;;;AAE1E,mCAAwD;AAmcxD,MAAM,UAAW,SAAS,mBAA0C;CAAG;AAE9D,gCAAU"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typescript-eslint/utils",
|
|
3
|
-
"version": "8.20.
|
|
3
|
+
"version": "8.20.1-alpha.1",
|
|
4
4
|
"description": "Utilities for working with TypeScript + ESLint together",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -64,9 +64,9 @@
|
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
66
|
"@eslint-community/eslint-utils": "^4.4.0",
|
|
67
|
-
"@typescript-eslint/scope-manager": "8.20.
|
|
68
|
-
"@typescript-eslint/types": "8.20.
|
|
69
|
-
"@typescript-eslint/typescript-estree": "8.20.
|
|
67
|
+
"@typescript-eslint/scope-manager": "8.20.1-alpha.1",
|
|
68
|
+
"@typescript-eslint/types": "8.20.1-alpha.1",
|
|
69
|
+
"@typescript-eslint/typescript-estree": "8.20.1-alpha.1"
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|
|
72
72
|
"eslint": "^8.57.0 || ^9.0.0",
|