Bump the npm group with 5 updates (#1856)
* Bump the npm group with 5 updates Bumps the npm group with 5 updates: | Package | From | To | | --- | --- | --- | | [@types/semver](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/semver) | `7.5.0` | `7.5.1` | | [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) | `6.4.1` | `6.5.0` | | [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) | `6.4.1` | `6.5.0` | | [eslint](https://github.com/eslint/eslint) | `8.47.0` | `8.48.0` | | [typescript](https://github.com/Microsoft/TypeScript) | `5.1.6` | `5.2.2` | Updates `@types/semver` from 7.5.0 to 7.5.1 - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/semver) Updates `@typescript-eslint/eslint-plugin` from 6.4.1 to 6.5.0 - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.5.0/packages/eslint-plugin) Updates `@typescript-eslint/parser` from 6.4.1 to 6.5.0 - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.5.0/packages/parser) Updates `eslint` from 8.47.0 to 8.48.0 - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v8.47.0...v8.48.0) Updates `typescript` from 5.1.6 to 5.2.2 - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Commits](https://github.com/Microsoft/TypeScript/compare/v5.1.6...v5.2.2) --- updated-dependencies: - dependency-name: "@types/semver" dependency-type: direct:development update-type: version-update:semver-patch dependency-group: npm - dependency-name: "@typescript-eslint/eslint-plugin" dependency-type: direct:development update-type: version-update:semver-minor dependency-group: npm - dependency-name: "@typescript-eslint/parser" dependency-type: direct:development update-type: version-update:semver-minor dependency-group: npm - dependency-name: eslint dependency-type: direct:development update-type: version-update:semver-minor dependency-group: npm - dependency-name: typescript dependency-type: direct:development update-type: version-update:semver-minor dependency-group: npm ... Signed-off-by: dependabot[bot] <support@github.com> * Update checked-in dependencies --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
b88b5503aa
commit
8ecc33d259
72 changed files with 48141 additions and 37037 deletions
27
node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-assertions.js
generated
vendored
27
node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-assertions.js
generated
vendored
|
|
@ -24,7 +24,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const utils_1 = require("@typescript-eslint/utils");
|
||||
const ts = __importStar(require("typescript"));
|
||||
const util = __importStar(require("../util"));
|
||||
const getWrappedCode_1 = require("../util/getWrappedCode");
|
||||
exports.default = util.createRule({
|
||||
name: 'consistent-type-assertions',
|
||||
meta: {
|
||||
|
|
@ -84,6 +86,7 @@ exports.default = util.createRule({
|
|||
],
|
||||
create(context, [options]) {
|
||||
const sourceCode = context.getSourceCode();
|
||||
const parserServices = util.getParserServices(context, true);
|
||||
function isConst(node) {
|
||||
if (node.type !== utils_1.AST_NODE_TYPES.TSTypeReference) {
|
||||
return false;
|
||||
|
|
@ -116,10 +119,26 @@ exports.default = util.createRule({
|
|||
? { cast: sourceCode.getText(node.typeAnnotation) }
|
||||
: {},
|
||||
fix: messageId === 'as'
|
||||
? (fixer) => [
|
||||
fixer.replaceText(node, getTextWithParentheses(node.expression)),
|
||||
fixer.insertTextAfter(node, ` as ${getTextWithParentheses(node.typeAnnotation)}`),
|
||||
]
|
||||
? (fixer) => {
|
||||
const tsNode = parserServices.esTreeNodeToTSNodeMap.get(node);
|
||||
/**
|
||||
* AsExpression has lower precedence than TypeAssertionExpression,
|
||||
* so we don't need to wrap expression and typeAnnotation in parens.
|
||||
*/
|
||||
const expressionCode = sourceCode.getText(node.expression);
|
||||
const typeAnnotationCode = sourceCode.getText(node.typeAnnotation);
|
||||
const asPrecedence = util.getOperatorPrecedence(ts.SyntaxKind.AsExpression, ts.SyntaxKind.Unknown);
|
||||
const parentPrecedence = util.getOperatorPrecedence(tsNode.parent.kind, ts.isBinaryExpression(tsNode.parent)
|
||||
? tsNode.parent.operatorToken.kind
|
||||
: ts.SyntaxKind.Unknown, ts.isNewExpression(tsNode.parent)
|
||||
? tsNode.parent.arguments != null &&
|
||||
tsNode.parent.arguments.length > 0
|
||||
: undefined);
|
||||
const text = `${expressionCode} as ${typeAnnotationCode}`;
|
||||
return fixer.replaceText(node, util.isParenthesized(node, sourceCode)
|
||||
? text
|
||||
: (0, getWrappedCode_1.getWrappedCode)(text, asPrecedence, parentPrecedence));
|
||||
}
|
||||
: undefined,
|
||||
});
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
1
node_modules/@typescript-eslint/eslint-plugin/dist/util/getOperatorPrecedence.js
generated
vendored
1
node_modules/@typescript-eslint/eslint-plugin/dist/util/getOperatorPrecedence.js
generated
vendored
|
|
@ -312,6 +312,7 @@ function getOperatorPrecedence(nodeKind, operatorKind, hasArguments) {
|
|||
case typescript_1.SyntaxKind.MetaProperty:
|
||||
return OperatorPrecedence.Member;
|
||||
case typescript_1.SyntaxKind.AsExpression:
|
||||
case typescript_1.SyntaxKind.SatisfiesExpression:
|
||||
return OperatorPrecedence.Relational;
|
||||
case typescript_1.SyntaxKind.ThisKeyword:
|
||||
case typescript_1.SyntaxKind.SuperKeyword:
|
||||
|
|
|
|||
2
node_modules/@typescript-eslint/eslint-plugin/dist/util/getOperatorPrecedence.js.map
generated
vendored
2
node_modules/@typescript-eslint/eslint-plugin/dist/util/getOperatorPrecedence.js.map
generated
vendored
File diff suppressed because one or more lines are too long
8
node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappedCode.js
generated
vendored
Normal file
8
node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappedCode.js
generated
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.getWrappedCode = void 0;
|
||||
function getWrappedCode(text, nodePrecedence, parentPrecedence) {
|
||||
return nodePrecedence > parentPrecedence ? text : `(${text})`;
|
||||
}
|
||||
exports.getWrappedCode = getWrappedCode;
|
||||
//# sourceMappingURL=getWrappedCode.js.map
|
||||
1
node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappedCode.js.map
generated
vendored
Normal file
1
node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappedCode.js.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"getWrappedCode.js","sourceRoot":"","sources":["../../src/util/getWrappedCode.ts"],"names":[],"mappings":";;;AAEA,SAAgB,cAAc,CAC5B,IAAY,EACZ,cAAkC,EAClC,gBAAoC;IAEpC,OAAO,cAAc,GAAG,gBAAgB,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,IAAI,GAAG,CAAC;AAChE,CAAC;AAND,wCAMC"}
|
||||
24
node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappingFixer.js
generated
vendored
24
node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappingFixer.js
generated
vendored
|
|
@ -12,10 +12,13 @@ function getWrappingFixer(params) {
|
|||
return (fixer) => {
|
||||
const innerCodes = innerNodes.map(innerNode => {
|
||||
let code = sourceCode.getText(innerNode);
|
||||
// check the inner expression's precedence
|
||||
if (!isStrongPrecedenceNode(innerNode)) {
|
||||
// the code we are adding might have stronger precedence than our wrapped node
|
||||
// let's wrap our node in parens in case it has a weaker precedence than the code we are wrapping it in
|
||||
/**
|
||||
* Wrap our node in parens to prevent the following cases:
|
||||
* - It has a weaker precedence than the code we are wrapping it in
|
||||
* - It's gotten mistaken as block statement instead of object expression
|
||||
*/
|
||||
if (!isStrongPrecedenceNode(innerNode) ||
|
||||
isObjectExpressionInOneLineReturn(node, innerNode)) {
|
||||
code = `(${code})`;
|
||||
}
|
||||
return code;
|
||||
|
|
@ -44,12 +47,15 @@ exports.getWrappingFixer = getWrappingFixer;
|
|||
function isStrongPrecedenceNode(innerNode) {
|
||||
return (innerNode.type === utils_1.AST_NODE_TYPES.Literal ||
|
||||
innerNode.type === utils_1.AST_NODE_TYPES.Identifier ||
|
||||
innerNode.type === utils_1.AST_NODE_TYPES.TSTypeReference ||
|
||||
innerNode.type === utils_1.AST_NODE_TYPES.TSTypeOperator ||
|
||||
innerNode.type === utils_1.AST_NODE_TYPES.ArrayExpression ||
|
||||
innerNode.type === utils_1.AST_NODE_TYPES.ObjectExpression ||
|
||||
innerNode.type === utils_1.AST_NODE_TYPES.MemberExpression ||
|
||||
innerNode.type === utils_1.AST_NODE_TYPES.CallExpression ||
|
||||
innerNode.type === utils_1.AST_NODE_TYPES.NewExpression ||
|
||||
innerNode.type === utils_1.AST_NODE_TYPES.TaggedTemplateExpression);
|
||||
innerNode.type === utils_1.AST_NODE_TYPES.TaggedTemplateExpression ||
|
||||
innerNode.type === utils_1.AST_NODE_TYPES.TSInstantiationExpression);
|
||||
}
|
||||
exports.isStrongPrecedenceNode = isStrongPrecedenceNode;
|
||||
/**
|
||||
|
|
@ -138,4 +144,12 @@ function isLeftHandSide(node) {
|
|||
}
|
||||
return false;
|
||||
}
|
||||
/**
|
||||
* Checks if a node's parent is arrow function expression and a inner node is object expression
|
||||
*/
|
||||
function isObjectExpressionInOneLineReturn(node, innerNode) {
|
||||
return (node.parent?.type === utils_1.AST_NODE_TYPES.ArrowFunctionExpression &&
|
||||
node.parent.body === node &&
|
||||
innerNode.type === utils_1.AST_NODE_TYPES.ObjectExpression);
|
||||
}
|
||||
//# sourceMappingURL=getWrappingFixer.js.map
|
||||
2
node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappingFixer.js.map
generated
vendored
2
node_modules/@typescript-eslint/eslint-plugin/dist/util/getWrappingFixer.js.map
generated
vendored
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"getWrappingFixer.js","sourceRoot":"","sources":["../../src/util/getWrappingFixer.ts"],"names":[],"mappings":";;;AACA,oDAAoE;AAsBpE;;;GAGG;AACH,SAAgB,gBAAgB,CAC9B,MAA2B;IAE3B,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,GAAG,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,CAAC;IAC5D,MAAM,UAAU,GAAG,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IAEtE,OAAO,CAAC,KAAK,EAAoB,EAAE;QACjC,MAAM,UAAU,GAAG,UAAU,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE;YAC5C,IAAI,IAAI,GAAG,UAAU,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;YAEzC,0CAA0C;YAC1C,IAAI,CAAC,sBAAsB,CAAC,SAAS,CAAC,EAAE;gBACtC,8EAA8E;gBAC9E,uGAAuG;gBACvG,IAAI,GAAG,IAAI,IAAI,GAAG,CAAC;aACpB;YAED,OAAO,IAAI,CAAC;QACd,CAAC,CAAC,CAAC;QAEH,kBAAkB;QAClB,IAAI,IAAI,GAAG,IAAI,CAAC,GAAG,UAAU,CAAC,CAAC;QAE/B,0CAA0C;QAC1C,IAAI,sBAAsB,CAAC,IAAI,CAAC,EAAE;YAChC,iHAAiH;YACjH,yDAAyD;YACzD,IAAI,CAAC,gBAAQ,CAAC,eAAe,CAAC,IAA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C,IAAI,CAAC,EAAE;YACzB,OAAO,KAAK,CAAC;SACd;QAED,IAAI,GAAG,MAAM,CAAC;KACf;AACH,CAAC;AAED;;GAEG;AACH,SAAS,cAAc,CAAC,IAAmB;IACzC,MAAM,MAAM,GAAG,IAAI,CAAC,MAAO,CAAC;IAE5B,MAAM;IACN,IAAI,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB,EAAE;QACnD,OAAO,IAAI,CAAC;KACb;IAED,QAAQ;IACR,IACE,CAAC,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB;QAC9C,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,iBAAiB;QAChD,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,oBAAoB,CAAC;QACtD,IAAI,KAAK,MAAM,CAAC,IAAI,EACpB;QACA,OAAO,IAAI,CAAC;KACb;IAED,YAAY;IACZ,IACE,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,qBAAqB;QACpD,IAAI,KAAK,MAAM,CAAC,IAAI,EACpB;QACA,OAAO,IAAI,CAAC;KACb;IAED,OAAO;IACP,IAAI,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,cAAc,IAAI,IAAI,KAAK,MAAM,CAAC,MAAM,EAAE;QAC3E,OAAO,IAAI,CAAC;KACb;IAED,OAAO;IACP,IACE,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,wBAAwB;QACvD,IAAI,KAAK,MAAM,CAAC,GAAG,EACnB;QACA,OAAO,IAAI,CAAC;KACb;IAED,OAAO,KAAK,CAAC;AACf,CAAC"}
|
||||
{"version":3,"file":"getWrappingFixer.js","sourceRoot":"","sources":["../../src/util/getWrappingFixer.ts"],"names":[],"mappings":";;;AACA,oDAAoE;AAsBpE;;;GAGG;AACH,SAAgB,gBAAgB,CAC9B,MAA2B;IAE3B,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,GAAG,IAAI,EAAE,IAAI,EAAE,GAAG,MAAM,C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gB;QAC9C,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,iBAAiB;QAChD,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,oBAAoB,CAAC;QACtD,IAAI,KAAK,MAAM,CAAC,IAAI,EACpB;QACA,OAAO,IAAI,CAAC;KACb;IAED,YAAY;IACZ,IACE,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,qBAAqB;QACpD,IAAI,KAAK,MAAM,CAAC,IAAI,EACpB;QACA,OAAO,IAAI,CAAC;KACb;IAED,OAAO;IACP,IAAI,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,cAAc,IAAI,IAAI,KAAK,MAAM,CAAC,MAAM,EAAE;QAC3E,OAAO,IAAI,CAAC;KACb;IAED,OAAO;IACP,IACE,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,wBAAwB;QACvD,IAAI,KAAK,MAAM,CAAC,GAAG,EACnB;QACA,OAAO,IAAI,CAAC;KACb;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;GAEG;AACH,SAAS,iCAAiC,CACxC,IAAmB,EACnB,SAAwB;IAExB,OAAO,CACL,IAAI,CAAC,MAAM,EAAE,IAAI,KAAK,sBAAc,CAAC,uBAAuB;QAC5D,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,IAAI;QACzB,SAAS,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB,CACnD,CAAC;AACJ,CAAC"}
|
||||
2
node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extra-semi.md
generated
vendored
2
node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-extra-semi.md
generated
vendored
|
|
@ -8,3 +8,5 @@ description: 'Disallow unnecessary semicolons.'
|
|||
|
||||
This rule extends the base [`eslint/no-extra-semi`](https://eslint.org/docs/rules/no-extra-semi) rule.
|
||||
It adds support for class properties.
|
||||
|
||||
Note that this rule is classified as a "Suggestion" rule instead of a "Layout & Formatting" rule because [adding extra semi-colons actually changes the AST of the program](https://typescript-eslint.io/play/#ts=5.1.6&showAST=es&fileType=.ts&code=MYewdgzgLgBAHjAvDAjAbg0A&eslintrc=N4KABGBEBOCuA2BTAzpAXGUEKQHYHsBaRADwBdoBDQ5RAWwEt0p8AzVyAGnG0gAEyATwAOKAMbQGwssWTwGuMgHoCxclRr0mGSImjR80SDwC%2BIE0A&tsconfig=&tokens=false). With that said, modern TypeScript formatters will remove extra semi-colons automatically during the formatting process. Thus, if you [use a formatter](/linting/troubleshooting/formatting), then enabling this rule is probably unnecessary.
|
||||
|
|
|
|||
16
node_modules/@typescript-eslint/eslint-plugin/package.json
generated
vendored
16
node_modules/@typescript-eslint/eslint-plugin/package.json
generated
vendored
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@typescript-eslint/eslint-plugin",
|
||||
"version": "6.4.1",
|
||||
"version": "6.5.0",
|
||||
"description": "TypeScript plugin for ESLint",
|
||||
"files": [
|
||||
"dist",
|
||||
|
|
@ -57,10 +57,10 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@eslint-community/regexpp": "^4.5.1",
|
||||
"@typescript-eslint/scope-manager": "6.4.1",
|
||||
"@typescript-eslint/type-utils": "6.4.1",
|
||||
"@typescript-eslint/utils": "6.4.1",
|
||||
"@typescript-eslint/visitor-keys": "6.4.1",
|
||||
"@typescript-eslint/scope-manager": "6.5.0",
|
||||
"@typescript-eslint/type-utils": "6.5.0",
|
||||
"@typescript-eslint/utils": "6.5.0",
|
||||
"@typescript-eslint/visitor-keys": "6.5.0",
|
||||
"debug": "^4.3.4",
|
||||
"graphemer": "^1.4.0",
|
||||
"ignore": "^5.2.4",
|
||||
|
|
@ -73,8 +73,8 @@
|
|||
"@types/marked": "*",
|
||||
"@types/natural-compare": "*",
|
||||
"@types/prettier": "*",
|
||||
"@typescript-eslint/rule-schema-to-typescript-types": "6.4.1",
|
||||
"@typescript-eslint/rule-tester": "6.4.1",
|
||||
"@typescript-eslint/rule-schema-to-typescript-types": "6.5.0",
|
||||
"@typescript-eslint/rule-tester": "6.5.0",
|
||||
"ajv": "^6.12.6",
|
||||
"chalk": "^5.3.0",
|
||||
"cross-fetch": "*",
|
||||
|
|
@ -103,5 +103,5 @@
|
|||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/typescript-eslint"
|
||||
},
|
||||
"gitHead": "ef1367eeed112fd6bbb94e0c9bd56d7e167a1a59"
|
||||
"gitHead": "4f34d0ba34474926ba1eed623704b583a037f886"
|
||||
}
|
||||
|
|
|
|||
12
node_modules/@typescript-eslint/parser/package.json
generated
vendored
12
node_modules/@typescript-eslint/parser/package.json
generated
vendored
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@typescript-eslint/parser",
|
||||
"version": "6.4.1",
|
||||
"version": "6.5.0",
|
||||
"description": "An ESLint custom parser which leverages TypeScript ESTree",
|
||||
"files": [
|
||||
"dist",
|
||||
|
|
@ -51,10 +51,10 @@
|
|||
"eslint": "^7.0.0 || ^8.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@typescript-eslint/scope-manager": "6.4.1",
|
||||
"@typescript-eslint/types": "6.4.1",
|
||||
"@typescript-eslint/typescript-estree": "6.4.1",
|
||||
"@typescript-eslint/visitor-keys": "6.4.1",
|
||||
"@typescript-eslint/scope-manager": "6.5.0",
|
||||
"@typescript-eslint/types": "6.5.0",
|
||||
"@typescript-eslint/typescript-estree": "6.5.0",
|
||||
"@typescript-eslint/visitor-keys": "6.5.0",
|
||||
"debug": "^4.3.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
@ -82,5 +82,5 @@
|
|||
]
|
||||
}
|
||||
},
|
||||
"gitHead": "ef1367eeed112fd6bbb94e0c9bd56d7e167a1a59"
|
||||
"gitHead": "4f34d0ba34474926ba1eed623704b583a037f886"
|
||||
}
|
||||
|
|
|
|||
10
node_modules/@typescript-eslint/scope-manager/package.json
generated
vendored
10
node_modules/@typescript-eslint/scope-manager/package.json
generated
vendored
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@typescript-eslint/scope-manager",
|
||||
"version": "6.4.1",
|
||||
"version": "6.5.0",
|
||||
"description": "TypeScript scope analyser for ESLint",
|
||||
"files": [
|
||||
"dist",
|
||||
|
|
@ -44,12 +44,12 @@
|
|||
"typecheck": "nx typecheck"
|
||||
},
|
||||
"dependencies": {
|
||||
"@typescript-eslint/types": "6.4.1",
|
||||
"@typescript-eslint/visitor-keys": "6.4.1"
|
||||
"@typescript-eslint/types": "6.5.0",
|
||||
"@typescript-eslint/visitor-keys": "6.5.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/glob": "*",
|
||||
"@typescript-eslint/typescript-estree": "6.4.1",
|
||||
"@typescript-eslint/typescript-estree": "6.5.0",
|
||||
"glob": "*",
|
||||
"jest-specific-snapshot": "*",
|
||||
"make-dir": "*",
|
||||
|
|
@ -69,5 +69,5 @@
|
|||
]
|
||||
}
|
||||
},
|
||||
"gitHead": "ef1367eeed112fd6bbb94e0c9bd56d7e167a1a59"
|
||||
"gitHead": "4f34d0ba34474926ba1eed623704b583a037f886"
|
||||
}
|
||||
|
|
|
|||
10
node_modules/@typescript-eslint/type-utils/package.json
generated
vendored
10
node_modules/@typescript-eslint/type-utils/package.json
generated
vendored
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@typescript-eslint/type-utils",
|
||||
"version": "6.4.1",
|
||||
"version": "6.5.0",
|
||||
"description": "Type utilities for working with TypeScript + ESLint together",
|
||||
"files": [
|
||||
"dist",
|
||||
|
|
@ -45,13 +45,13 @@
|
|||
"typecheck": "tsc -p tsconfig.json --noEmit"
|
||||
},
|
||||
"dependencies": {
|
||||
"@typescript-eslint/typescript-estree": "6.4.1",
|
||||
"@typescript-eslint/utils": "6.4.1",
|
||||
"@typescript-eslint/typescript-estree": "6.5.0",
|
||||
"@typescript-eslint/utils": "6.5.0",
|
||||
"debug": "^4.3.4",
|
||||
"ts-api-utils": "^1.0.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@typescript-eslint/parser": "6.4.1",
|
||||
"@typescript-eslint/parser": "6.5.0",
|
||||
"ajv": "^6.10.0",
|
||||
"downlevel-dts": "*",
|
||||
"jest": "29.6.2",
|
||||
|
|
@ -78,5 +78,5 @@
|
|||
]
|
||||
}
|
||||
},
|
||||
"gitHead": "ef1367eeed112fd6bbb94e0c9bd56d7e167a1a59"
|
||||
"gitHead": "4f34d0ba34474926ba1eed623704b583a037f886"
|
||||
}
|
||||
|
|
|
|||
104
node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts
generated
vendored
104
node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts
generated
vendored
|
|
@ -562,16 +562,17 @@ export declare interface ExpressionStatement extends BaseNode {
|
|||
expression: Expression;
|
||||
directive: string | undefined;
|
||||
}
|
||||
export declare type ForInitialiser = Expression | VariableDeclaration;
|
||||
export declare type ForInitialiser = Expression | LetOrConstOrVarDeclaration;
|
||||
export declare interface ForInStatement extends BaseNode {
|
||||
type: AST_NODE_TYPES.ForInStatement;
|
||||
left: ForInitialiser;
|
||||
right: Expression;
|
||||
body: Statement;
|
||||
}
|
||||
declare type ForOfInitialiser = Expression | LetOrConstOrVarDeclaration | UsingInForOfDeclaration;
|
||||
export declare interface ForOfStatement extends BaseNode {
|
||||
type: AST_NODE_TYPES.ForOfStatement;
|
||||
left: ForInitialiser;
|
||||
left: ForOfInitialiser;
|
||||
right: Expression;
|
||||
body: Statement;
|
||||
await: boolean;
|
||||
|
|
@ -826,6 +827,40 @@ export declare interface LabeledStatement extends BaseNode {
|
|||
body: Statement;
|
||||
}
|
||||
export declare type LeftHandSideExpression = ArrayExpression | ArrayPattern | ArrowFunctionExpression | CallExpression | ClassExpression | FunctionExpression | Identifier | JSXElement | JSXFragment | LiteralExpression | MemberExpression | MetaProperty | ObjectExpression | ObjectPattern | SequenceExpression | Super | TaggedTemplateExpression | ThisExpression | TSAsExpression | TSNonNullExpression | TSTypeAssertion;
|
||||
export declare interface LetOrConstOrVarDeclaration extends BaseNode {
|
||||
type: AST_NODE_TYPES.VariableDeclaration;
|
||||
/**
|
||||
* The variables declared by this declaration.
|
||||
* Note that there may be 0 declarations (i.e. `const;`).
|
||||
* ```
|
||||
* let x;
|
||||
* let y, z;
|
||||
* ```
|
||||
*/
|
||||
declarations: LetOrConstOrVarDeclarator[];
|
||||
/**
|
||||
* Whether the declaration is `declare`d
|
||||
* ```
|
||||
* declare const x = 1;
|
||||
* ```
|
||||
*/
|
||||
declare: boolean;
|
||||
/**
|
||||
* The keyword used to declare the variable(s)
|
||||
* ```
|
||||
* const x = 1;
|
||||
* let y = 2;
|
||||
* var z = 3;
|
||||
* ```
|
||||
*/
|
||||
kind: 'const' | 'let' | 'var';
|
||||
}
|
||||
export declare interface LetOrConstOrVarDeclarator extends BaseNode {
|
||||
type: AST_NODE_TYPES.VariableDeclarator;
|
||||
id: BindingName;
|
||||
init: Expression | null;
|
||||
definite: boolean;
|
||||
}
|
||||
export declare interface LineComment extends BaseToken {
|
||||
type: AST_TOKEN_TYPES.Line;
|
||||
}
|
||||
|
|
@ -1761,41 +1796,72 @@ export declare interface UpdateExpression extends UnaryExpressionBase {
|
|||
type: AST_NODE_TYPES.UpdateExpression;
|
||||
operator: '--' | '++';
|
||||
}
|
||||
declare type ValueOf<T> = T[keyof T];
|
||||
export declare interface VariableDeclaration extends BaseNode {
|
||||
export declare type UsingDeclaration = UsingInForOfDeclaration | UsingInNomalConextDeclaration;
|
||||
export declare type UsingDeclarator = UsingInForOfDeclarator | UsingInNomalConextDeclarator;
|
||||
export declare interface UsingInForOfDeclaration extends BaseNode {
|
||||
type: AST_NODE_TYPES.VariableDeclaration;
|
||||
/**
|
||||
* The variables declared by this declaration.
|
||||
* Note that there may be 0 declarations (i.e. `const;`).
|
||||
* ```
|
||||
* let x;
|
||||
* let y, z;
|
||||
* for(using x of y){}
|
||||
* ```
|
||||
*/
|
||||
declarations: VariableDeclarator[];
|
||||
declarations: UsingInForOfDeclarator[];
|
||||
/**
|
||||
* Whether the declaration is `declare`d
|
||||
* ```
|
||||
* declare const x = 1;
|
||||
* ```
|
||||
* This value will always be `false`
|
||||
* because 'declare' modifier cannot appear on a 'using' declaration.
|
||||
*/
|
||||
declare: boolean;
|
||||
declare: false;
|
||||
/**
|
||||
* The keyword used to declare the variable(s)
|
||||
* ```
|
||||
* const x = 1;
|
||||
* let y = 2;
|
||||
* var z = 3;
|
||||
* for(using x of y){}
|
||||
* for(await using x of y){}
|
||||
* ```
|
||||
*/
|
||||
kind: 'const' | 'let' | 'var';
|
||||
kind: 'await using' | 'using';
|
||||
}
|
||||
export declare interface VariableDeclarator extends BaseNode {
|
||||
export declare interface UsingInForOfDeclarator extends BaseNode {
|
||||
type: AST_NODE_TYPES.VariableDeclarator;
|
||||
id: BindingName;
|
||||
init: Expression | null;
|
||||
id: Identifier;
|
||||
init: null;
|
||||
definite: boolean;
|
||||
}
|
||||
export declare interface UsingInNomalConextDeclaration extends BaseNode {
|
||||
type: AST_NODE_TYPES.VariableDeclaration;
|
||||
/**
|
||||
* The variables declared by this declaration.
|
||||
* Note that there may be 0 declarations (i.e. `const;`).
|
||||
* ```
|
||||
* using x = 1;
|
||||
* using y =1, z = 2;
|
||||
* ```
|
||||
*/
|
||||
declarations: UsingInNomalConextDeclarator[];
|
||||
/**
|
||||
* This value will always be `false`
|
||||
* because 'declare' modifier cannot appear on a 'using' declaration.
|
||||
*/
|
||||
declare: false;
|
||||
/**
|
||||
* The keyword used to declare the variable(s)
|
||||
* ```
|
||||
* using x = 1;
|
||||
* await using y = 2;
|
||||
* ```
|
||||
*/
|
||||
kind: 'await using' | 'using';
|
||||
}
|
||||
export declare interface UsingInNomalConextDeclarator extends BaseNode {
|
||||
type: AST_NODE_TYPES.VariableDeclarator;
|
||||
id: Identifier;
|
||||
init: Expression;
|
||||
definite: boolean;
|
||||
}
|
||||
declare type ValueOf<T> = T[keyof T];
|
||||
export declare type VariableDeclaration = LetOrConstOrVarDeclaration | UsingDeclaration;
|
||||
export declare type VariableDeclarator = LetOrConstOrVarDeclarator | UsingDeclarator;
|
||||
export declare interface WhileStatement extends BaseNode {
|
||||
type: AST_NODE_TYPES.WhileStatement;
|
||||
test: Expression;
|
||||
|
|
|
|||
2
node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts.map
generated
vendored
2
node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts.map
generated
vendored
File diff suppressed because one or more lines are too long
4
node_modules/@typescript-eslint/types/package.json
generated
vendored
4
node_modules/@typescript-eslint/types/package.json
generated
vendored
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@typescript-eslint/types",
|
||||
"version": "6.4.1",
|
||||
"version": "6.5.0",
|
||||
"description": "Types for the TypeScript-ESTree AST spec",
|
||||
"files": [
|
||||
"dist",
|
||||
|
|
@ -90,5 +90,5 @@
|
|||
]
|
||||
}
|
||||
},
|
||||
"gitHead": "ef1367eeed112fd6bbb94e0c9bd56d7e167a1a59"
|
||||
"gitHead": "4f34d0ba34474926ba1eed623704b583a037f886"
|
||||
}
|
||||
|
|
|
|||
2
node_modules/@typescript-eslint/typescript-estree/dist/convert.d.ts.map
generated
vendored
2
node_modules/@typescript-eslint/typescript-estree/dist/convert.d.ts.map
generated
vendored
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"convert.d.ts","sourceRoot":"","sources":["../src/convert.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAGjC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AA4B5C,OAAO,KAAK,EACV,aAAa,EACb,2BAA2B,EAC5B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,KAAK,EAAE,QAAQ,EAAoB,MAAM,EAAE,MAAM,aAAa,CAAC;AAKtE,MAAM,WAAW,gBAAgB;IAC/B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,qBAAqB,CAAC,EAAE,OA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mB;IAC3C,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAiB;IACvD,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAiB;IAEvD,OAAO,CAAC,YAAY,CAAS;IAE7B;;;;;OAKG;gBACS,GAAG,EAAE,EAAE,CAAC,UAAU,EAAE,OAAO,CAAC,EAAE,gBAAgB;IAK1D,UAAU,IAAI,OAAO;IAOrB,cAAc,IAAI,QAAQ,CAAC,OAAO;IAIlC;;;;;;OAMG;IACH,OAAO,CAAC,SAAS;IA8BjB;;;;;OAKG;IACH,OAAO,CAAC,UAAU;IAyElB;;OAEG;IACH,OAAO,CAAC,uBAAuB;IAW/B;;;;;OAKG;IACH,OAAO,CAAC,cAAc;IAItB;;;;;OAKG;IACH,OAAO,CAAC,YAAY;IAIpB,OAAO,CAAC,UAAU;IAelB,OAAO,CAAC,oCAAoC;IAe5C;;;;;;OAMG;IACH,OAAO,CAAC,qBAAqB;IAsB7B;;;;;OAKG;IACH,OAAO,CAAC,sBAAsB;IAiC9B;;;;;OAKG;IACH,OAAO,CAAC,gDAAgD;IAexD;;;;OAIG;IACH,OAAO,CAAC,kDAAkD;IAmB1D;;;;OAIG;IACH,OAAO,CAAC,iBAAiB;IAgBzB,OAAO,CAAC,sBAAsB;IA4C9B;;;;OAIG;IACH,OAAO,CAAC,UAAU;IA+FlB,OAAO,CAAC,oBAAoB;IAW5B,OAAO,CAAC,+BAA+B;IAiDvC;;;;;OAKG;IACH,OAAO,CAAC,iBAAiB;IA8BzB,OAAO,CAAC,sBAAsB;IAoC9B,OAAO,CAAC,mBAAmB;IAQ3B;;;;OAIG;IACH,OAAO,CAAC,iBAAiB;IAczB,OAAO,CAAC,qBAAqB;IAsB7B;;;;;;;OAOG;IACH,OAAO,CAAC,WAAW;CAypFpB"}
|
||||
33
node_modules/@typescript-eslint/typescript-estree/dist/convert.js
generated
vendored
33
node_modules/@typescript-eslint/typescript-estree/dist/convert.js
generated
vendored
|
|
@ -741,6 +741,16 @@ class Converter {
|
|||
if (!result.declarations.length) {
|
||||
__classPrivateFieldGet(this, _Converter_instances, "m", _Converter_throwUnlessAllowInvalidAST).call(this, node, 'A variable declaration list must have at least one variable declarator.');
|
||||
}
|
||||
if (result.kind === 'using' || result.kind === 'await using') {
|
||||
node.declarationList.declarations.forEach((declaration, i) => {
|
||||
if (result.declarations[i].init == null) {
|
||||
__classPrivateFieldGet(this, _Converter_instances, "m", _Converter_throwError).call(this, declaration, `'${result.kind}' declarations must be initialized.`);
|
||||
}
|
||||
if (result.declarations[i].id.type !== ts_estree_1.AST_NODE_TYPES.Identifier) {
|
||||
__classPrivateFieldGet(this, _Converter_instances, "m", _Converter_throwError).call(this, declaration.name, `'${result.kind}' declarations may not have binding patterns.`);
|
||||
}
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Semantically, decorators are not allowed on variable declarations,
|
||||
* Pre 4.8 TS would include them in the AST, so we did as well.
|
||||
|
|
@ -751,13 +761,25 @@ class Converter {
|
|||
return this.fixExports(node, result);
|
||||
}
|
||||
// mostly for for-of, for-in
|
||||
case SyntaxKind.VariableDeclarationList:
|
||||
return this.createNode(node, {
|
||||
case SyntaxKind.VariableDeclarationList: {
|
||||
const result = this.createNode(node, {
|
||||
type: ts_estree_1.AST_NODE_TYPES.VariableDeclaration,
|
||||
declarations: node.declarations.map(el => this.convertChild(el)),
|
||||
declare: false,
|
||||
kind: (0, node_utils_1.getDeclarationKind)(node),
|
||||
});
|
||||
if (result.kind === 'using' || result.kind === 'await using') {
|
||||
node.declarations.forEach((declaration, i) => {
|
||||
if (result.declarations[i].init != null) {
|
||||
__classPrivateFieldGet(this, _Converter_instances, "m", _Converter_throwError).call(this, declaration, `'${result.kind}' declarations may not be initialized in for statement.`);
|
||||
}
|
||||
if (result.declarations[i].id.type !== ts_estree_1.AST_NODE_TYPES.Identifier) {
|
||||
__classPrivateFieldGet(this, _Converter_instances, "m", _Converter_throwError).call(this, declaration.name, `'${result.kind}' declarations may not have binding patterns.`);
|
||||
}
|
||||
});
|
||||
}
|
||||
return result;
|
||||
}
|
||||
// Expressions
|
||||
case SyntaxKind.ExpressionStatement:
|
||||
return this.createNode(node, {
|
||||
|
|
@ -2410,6 +2432,13 @@ _Converter_instances = new WeakSet(), _Converter_checkModifiers = function _Conv
|
|||
!ts.isPropertyDeclaration(node)) {
|
||||
__classPrivateFieldGet(this, _Converter_instances, "m", _Converter_throwError).call(this, modifier, `'${ts.tokenToString(modifier.kind)}' modifier cannot appear on class elements of this kind.`);
|
||||
}
|
||||
if (modifier.kind === SyntaxKind.DeclareKeyword &&
|
||||
ts.isVariableStatement(node)) {
|
||||
const declarationKind = (0, node_utils_1.getDeclarationKind)(node.declarationList);
|
||||
if (declarationKind === 'using' || declarationKind === 'await using') {
|
||||
__classPrivateFieldGet(this, _Converter_instances, "m", _Converter_throwError).call(this, modifier, `'declare' modifier cannot appear on a '${declarationKind}' declaration.`);
|
||||
}
|
||||
}
|
||||
if (modifier.kind === SyntaxKind.AbstractKeyword &&
|
||||
node.kind !== SyntaxKind.ClassDeclaration &&
|
||||
node.kind !== SyntaxKind.ConstructorType &&
|
||||
|
|
|
|||
2
node_modules/@typescript-eslint/typescript-estree/dist/convert.js.map
generated
vendored
2
node_modules/@typescript-eslint/typescript-estree/dist/convert.js.map
generated
vendored
File diff suppressed because one or more lines are too long
3
node_modules/@typescript-eslint/typescript-estree/dist/node-utils.d.ts
generated
vendored
3
node_modules/@typescript-eslint/typescript-estree/dist/node-utils.d.ts
generated
vendored
|
|
@ -12,6 +12,7 @@ interface TokenToText extends TSESTree.PunctuatorTokenToText, TSESTree.BinaryOpe
|
|||
}
|
||||
type AssignmentOperatorKind = keyof TSESTree.AssignmentOperatorToText;
|
||||
type BinaryOperatorKind = keyof TSESTree.BinaryOperatorToText;
|
||||
type DeclarationKind = TSESTree.VariableDeclaration['kind'];
|
||||
/**
|
||||
* Returns true if the given ts.Token is a logical operator
|
||||
* @param operator the operator token
|
||||
|
|
@ -111,7 +112,7 @@ export declare function isJSXToken(node: ts.Node): boolean;
|
|||
* @param node TypeScript AST node
|
||||
* @returns declaration kind
|
||||
*/
|
||||
export declare function getDeclarationKind(node: ts.VariableDeclarationList): 'const' | 'let' | 'var';
|
||||
export declare function getDeclarationKind(node: ts.VariableDeclarationList): DeclarationKind;
|
||||
/**
|
||||
* Gets a ts.Node's accessibility level
|
||||
* @param node The ts.Node
|
||||
|
|
|
|||
2
node_modules/@typescript-eslint/typescript-estree/dist/node-utils.d.ts.map
generated
vendored
2
node_modules/@typescript-eslint/typescript-estree/dist/node-utils.d.ts.map
generated
vendored
File diff suppressed because one or more lines are too long
7
node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js
generated
vendored
7
node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js
generated
vendored
|
|
@ -282,9 +282,16 @@ function getDeclarationKind(node) {
|
|||
if (node.flags & ts.NodeFlags.Let) {
|
||||
return 'let';
|
||||
}
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-enum-comparison
|
||||
if ((node.flags & ts.NodeFlags.AwaitUsing) === ts.NodeFlags.AwaitUsing) {
|
||||
return 'await using';
|
||||
}
|
||||
if (node.flags & ts.NodeFlags.Const) {
|
||||
return 'const';
|
||||
}
|
||||
if (node.flags & ts.NodeFlags.Using) {
|
||||
return 'using';
|
||||
}
|
||||
return 'var';
|
||||
}
|
||||
exports.getDeclarationKind = getDeclarationKind;
|
||||
|
|
|
|||
2
node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js.map
generated
vendored
2
node_modules/@typescript-eslint/typescript-estree/dist/node-utils.js.map
generated
vendored
File diff suppressed because one or more lines are too long
|
|
@ -33,12 +33,12 @@ const ts = __importStar(require("typescript"));
|
|||
* This needs to be kept in sync with /docs/users/Versioning.mdx
|
||||
* in the typescript-eslint monorepo
|
||||
*/
|
||||
const SUPPORTED_TYPESCRIPT_VERSIONS = '>=4.3.5 <5.2.0';
|
||||
const SUPPORTED_TYPESCRIPT_VERSIONS = '>=4.3.5 <5.3.0';
|
||||
/*
|
||||
* The semver package will ignore prerelease ranges, and we don't want to explicitly document every one
|
||||
* List them all separately here, so we can automatically create the full string
|
||||
*/
|
||||
const SUPPORTED_PRERELEASE_RANGES = ['5.2.1-rc'];
|
||||
const SUPPORTED_PRERELEASE_RANGES = [];
|
||||
const ACTIVE_TYPESCRIPT_VERSION = ts.version;
|
||||
const isRunningSupportedTypeScriptVersion = semver_1.default.satisfies(ACTIVE_TYPESCRIPT_VERSION, [SUPPORTED_TYPESCRIPT_VERSIONS]
|
||||
.concat(SUPPORTED_PRERELEASE_RANGES)
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"warnAboutTSVersion.js","sourceRoot":"","sources":["../../src/parseSettings/warnAboutTSVersion.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAA4B;AAC5B,+CAAiC;AAGjC;;;GAGG;AACH,MAAM,6BAA6B,GAAG,gBAAgB,CAAC;AAEvD;;;GAGG;AACH,MAAM,2BAA2B,GAAa,CAAC,UAAU,CAAC,CAAC;AAC3D,MAAM,yBAAyB,GAAG,EAAE,CAAC,OAAO,CAAC;AAC7C,MAAM,mCAAmC,GAAG,gBAAM,CAAC,SAAS,CAC1D,yBAAyB,EACzB,CAAC,6BAA6B,CAAC;KAC5B,MAAM,CAAC,2BAA2B,CAAC;KACnC,IAAI,CAAC,MAAM,CAAC,CAChB,CAAC;AAEF,IAAI,oBAAoB,GAAG,KAAK,CAAC;AAEjC,SAAgB,kBAAkB,CAAC,aAA4B;IAC7D,IAAI,CAAC,mCAAmC,IAAI,CAAC,oBAAoB,EAAE;QACjE,MAAM,KAAK,GACT,OAAO,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,KAAK,CAAC;QACjE,IAAI,KAAK,EAAE;YACT,MAAM,MAAM,GAAG,eAAe,CAAC;YAC/B,MAAM,cAAc,GAAG;gBACrB,MA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AAM;aACP,CAAC;YACF,aAAa,CAAC,GAAG,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;SAChD;QACD,oBAAoB,GAAG,IAAI,CAAC;KAC7B;AACH,CAAC;AAnBD,gDAmBC"}
|
||||
8
node_modules/@typescript-eslint/typescript-estree/package.json
generated
vendored
8
node_modules/@typescript-eslint/typescript-estree/package.json
generated
vendored
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@typescript-eslint/typescript-estree",
|
||||
"version": "6.4.1",
|
||||
"version": "6.5.0",
|
||||
"description": "A parser that converts TypeScript source code into an ESTree compatible form",
|
||||
"files": [
|
||||
"dist",
|
||||
|
|
@ -52,8 +52,8 @@
|
|||
"typecheck": "tsc -p tsconfig.json --noEmit"
|
||||
},
|
||||
"dependencies": {
|
||||
"@typescript-eslint/types": "6.4.1",
|
||||
"@typescript-eslint/visitor-keys": "6.4.1",
|
||||
"@typescript-eslint/types": "6.5.0",
|
||||
"@typescript-eslint/visitor-keys": "6.5.0",
|
||||
"debug": "^4.3.4",
|
||||
"globby": "^11.1.0",
|
||||
"is-glob": "^4.0.3",
|
||||
|
|
@ -88,5 +88,5 @@
|
|||
]
|
||||
}
|
||||
},
|
||||
"gitHead": "ef1367eeed112fd6bbb94e0c9bd56d7e167a1a59"
|
||||
"gitHead": "4f34d0ba34474926ba1eed623704b583a037f886"
|
||||
}
|
||||
|
|
|
|||
36
node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.d.ts
generated
vendored
36
node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.d.ts
generated
vendored
|
|
@ -371,9 +371,17 @@ export declare const isNodeOfType: <NodeType extends AST_NODE_TYPES>(nodeType: N
|
|||
type: NodeType;
|
||||
}> | Extract<TSESTree.UpdateExpression, {
|
||||
type: NodeType;
|
||||
}> | Extract<TSESTree.VariableDeclaration, {
|
||||
}> | Extract<TSESTree.LetOrConstOrVarDeclaration, {
|
||||
type: NodeType;
|
||||
}> | Extract<TSESTree.VariableDeclarator, {
|
||||
}> | Extract<TSESTree.UsingInForOfDeclaration, {
|
||||
type: NodeType;
|
||||
}> | Extract<TSESTree.UsingInNomalConextDeclaration, {
|
||||
type: NodeType;
|
||||
}> | Extract<TSESTree.LetOrConstOrVarDeclarator, {
|
||||
type: NodeType;
|
||||
}> | Extract<TSESTree.UsingInForOfDeclarator, {
|
||||
type: NodeType;
|
||||
}> | Extract<TSESTree.UsingInNomalConextDeclarator, {
|
||||
type: NodeType;
|
||||
}> | Extract<TSESTree.WhileStatement, {
|
||||
type: NodeType;
|
||||
|
|
@ -754,9 +762,17 @@ export declare const isNodeOfTypes: <NodeTypes extends readonly AST_NODE_TYPES[]
|
|||
type: NodeTypes[number];
|
||||
}> | Extract<TSESTree.UpdateExpression, {
|
||||
type: NodeTypes[number];
|
||||
}> | Extract<TSESTree.VariableDeclaration, {
|
||||
}> | Extract<TSESTree.LetOrConstOrVarDeclaration, {
|
||||
type: NodeTypes[number];
|
||||
}> | Extract<TSESTree.VariableDeclarator, {
|
||||
}> | Extract<TSESTree.UsingInForOfDeclaration, {
|
||||
type: NodeTypes[number];
|
||||
}> | Extract<TSESTree.UsingInNomalConextDeclaration, {
|
||||
type: NodeTypes[number];
|
||||
}> | Extract<TSESTree.LetOrConstOrVarDeclarator, {
|
||||
type: NodeTypes[number];
|
||||
}> | Extract<TSESTree.UsingInForOfDeclarator, {
|
||||
type: NodeTypes[number];
|
||||
}> | Extract<TSESTree.UsingInNomalConextDeclarator, {
|
||||
type: NodeTypes[number];
|
||||
}> | Extract<TSESTree.WhileStatement, {
|
||||
type: NodeTypes[number];
|
||||
|
|
@ -1137,9 +1153,17 @@ export declare const isNodeOfTypeWithConditions: <NodeType extends AST_NODE_TYPE
|
|||
type: NodeType;
|
||||
}> | Extract<TSESTree.UpdateExpression, {
|
||||
type: NodeType;
|
||||
}> | Extract<TSESTree.VariableDeclaration, {
|
||||
}> | Extract<TSESTree.LetOrConstOrVarDeclaration, {
|
||||
type: NodeType;
|
||||
}> | Extract<TSESTree.VariableDeclarator, {
|
||||
}> | Extract<TSESTree.UsingInForOfDeclaration, {
|
||||
type: NodeType;
|
||||
}> | Extract<TSESTree.UsingInNomalConextDeclaration, {
|
||||
type: NodeType;
|
||||
}> | Extract<TSESTree.LetOrConstOrVarDeclarator, {
|
||||
type: NodeType;
|
||||
}> | Extract<TSESTree.UsingInForOfDeclarator, {
|
||||
type: NodeType;
|
||||
}> | Extract<TSESTree.UsingInNomalConextDeclarator, {
|
||||
type: NodeType;
|
||||
}> | Extract<TSESTree.WhileStatement, {
|
||||
type: NodeType;
|
||||
|
|
|
|||
2
node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.d.ts.map
generated
vendored
2
node_modules/@typescript-eslint/utils/dist/ast-utils/helpers.d.ts.map
generated
vendored
|
|
@ -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,kEAGf,SAAS,IAAI,GAAG,IAAI,GAAG,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEf,CAAC;AAE5B,eAAO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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEC,CAAC;AAE5C,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qGAQ/B,SAAS,IAAI,GAAG,IAAI,GAAG,SAAS,uCASvC,CAAC;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;6DAQ/B,SAAS,KAAK,GAAG,IAAI,GAAG,SAAS,yCAWzC,CAAC;AAEF,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;yGAShC,SAAS,KAAK,GAAG,IAAI,GAAG,SAAS,m0BAGkB,CAAC"}
|
||||
2
node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.d.ts
generated
vendored
2
node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.d.ts
generated
vendored
|
|
@ -25,7 +25,7 @@ declare const isLogicalOrOperator: (node: TSESTree.Node | null | undefined) => n
|
|||
* ```
|
||||
*/
|
||||
declare const isTypeAssertion: (node: TSESTree.Node | null | undefined) => node is TSESTree.TSAsExpression | TSESTree.TSTypeAssertion;
|
||||
declare const isVariableDeclarator: (node: TSESTree.Node | null | undefined) => node is TSESTree.VariableDeclarator;
|
||||
declare const isVariableDeclarator: (node: TSESTree.Node | null | undefined) => node is TSESTree.LetOrConstOrVarDeclarator | TSESTree.UsingInForOfDeclarator | TSESTree.UsingInNomalConextDeclarator;
|
||||
declare const isFunction: (node: TSESTree.Node | null | undefined) => node is TSESTree.ArrowFunctionExpression | TSESTree.FunctionDeclarationWithName | TSESTree.FunctionDeclarationWithOptionalName | TSESTree.FunctionExpression;
|
||||
declare const isFunctionType: (node: TSESTree.Node | null | undefined) => node is TSESTree.TSCallSignatureDeclaration | TSESTree.TSConstructorType | TSESTree.TSConstructSignatureDeclaration | TSESTree.TSEmptyBodyFunctionExpression | TSESTree.TSFunctionType | TSESTree.TSMethodSignatureComputedName | TSESTree.TSMethodSignatureNonComputedName;
|
||||
declare const isFunctionOrFunctionType: (node: TSESTree.Node | null | undefined) => node is TSESTree.ArrowFunctionExpression | TSESTree.FunctionDeclarationWithName | TSESTree.FunctionDeclarationWithOptionalName | TSESTree.FunctionExpression | TSESTree.TSCallSignatureDeclaration | TSESTree.TSConstructorType | TSESTree.TSConstructSignatureDeclaration | TSESTree.TSEmptyBodyFunctionExpression | TSESTree.TSFunctionType | TSESTree.TSMethodSignatureComputedName | TSESTree.TSMethodSignatureNonComputedName;
|
||||
|
|
|
|||
2
node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.d.ts.map
generated
vendored
2
node_modules/@typescript-eslint/utils/dist/ast-utils/predicates.d.ts.map
generated
vendored
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"predicates.d.ts","sourceRoot":"","sources":["../../src/ast-utils/predicates.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAU7C,QAAA,MAAM,yBAAyB;;4BAG9B,CAAC;AAEF,QAAA,MAAM,4BAA4B,gYAGjC,CAAC;AAEF,QAAA,MAAM,4BAA4B;;4BAGjC,CAAC;AAEF,QAAA,MAAM,+BAA+B,gYAGpC,CAAC;AAEF;;GAEG;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,QAAA,MAAM,aAAa;;4BAEjB,CAAC;AAEH;;GAEG;AACH,QAAA,MAAM,eAAe;;yBAEnB,CAAC;AAEH,QAAA,MAAM,MAAM,qLAMD,CAAC;AAEZ,OAAO,EACL,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,oBAAoB,EACpB,UAAU,EACV,wBAAwB,EACxB,cAAc,EACd,YAAY,EACZ,eAAe,EACf,MAAM,EACN,mBAAmB,EACnB,4BAA4B,EAC5B,+BAA+B,EAC/B,4BAA4B,EAC5B,yBAAyB,EACzB,wBAAwB,EACxB,QAAQ,EACR,mBAAmB,EACnB,gBAAgB,EAChB,eAAe,EACf,aAAa,EACb,oBAAoB,GACrB,CAAC"}
|
||||
12
node_modules/@typescript-eslint/utils/package.json
generated
vendored
12
node_modules/@typescript-eslint/utils/package.json
generated
vendored
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@typescript-eslint/utils",
|
||||
"version": "6.4.1",
|
||||
"version": "6.5.0",
|
||||
"description": "Utilities for working with TypeScript + ESLint together",
|
||||
"files": [
|
||||
"dist",
|
||||
|
|
@ -68,16 +68,16 @@
|
|||
"@eslint-community/eslint-utils": "^4.4.0",
|
||||
"@types/json-schema": "^7.0.12",
|
||||
"@types/semver": "^7.5.0",
|
||||
"@typescript-eslint/scope-manager": "6.4.1",
|
||||
"@typescript-eslint/types": "6.4.1",
|
||||
"@typescript-eslint/typescript-estree": "6.4.1",
|
||||
"@typescript-eslint/scope-manager": "6.5.0",
|
||||
"@typescript-eslint/types": "6.5.0",
|
||||
"@typescript-eslint/typescript-estree": "6.5.0",
|
||||
"semver": "^7.5.4"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"eslint": "^7.0.0 || ^8.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@typescript-eslint/parser": "6.4.1",
|
||||
"@typescript-eslint/parser": "6.5.0",
|
||||
"downlevel-dts": "*",
|
||||
"jest": "29.6.2",
|
||||
"prettier": "^2.8.4",
|
||||
|
|
@ -95,5 +95,5 @@
|
|||
]
|
||||
}
|
||||
},
|
||||
"gitHead": "ef1367eeed112fd6bbb94e0c9bd56d7e167a1a59"
|
||||
"gitHead": "4f34d0ba34474926ba1eed623704b583a037f886"
|
||||
}
|
||||
|
|
|
|||
6
node_modules/@typescript-eslint/visitor-keys/package.json
generated
vendored
6
node_modules/@typescript-eslint/visitor-keys/package.json
generated
vendored
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@typescript-eslint/visitor-keys",
|
||||
"version": "6.4.1",
|
||||
"version": "6.5.0",
|
||||
"description": "Visitor keys used to help traverse the TypeScript-ESTree AST",
|
||||
"files": [
|
||||
"dist",
|
||||
|
|
@ -45,7 +45,7 @@
|
|||
"typecheck": "tsc -p tsconfig.json --noEmit"
|
||||
},
|
||||
"dependencies": {
|
||||
"@typescript-eslint/types": "6.4.1",
|
||||
"@typescript-eslint/types": "6.5.0",
|
||||
"eslint-visitor-keys": "^3.4.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
@ -67,5 +67,5 @@
|
|||
]
|
||||
}
|
||||
},
|
||||
"gitHead": "ef1367eeed112fd6bbb94e0c9bd56d7e167a1a59"
|
||||
"gitHead": "4f34d0ba34474926ba1eed623704b583a037f886"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue