@typescript-eslint/utils 7.13.2-alpha.2 → 7.13.2-alpha.3
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.map +1 -1
- package/dist/ast-utils/eslint-utils/ReferenceTracker.d.ts.map +1 -1
- package/dist/ast-utils/eslint-utils/astUtilities.d.ts +9 -0
- package/dist/ast-utils/eslint-utils/astUtilities.d.ts.map +1 -1
- package/dist/ast-utils/eslint-utils/predicates.d.ts.map +1 -1
- package/dist/ast-utils/eslint-utils/scopeAnalysis.d.ts.map +1 -1
- package/dist/ast-utils/helpers.d.ts +6 -1224
- package/dist/ast-utils/helpers.d.ts.map +1 -1
- package/dist/ast-utils/misc.js +2 -2
- package/dist/ast-utils/misc.js.map +1 -1
- package/dist/ast-utils/predicates.d.ts +40 -14
- package/dist/ast-utils/predicates.d.ts.map +1 -1
- package/dist/ast-utils/predicates.js +2 -2
- package/dist/ast-utils/predicates.js.map +1 -1
- package/dist/eslint-utils/RuleCreator.d.ts.map +1 -1
- package/dist/eslint-utils/RuleCreator.js +1 -2
- package/dist/eslint-utils/RuleCreator.js.map +1 -1
- package/dist/eslint-utils/applyDefault.js +1 -2
- package/dist/eslint-utils/applyDefault.js.map +1 -1
- package/dist/eslint-utils/context.js +6 -7
- package/dist/eslint-utils/context.js.map +1 -1
- package/dist/eslint-utils/deepMerge.js +2 -3
- package/dist/eslint-utils/deepMerge.js.map +1 -1
- package/dist/eslint-utils/getParserServices.js +1 -2
- package/dist/eslint-utils/getParserServices.js.map +1 -1
- package/dist/eslint-utils/nullThrows.js +2 -2
- package/dist/eslint-utils/nullThrows.js.map +1 -1
- package/dist/eslint-utils/parserPathSeemsToBeTSESLint.js +1 -2
- package/dist/eslint-utils/parserPathSeemsToBeTSESLint.js.map +1 -1
- package/dist/ts-utils/isArray.js +1 -2
- package/dist/ts-utils/isArray.js.map +1 -1
- package/package.json +4 -4
|
@@ -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;AAO9E,eAAO,MAAM,YAAY,
|
|
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;AAO9E,eAAO,MAAM,YAAY,GACtB,QAAQ,SAAS,cAAc,YAAY,QAAQ,YAE5C,QAAQ,CAAC,IAAI,GAAG,IAAI,GAAG,SAAS,KACrC,IAAI,IAAI,OAAO,CAAC,QAAQ,CAAC,IAAI,EAAE;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,CAC3B,CAAC;AAE5B,eAAO,MAAM,aAAa,GACvB,SAAS,SAAS,SAAS,cAAc,EAAE,aAAa,SAAS,YAE1D,QAAQ,CAAC,IAAI,GAAG,IAAI,GAAG,SAAS,KACrC,IAAI,IAAI,OAAO,CAAC,QAAQ,CAAC,IAAI,EAAE;IAAE,IAAI,EAAE,SAAS,CAAC,MAAM,CAAC,CAAA;CAAE,CACpB,CAAC;AAE5C,eAAO,MAAM,0BAA0B,GACrC,QAAQ,SAAS,cAAc,EAC/B,aAAa,SAAS,OAAO,CAAC,QAAQ,CAAC,IAAI,EAAE;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,CAAC,EAChE,UAAU,SAAS,OAAO,CAAC,aAAa,CAAC,YAE/B,QAAQ,cACN,UAAU,KACrB,CAAC,CACF,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,GAAG,SAAS,KACnC,IAAI,IAAI,UAAU,GAAG,aAAa,CAQtC,CAAC;AAEF,eAAO,MAAM,2BAA2B,GACtC,SAAS,SAAS,eAAe,EACjC,cAAc,SAAS,OAAO,CAAC,QAAQ,CAAC,KAAK,EAAE;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,CAAC,EACnE,UAAU,SAAS,OAAO,CAAC,QAAQ,CAAC,KAAK,GAAG;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,CAAC,aAErD,SAAS,cACR,UAAU,KACrB,CAAC,CACF,KAAK,EAAE,QAAQ,CAAC,KAAK,GAAG,IAAI,GAAG,SAAS,KACrC,KAAK,IAAI,UAAU,GAAG,cAAc,CAUxC,CAAC;AAEF,eAAO,MAAM,8BAA8B,GAEvC,SAAS,SAAS,eAAe,EACjC,cAAc,SAAS,OAAO,CAAC,QAAQ,CAAC,KAAK,EAAE;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,CAAC,EACnE,UAAU,SAAS,OAAO,CAAC,cAAc,CAAC,aAE/B,SAAS,cACR,UAAU,KACrB,CAAC,CACF,KAAK,EAAE,QAAQ,CAAC,KAAK,GAAG,IAAI,GAAG,SAAS,KACrC,KAAK,IAAI,OAAO,CAAC,QAAQ,CAAC,KAAK,EAAE,UAAU,GAAG,cAAc,CAAC,CAEN,CAAC"}
|
package/dist/ast-utils/misc.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LINEBREAK_MATCHER =
|
|
3
|
+
exports.LINEBREAK_MATCHER = void 0;
|
|
4
|
+
exports.isTokenOnSameLine = isTokenOnSameLine;
|
|
4
5
|
const LINEBREAK_MATCHER = /\r\n|[\r\n\u2028\u2029]/;
|
|
5
6
|
exports.LINEBREAK_MATCHER = LINEBREAK_MATCHER;
|
|
6
7
|
/**
|
|
@@ -9,5 +10,4 @@ exports.LINEBREAK_MATCHER = LINEBREAK_MATCHER;
|
|
|
9
10
|
function isTokenOnSameLine(left, right) {
|
|
10
11
|
return left.loc.end.line === right.loc.start.line;
|
|
11
12
|
}
|
|
12
|
-
exports.isTokenOnSameLine = isTokenOnSameLine;
|
|
13
13
|
//# sourceMappingURL=misc.js.map
|
|
@@ -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":";;;AAcS,8CAAiB;AAZ1B,MAAM,iBAAiB,GAAG,yBAAyB,CAAC;AAYxB,8CAAiB;AAV7C;;GAEG;AACH,SAAS,iBAAiB,CACxB,IAAoC,EACpC,KAAqC;IAErC,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,KAAK,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC;AACpD,CAAC"}
|
|
@@ -2,11 +2,15 @@ import type { TSESTree } from '../ts-estree';
|
|
|
2
2
|
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.
|
|
5
|
+
declare const isNotOptionalChainPunctuator: (token: TSESTree.Token | null | undefined) => token is Exclude<TSESTree.Token, {
|
|
6
|
+
value: "?.";
|
|
7
|
+
} & TSESTree.PunctuatorToken>;
|
|
6
8
|
declare const isNonNullAssertionPunctuator: (token: TSESTree.Token | null | undefined) => token is {
|
|
7
9
|
value: "!";
|
|
8
10
|
} & TSESTree.PunctuatorToken;
|
|
9
|
-
declare const isNotNonNullAssertionPunctuator: (token: TSESTree.Token | null | undefined) => token is TSESTree.
|
|
11
|
+
declare const isNotNonNullAssertionPunctuator: (token: TSESTree.Token | null | undefined) => token is Exclude<TSESTree.Token, {
|
|
12
|
+
value: "!";
|
|
13
|
+
} & TSESTree.PunctuatorToken>;
|
|
10
14
|
/**
|
|
11
15
|
* Returns true if and only if the node represents: foo?.() or foo.bar?.()
|
|
12
16
|
*/
|
|
@@ -24,29 +28,49 @@ declare const isLogicalOrOperator: (node: TSESTree.Node | null | undefined) => n
|
|
|
24
28
|
* <foo>x
|
|
25
29
|
* ```
|
|
26
30
|
*/
|
|
27
|
-
declare const isTypeAssertion: (node: TSESTree.Node | null | undefined) => node is TSESTree.
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
declare const
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
declare const
|
|
34
|
-
|
|
31
|
+
declare const isTypeAssertion: (node: TSESTree.Node | null | undefined) => node is Extract<TSESTree.Node, {
|
|
32
|
+
type: TSESTree.AST_NODE_TYPES.TSAsExpression | TSESTree.AST_NODE_TYPES.TSTypeAssertion;
|
|
33
|
+
}>;
|
|
34
|
+
declare const isVariableDeclarator: (node: TSESTree.Node | null | undefined) => node is Extract<TSESTree.Node, {
|
|
35
|
+
type: TSESTree.AST_NODE_TYPES.VariableDeclarator;
|
|
36
|
+
}>;
|
|
37
|
+
declare const isFunction: (node: TSESTree.Node | null | undefined) => node is Extract<TSESTree.Node, {
|
|
38
|
+
type: TSESTree.AST_NODE_TYPES.ArrowFunctionExpression | TSESTree.AST_NODE_TYPES.FunctionDeclaration | TSESTree.AST_NODE_TYPES.FunctionExpression;
|
|
39
|
+
}>;
|
|
40
|
+
declare const isFunctionType: (node: TSESTree.Node | null | undefined) => node is Extract<TSESTree.Node, {
|
|
41
|
+
type: TSESTree.AST_NODE_TYPES.TSCallSignatureDeclaration | TSESTree.AST_NODE_TYPES.TSConstructorType | TSESTree.AST_NODE_TYPES.TSConstructSignatureDeclaration | TSESTree.AST_NODE_TYPES.TSEmptyBodyFunctionExpression | TSESTree.AST_NODE_TYPES.TSFunctionType | TSESTree.AST_NODE_TYPES.TSMethodSignature;
|
|
42
|
+
}>;
|
|
43
|
+
declare const isFunctionOrFunctionType: (node: TSESTree.Node | null | undefined) => node is Extract<TSESTree.Node, {
|
|
44
|
+
type: TSESTree.AST_NODE_TYPES.ArrowFunctionExpression | TSESTree.AST_NODE_TYPES.FunctionDeclaration | TSESTree.AST_NODE_TYPES.FunctionExpression | TSESTree.AST_NODE_TYPES.TSCallSignatureDeclaration | TSESTree.AST_NODE_TYPES.TSConstructorType | TSESTree.AST_NODE_TYPES.TSConstructSignatureDeclaration | TSESTree.AST_NODE_TYPES.TSEmptyBodyFunctionExpression | TSESTree.AST_NODE_TYPES.TSFunctionType | TSESTree.AST_NODE_TYPES.TSMethodSignature;
|
|
45
|
+
}>;
|
|
46
|
+
declare const isTSFunctionType: (node: TSESTree.Node | null | undefined) => node is Extract<TSESTree.Node, {
|
|
47
|
+
type: TSESTree.AST_NODE_TYPES.TSFunctionType;
|
|
48
|
+
}>;
|
|
49
|
+
declare const isTSConstructorType: (node: TSESTree.Node | null | undefined) => node is Extract<TSESTree.Node, {
|
|
50
|
+
type: TSESTree.AST_NODE_TYPES.TSConstructorType;
|
|
51
|
+
}>;
|
|
52
|
+
declare const isClassOrTypeElement: (node: TSESTree.Node | null | undefined) => node is Extract<TSESTree.Node, {
|
|
53
|
+
type: TSESTree.AST_NODE_TYPES.FunctionExpression | TSESTree.AST_NODE_TYPES.MethodDefinition | TSESTree.AST_NODE_TYPES.PropertyDefinition | TSESTree.AST_NODE_TYPES.TSAbstractMethodDefinition | TSESTree.AST_NODE_TYPES.TSAbstractPropertyDefinition | TSESTree.AST_NODE_TYPES.TSCallSignatureDeclaration | TSESTree.AST_NODE_TYPES.TSConstructSignatureDeclaration | TSESTree.AST_NODE_TYPES.TSEmptyBodyFunctionExpression | TSESTree.AST_NODE_TYPES.TSIndexSignature | TSESTree.AST_NODE_TYPES.TSMethodSignature | TSESTree.AST_NODE_TYPES.TSPropertySignature;
|
|
54
|
+
}>;
|
|
35
55
|
/**
|
|
36
56
|
* Checks if a node is a constructor method.
|
|
37
57
|
*/
|
|
38
|
-
declare const isConstructor: (node: TSESTree.Node | null | undefined) => node is
|
|
58
|
+
declare const isConstructor: (node: TSESTree.Node | null | undefined) => node is Partial<TSESTree.MethodDefinitionComputedName | TSESTree.MethodDefinitionNonComputedName> & (TSESTree.MethodDefinitionComputedName | TSESTree.MethodDefinitionNonComputedName);
|
|
39
59
|
/**
|
|
40
60
|
* Checks if a node is a setter method.
|
|
41
61
|
*/
|
|
42
62
|
declare function isSetter(node: TSESTree.Node | undefined): node is {
|
|
43
63
|
kind: 'set';
|
|
44
64
|
} & (TSESTree.MethodDefinition | TSESTree.Property);
|
|
45
|
-
declare const isIdentifier: (node: TSESTree.Node | null | undefined) => node is TSESTree.
|
|
65
|
+
declare const isIdentifier: (node: TSESTree.Node | null | undefined) => node is Extract<TSESTree.Node, {
|
|
66
|
+
type: TSESTree.AST_NODE_TYPES.Identifier;
|
|
67
|
+
}>;
|
|
46
68
|
/**
|
|
47
69
|
* Checks if a node represents an `await …` expression.
|
|
48
70
|
*/
|
|
49
|
-
declare const isAwaitExpression: (node: TSESTree.Node | null | undefined) => node is TSESTree.
|
|
71
|
+
declare const isAwaitExpression: (node: TSESTree.Node | null | undefined) => node is Extract<TSESTree.Node, {
|
|
72
|
+
type: TSESTree.AST_NODE_TYPES.AwaitExpression;
|
|
73
|
+
}>;
|
|
50
74
|
/**
|
|
51
75
|
* Checks if a possible token is the `await` keyword.
|
|
52
76
|
*/
|
|
@@ -65,6 +89,8 @@ declare const isTypeKeyword: (token: TSESTree.Token | null | undefined) => token
|
|
|
65
89
|
declare const isImportKeyword: (token: TSESTree.Token | null | undefined) => token is {
|
|
66
90
|
value: "import";
|
|
67
91
|
} & TSESTree.KeywordToken;
|
|
68
|
-
declare const isLoop: (node: TSESTree.Node | null | undefined) => node is TSESTree.
|
|
92
|
+
declare const isLoop: (node: TSESTree.Node | null | undefined) => node is Extract<TSESTree.Node, {
|
|
93
|
+
type: TSESTree.AST_NODE_TYPES.DoWhileStatement | TSESTree.AST_NODE_TYPES.ForInStatement | TSESTree.AST_NODE_TYPES.ForOfStatement | TSESTree.AST_NODE_TYPES.ForStatement | TSESTree.AST_NODE_TYPES.WhileStatement;
|
|
94
|
+
}>;
|
|
69
95
|
export { isAwaitExpression, isAwaitKeyword, isConstructor, isClassOrTypeElement, isFunction, isFunctionOrFunctionType, isFunctionType, isIdentifier, isImportKeyword, isLoop, isLogicalOrOperator, isNonNullAssertionPunctuator, isNotNonNullAssertionPunctuator, isNotOptionalChainPunctuator, isOptionalChainPunctuator, isOptionalCallExpression, isSetter, isTSConstructorType, isTSFunctionType, isTypeAssertion, isTypeKeyword, isVariableDeclarator, };
|
|
70
96
|
//# 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;AAU7C,QAAA,MAAM,yBAAyB;;4BAG9B,CAAC;AAEF,QAAA,MAAM,4BAA4B,
|
|
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;;6BAGjC,CAAC;AAEF,QAAA,MAAM,4BAA4B;;4BAGjC,CAAC;AAEF,QAAA,MAAM,+BAA+B;;6BAGpC,CAAC;AAEF;;GAEG;AACH,QAAA,MAAM,wBAAwB;;2BAK7B,CAAC;AAEF;;GAEG;AACH,QAAA,MAAM,mBAAmB,sHAGxB,CAAC;AAEF;;;;;;GAMG;AACH,QAAA,MAAM,eAAe;;EAGV,CAAC;AAEZ,QAAA,MAAM,oBAAoB;;EAAkD,CAAC;AAO7E,QAAA,MAAM,UAAU;;EAA+B,CAAC;AAUhD,QAAA,MAAM,cAAc;;EAAmC,CAAC;AAExD,QAAA,MAAM,wBAAwB;;EAGnB,CAAC;AAEZ,QAAA,MAAM,gBAAgB;;EAA8C,CAAC;AAErE,QAAA,MAAM,mBAAmB;;EAAiD,CAAC;AAE3E,QAAA,MAAM,oBAAoB;;EAef,CAAC;AAEZ;;GAEG;AACH,QAAA,MAAM,aAAa,oOAGlB,CAAC;AAEF;;GAEG;AACH,iBAAS,QAAQ,CACf,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,SAAS,GAC9B,IAAI,IAAI;IAAE,IAAI,EAAE,KAAK,CAAA;CAAE,GAAG,CAAC,QAAQ,CAAC,gBAAgB,GAAG,QAAQ,CAAC,QAAQ,CAAC,CAO3E;AAED,QAAA,MAAM,YAAY;;EAA0C,CAAC;AAE7D;;GAEG;AACH,QAAA,MAAM,iBAAiB;;EAA+C,CAAC;AAEvE;;GAEG;AACH,QAAA,MAAM,cAAc;;4BAElB,CAAC;AAEH;;GAEG;AACH,QAAA,MAAM,aAAa;;4BAEjB,CAAC;AAEH;;GAEG;AACH,QAAA,MAAM,eAAe;;yBAEnB,CAAC;AAEH,QAAA,MAAM,MAAM;;EAMD,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"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isVariableDeclarator = exports.isTypeKeyword = exports.isTypeAssertion = exports.isTSFunctionType = exports.isTSConstructorType = exports.
|
|
3
|
+
exports.isVariableDeclarator = exports.isTypeKeyword = exports.isTypeAssertion = exports.isTSFunctionType = exports.isTSConstructorType = exports.isOptionalCallExpression = exports.isOptionalChainPunctuator = exports.isNotOptionalChainPunctuator = exports.isNotNonNullAssertionPunctuator = exports.isNonNullAssertionPunctuator = exports.isLogicalOrOperator = exports.isLoop = exports.isImportKeyword = exports.isIdentifier = exports.isFunctionType = exports.isFunctionOrFunctionType = exports.isFunction = exports.isClassOrTypeElement = exports.isConstructor = exports.isAwaitKeyword = exports.isAwaitExpression = void 0;
|
|
4
|
+
exports.isSetter = isSetter;
|
|
4
5
|
const ts_estree_1 = require("../ts-estree");
|
|
5
6
|
const helpers_1 = require("./helpers");
|
|
6
7
|
const isOptionalChainPunctuator = (0, helpers_1.isTokenOfTypeWithConditions)(ts_estree_1.AST_TOKEN_TYPES.Punctuator, { value: '?.' });
|
|
@@ -95,7 +96,6 @@ function isSetter(node) {
|
|
|
95
96
|
node.type === ts_estree_1.AST_NODE_TYPES.Property) &&
|
|
96
97
|
node.kind === 'set');
|
|
97
98
|
}
|
|
98
|
-
exports.isSetter = isSetter;
|
|
99
99
|
const isIdentifier = (0, helpers_1.isNodeOfType)(ts_estree_1.AST_NODE_TYPES.Identifier);
|
|
100
100
|
exports.isIdentifier = isIdentifier;
|
|
101
101
|
/**
|
|
@@ -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":";;;AAoLE,4BAAQ;AAnLV,4CAA+D;AAC/D,uCAMmB;AAEnB,MAAM,yBAAyB,GAAG,IAAA,qCAA2B,EAC3D,2BAAe,CAAC,UAAU,EAC1B,EAAE,KAAK,EAAE,IAAI,EAAE,CAChB,CAAC;AAqKA,8DAAyB;AAnK3B,MAAM,4BAA4B,GAAG,IAAA,wCAA8B,EACjE,2BAAe,CAAC,UAAU,EAC1B,EAAE,KAAK,EAAE,IAAI,EAAE,CAChB,CAAC;AA+J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AAC,QAAQ,EAAE,MAAM,KAAK,MAAM,IAIhE,OAAO,SAAS,SAAS,OAAO,EAAE,EAClC,UAAU,SAAS,MAAM,2BAKxB,QAAQ,CAAC,mBAAmB,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC,KAAG,UAAU,CAChE,UAAU,EACV,OAAO,CACR,CAYF;yBAzBe,WAAW;;;AA2B3B;;;;;GAKG;AACH,iBAAS,UAAU,CACjB,OAAO,SAAS,SAAS,OAAO,EAAE,EAClC,UAAU,SAAS,MAAM,EACzB,EACA,MAAM,EACN,cAAc,EACd,IAAI,GACL,EAAE,QAAQ,CAAC,YAAY,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC,GAAG,UAAU,CACzD,UAAU,EACV,OAAO,CACR,CASA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RuleCreator =
|
|
3
|
+
exports.RuleCreator = RuleCreator;
|
|
4
4
|
const applyDefault_1 = require("./applyDefault");
|
|
5
5
|
/**
|
|
6
6
|
* Creates reusable function to create rules with default options and docs URLs.
|
|
@@ -24,7 +24,6 @@ function RuleCreator(urlCreator) {
|
|
|
24
24
|
});
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
|
-
exports.RuleCreator = RuleCreator;
|
|
28
27
|
/**
|
|
29
28
|
* Creates a well-typed TSESLint custom ESLint rule without a docs URL.
|
|
30
29
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RuleCreator.js","sourceRoot":"","sources":["../../src/eslint-utils/RuleCreator.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RuleCreator.js","sourceRoot":"","sources":["../../src/eslint-utils/RuleCreator.ts"],"names":[],"mappings":";;AAuDA,kCAyBC;AAzED,iDAA8C;AA0C9C;;;;;GAKG;AACH,SAAgB,WAAW,CAAC,UAAwC;IAClE,oHAAoH;IACpH,2FAA2F;IAC3F,OAAO,SAAS,eAAe,CAG7B,EACA,IAAI,EACJ,IAAI,EACJ,GAAG,IAAI,EAC4C;QAInD,OAAO,UAAU,CAAsB;YACrC,IAAI,EAAE;gBACJ,GAAG,IAAI;gBACP,IAAI,EAAE;oBACJ,GAAG,IAAI,CAAC,IAAI;oBACZ,GAAG,EAAE,UAAU,CAAC,IAAI,CAAC;iBACtB;aACF;YACD,GAAG,IAAI;SACR,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AAED;;;;;GAKG;AACH,SAAS,UAAU,CAGjB,EACA,MAAM,EACN,cAAc,EACd,IAAI,GACwC;IAI5C,OAAO;QACL,MAAM,CAAC,OAAmD;YACxD,MAAM,kBAAkB,GAAG,IAAA,2BAAY,EAAC,cAAc,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;YACzE,OAAO,MAAM,CAAC,OAAO,EAAE,kBAAkB,CAAC,CAAC;QAC7C,CAAC;QACD,cAAc;QACd,IAAI;KACL,CAAC;AACJ,CAAC;AAED,WAAW,CAAC,WAAW,GAAG,UAAU,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.applyDefault =
|
|
3
|
+
exports.applyDefault = applyDefault;
|
|
4
4
|
const deepMerge_1 = require("./deepMerge");
|
|
5
5
|
/**
|
|
6
6
|
* Pure function - doesn't mutate either parameter!
|
|
@@ -30,5 +30,4 @@ function applyDefault(defaultOptions, userOptions) {
|
|
|
30
30
|
});
|
|
31
31
|
return options;
|
|
32
32
|
}
|
|
33
|
-
exports.applyDefault = applyDefault;
|
|
34
33
|
//# sourceMappingURL=applyDefault.js.map
|
|
@@ -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":";;AA2CS,oCAAY;AA3CrB,2CAA0D;AAE1D;;;;;;GAMG;AACH,SAAS,YAAY,CACnB,cAAiC,EACjC,WAAkC;IAElC,iBAAiB;IACjB,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CACxB,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,CACT,CAAC;IAExB,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,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"}
|
|
@@ -1,34 +1,33 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getAncestors = getAncestors;
|
|
4
|
+
exports.getCwd = getCwd;
|
|
5
|
+
exports.getDeclaredVariables = getDeclaredVariables;
|
|
6
|
+
exports.getFilename = getFilename;
|
|
7
|
+
exports.getScope = getScope;
|
|
8
|
+
exports.getSourceCode = getSourceCode;
|
|
4
9
|
/** @deprecated use `context.sourceCode.getAncestors(node)` */
|
|
5
10
|
function getAncestors(context) {
|
|
6
11
|
return context.getAncestors();
|
|
7
12
|
}
|
|
8
|
-
exports.getAncestors = getAncestors;
|
|
9
13
|
/** @deprecated use `context.sourceCode.getCwd()` */
|
|
10
14
|
function getCwd(context) {
|
|
11
15
|
return context.getCwd();
|
|
12
16
|
}
|
|
13
|
-
exports.getCwd = getCwd;
|
|
14
17
|
/** @deprecated use `context.sourceCode.getDeclaredVariables(node)` */
|
|
15
18
|
function getDeclaredVariables(context, node) {
|
|
16
19
|
return context.sourceCode.getDeclaredVariables(node);
|
|
17
20
|
}
|
|
18
|
-
exports.getDeclaredVariables = getDeclaredVariables;
|
|
19
21
|
/** @deprecated use `context.filename` */
|
|
20
22
|
function getFilename(context) {
|
|
21
23
|
return context.filename;
|
|
22
24
|
}
|
|
23
|
-
exports.getFilename = getFilename;
|
|
24
25
|
/** @deprecated use `context.sourceCode.getScope(node) */
|
|
25
26
|
function getScope(context) {
|
|
26
27
|
return context.getScope();
|
|
27
28
|
}
|
|
28
|
-
exports.getScope = getScope;
|
|
29
29
|
/** @deprecated use `context.sourceCode` */
|
|
30
30
|
function getSourceCode(context) {
|
|
31
31
|
return context.sourceCode;
|
|
32
32
|
}
|
|
33
|
-
exports.getSourceCode = getSourceCode;
|
|
34
33
|
//# sourceMappingURL=context.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../src/eslint-utils/context.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../src/eslint-utils/context.ts"],"names":[],"mappings":";;AAOA,oCAIC;AAGD,wBAIC;AAGD,oDAKC;AAGD,kCAIC;AAGD,4BAIC;AAGD,sCAIC;AAzCD,8DAA8D;AAC9D,SAAgB,YAAY,CAC1B,OAAiD;IAEjD,OAAO,OAAO,CAAC,YAAY,EAAE,CAAC;AAChC,CAAC;AAED,oDAAoD;AACpD,SAAgB,MAAM,CACpB,OAAiD;IAEjD,OAAO,OAAO,CAAC,MAAM,EAAE,CAAC;AAC1B,CAAC;AAED,sEAAsE;AACtE,SAAgB,oBAAoB,CAClC,OAAiD,EACjD,IAAmB;IAEnB,OAAO,OAAO,CAAC,UAAU,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC;AACvD,CAAC;AAED,yCAAyC;AACzC,SAAgB,WAAW,CACzB,OAAiD;IAEjD,OAAO,OAAO,CAAC,QAAQ,CAAC;AAC1B,CAAC;AAED,yDAAyD;AACzD,SAAgB,QAAQ,CACtB,OAA0D;IAE1D,OAAO,OAAO,CAAC,QAAQ,EAAE,CAAC;AAC5B,CAAC;AAED,2CAA2C;AAC3C,SAAgB,aAAa,CAC3B,OAA0D;IAE1D,OAAO,OAAO,CAAC,UAAU,CAAC;AAC5B,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.deepMerge = deepMerge;
|
|
4
|
+
exports.isObjectNotArray = isObjectNotArray;
|
|
4
5
|
/**
|
|
5
6
|
* Check if the variable contains an object strictly rejecting arrays
|
|
6
7
|
* @returns `true` if obj is an object
|
|
@@ -8,7 +9,6 @@ exports.isObjectNotArray = exports.deepMerge = void 0;
|
|
|
8
9
|
function isObjectNotArray(obj) {
|
|
9
10
|
return typeof obj === 'object' && obj != null && !Array.isArray(obj);
|
|
10
11
|
}
|
|
11
|
-
exports.isObjectNotArray = isObjectNotArray;
|
|
12
12
|
/**
|
|
13
13
|
* Pure function - doesn't mutate either parameter!
|
|
14
14
|
* Merges two objects together deeply, overwriting the properties in first with the properties in second
|
|
@@ -43,5 +43,4 @@ function deepMerge(first = {}, second = {}) {
|
|
|
43
43
|
return acc;
|
|
44
44
|
}, {});
|
|
45
45
|
}
|
|
46
|
-
exports.deepMerge = deepMerge;
|
|
47
46
|
//# sourceMappingURL=deepMerge.js.map
|
|
@@ -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":";;AAiBA,8BA6BC;AAEQ,4CAAgB;AA9CzB;;;GAGG;AACH,SAAS,gBAAgB,CAAuB,GAAY;IAC1D,OAAO,OAAO,GAAG,KAAK,QAAQ,IAAI,GAAG,IAAI,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;AACvE,CAAC;AAED;;;;;;GAMG;AACH,SAAgB,SAAS,CACvB,QAAoB,EAAE,EACtB,SAAqB,EAAE;IAEvB,iDAAiD;IACjD,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IAErE,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,CAAa,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;QACtD,MAAM,WAAW,GAAG,GAAG,IAAI,KAAK,CAAC;QACjC,MAAM,YAAY,GAAG,GAAG,IAAI,MAAM,CAAC;QACnC,MAAM,UAAU,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC;QAC9B,MAAM,WAAW,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;QAEhC,IAAI,WAAW,IAAI,YAAY,EAAE,CAAC;YAChC,IAAI,gBAAgB,CAAC,UAAU,CAAC,IAAI,gBAAgB,CAAC,WAAW,CAAC,EAAE,CAAC;gBAClE,cAAc;gBACd,GAAG,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;YAChD,CAAC;iBAAM,CAAC;gBACN,aAAa;gBACb,GAAG,CAAC,GAAG,CAAC,GAAG,WAAW,CAAC;YACzB,CAAC;QACH,CAAC;aAAM,IAAI,WAAW,EAAE,CAAC;YACvB,GAAG,CAAC,GAAG,CAAC,GAAG,UAAU,CAAC;QACxB,CAAC;aAAM,CAAC;YACN,GAAG,CAAC,GAAG,CAAC,GAAG,WAAW,CAAC;QACzB,CAAC;QAED,OAAO,GAAG,CAAC;IACb,CAAC,EAAE,EAAE,CAAC,CAAC;AACT,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getParserServices =
|
|
3
|
+
exports.getParserServices = getParserServices;
|
|
4
4
|
const parserPathSeemsToBeTSESLint_1 = require("./parserPathSeemsToBeTSESLint");
|
|
5
5
|
const ERROR_MESSAGE_REQUIRES_PARSER_SERVICES = 'You have used a rule which requires parserServices to be generated. You must therefore provide a value for the "parserOptions.project" property for @typescript-eslint/parser.';
|
|
6
6
|
const ERROR_MESSAGE_UNKNOWN_PARSER = 'Note: detected a parser other than @typescript-eslint/parser. Make sure the parser is configured to forward "parserOptions.project" to @typescript-eslint/parser.';
|
|
@@ -27,7 +27,6 @@ function getParserServices(context, allowWithoutFullTypeInformation = false) {
|
|
|
27
27
|
}
|
|
28
28
|
return context.sourceCode.parserServices;
|
|
29
29
|
}
|
|
30
|
-
exports.getParserServices = getParserServices;
|
|
31
30
|
/* eslint-enable @typescript-eslint/unified-signatures */
|
|
32
31
|
function throwError(parserPath) {
|
|
33
32
|
const messages = [
|
|
@@ -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":";;AAuGS,8CAAiB;AAlG1B,+EAA4E;AAE5E,MAAM,sCAAsC,GAC1C,gLAAgL,CAAC;AAEnL,MAAM,4BAA4B,GAChC,mKAAmK,CAAC;AA+CtK,SAAS,iBAAiB,CACxB,OAA0D,EAC1D,+BAA+B,GAAG,KAAK;IAEvC,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,OAAO,CAAC,UAAU,CAAC,CAAC;IACjC,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,OAAO,CAAC,UAAU,CAAC,CAAC;IACjC,CAAC;IAED,OAAO,OAAO,CAAC,UAAU,CAAC,cAAgC,CAAC;AAC7D,CAAC;AACD,yDAAyD;AAEzD,SAAS,UAAU,CAAC,UAAkB;IACpC,MAAM,QAAQ,GAAG;QACf,sCAAsC;QACtC,WAAW,UAAU,EAAE;KACxB,CAAC;IACF,IAAI,CAAC,IAAA,yDAA2B,EAAC,UAAU,CAAC,EAAE,CAAC;QAC7C,QAAQ,CAAC,IAAI,CAAC,4BAA4B,CAAC,CAAC;IAC9C,CAAC;IACD,MAAM,IAAI,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;AACvC,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NullThrowsReasons =
|
|
3
|
+
exports.NullThrowsReasons = void 0;
|
|
4
|
+
exports.nullThrows = nullThrows;
|
|
4
5
|
/**
|
|
5
6
|
* A set of common reasons for calling nullThrows
|
|
6
7
|
*/
|
|
@@ -19,5 +20,4 @@ function nullThrows(value, message) {
|
|
|
19
20
|
}
|
|
20
21
|
return value;
|
|
21
22
|
}
|
|
22
|
-
exports.nullThrows = nullThrows;
|
|
23
23
|
//# sourceMappingURL=nullThrows.js.map
|
|
@@ -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":";;;AAqBS,gCAAU;AArBnB;;GAEG;AACH,MAAM,iBAAiB,GAAG;IACxB,aAAa,EAAE,iCAAiC;IAChD,YAAY,EAAE,CAAC,KAAa,EAAE,KAAa,EAAE,EAAE,CAC7C,sBAAsB,KAAK,YAAY,KAAK,GAAG;CACzC,CAAC;AAcU,8CAAiB;AAZtC;;;GAGG;AACH,SAAS,UAAU,CAAI,KAAQ,EAAE,OAAe;IAC9C,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAClB,MAAM,IAAI,KAAK,CAAC,8BAA8B,OAAO,EAAE,CAAC,CAAC;IAC3D,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.parserPathSeemsToBeTSESLint =
|
|
3
|
+
exports.parserPathSeemsToBeTSESLint = parserPathSeemsToBeTSESLint;
|
|
4
4
|
function parserPathSeemsToBeTSESLint(parserPath) {
|
|
5
5
|
return /(?:typescript-eslint|\.\.)[\w/\\]*parser/.test(parserPath);
|
|
6
6
|
}
|
|
7
|
-
exports.parserPathSeemsToBeTSESLint = parserPathSeemsToBeTSESLint;
|
|
8
7
|
//# sourceMappingURL=parserPathSeemsToBeTSESLint.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parserPathSeemsToBeTSESLint.js","sourceRoot":"","sources":["../../src/eslint-utils/parserPathSeemsToBeTSESLint.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"parserPathSeemsToBeTSESLint.js","sourceRoot":"","sources":["../../src/eslint-utils/parserPathSeemsToBeTSESLint.ts"],"names":[],"mappings":";;AAAA,kEAEC;AAFD,SAAgB,2BAA2B,CAAC,UAAkB;IAC5D,OAAO,0CAA0C,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;AACrE,CAAC"}
|
package/dist/ts-utils/isArray.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isArray =
|
|
3
|
+
exports.isArray = isArray;
|
|
4
4
|
// https://github.com/microsoft/TypeScript/issues/17002
|
|
5
5
|
function isArray(arg) {
|
|
6
6
|
return Array.isArray(arg);
|
|
7
7
|
}
|
|
8
|
-
exports.isArray = isArray;
|
|
9
8
|
//# sourceMappingURL=isArray.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isArray.js","sourceRoot":"","sources":["../../src/ts-utils/isArray.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"isArray.js","sourceRoot":"","sources":["../../src/ts-utils/isArray.ts"],"names":[],"mappings":";;AACA,0BAEC;AAHD,uDAAuD;AACvD,SAAgB,OAAO,CAAC,GAAY;IAClC,OAAO,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;AAC5B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typescript-eslint/utils",
|
|
3
|
-
"version": "7.13.2-alpha.
|
|
3
|
+
"version": "7.13.2-alpha.3",
|
|
4
4
|
"description": "Utilities for working with TypeScript + ESLint together",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -68,9 +68,9 @@
|
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
70
|
"@eslint-community/eslint-utils": "^4.4.0",
|
|
71
|
-
"@typescript-eslint/scope-manager": "7.13.2-alpha.
|
|
72
|
-
"@typescript-eslint/types": "7.13.2-alpha.
|
|
73
|
-
"@typescript-eslint/typescript-estree": "7.13.2-alpha.
|
|
71
|
+
"@typescript-eslint/scope-manager": "7.13.2-alpha.3",
|
|
72
|
+
"@typescript-eslint/types": "7.13.2-alpha.3",
|
|
73
|
+
"@typescript-eslint/typescript-estree": "7.13.2-alpha.3"
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
76
76
|
"eslint": "^8.56.0"
|