Merge pull request #2498 from github/dependabot/npm_and_yarn/npm-9874b37b58
Bump the npm group with 4 updates
This commit is contained in:
commit
f861efb2b3
70 changed files with 733 additions and 308 deletions
91
node_modules/.package-lock.json
generated
vendored
91
node_modules/.package-lock.json
generated
vendored
|
|
@ -455,9 +455,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@eslint/js": {
|
||||
"version": "9.10.0",
|
||||
"resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.10.0.tgz",
|
||||
"integrity": "sha512-fuXtbiP5GWIn8Fz+LWoOMVf/Jxm+aajZYkhi6CuEm4SxymFM+eUWzbO9qXT+L0iCkL5+KGYMCSGxo686H19S1g==",
|
||||
"version": "9.11.0",
|
||||
"resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.11.0.tgz",
|
||||
"integrity": "sha512-LPkkenkDqyzTFauZLLAPhIb48fj6drrfMvRGSL9tS3AcZBSVTllemLSNyCvHNNL2t797S/6DJNSIwRwXgMO/eQ==",
|
||||
"dev": true,
|
||||
"engines": {
|
||||
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
||||
|
|
@ -949,16 +949,16 @@
|
|||
"license": "MIT"
|
||||
},
|
||||
"node_modules/@typescript-eslint/eslint-plugin": {
|
||||
"version": "8.6.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.6.0.tgz",
|
||||
"integrity": "sha512-UOaz/wFowmoh2G6Mr9gw60B1mm0MzUtm6Ic8G2yM1Le6gyj5Loi/N+O5mocugRGY+8OeeKmkMmbxNqUCq3B4Sg==",
|
||||
"version": "8.7.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.7.0.tgz",
|
||||
"integrity": "sha512-RIHOoznhA3CCfSTFiB6kBGLQtB/sox+pJ6jeFu6FxJvqL8qRxq/FfGO/UhsGgQM9oGdXkV4xUgli+dt26biB6A==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"@eslint-community/regexpp": "^4.10.0",
|
||||
"@typescript-eslint/scope-manager": "8.6.0",
|
||||
"@typescript-eslint/type-utils": "8.6.0",
|
||||
"@typescript-eslint/utils": "8.6.0",
|
||||
"@typescript-eslint/visitor-keys": "8.6.0",
|
||||
"@typescript-eslint/scope-manager": "8.7.0",
|
||||
"@typescript-eslint/type-utils": "8.7.0",
|
||||
"@typescript-eslint/utils": "8.7.0",
|
||||
"@typescript-eslint/visitor-keys": "8.7.0",
|
||||
"graphemer": "^1.4.0",
|
||||
"ignore": "^5.3.1",
|
||||
"natural-compare": "^1.4.0",
|
||||
|
|
@ -982,15 +982,15 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/parser": {
|
||||
"version": "8.6.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.6.0.tgz",
|
||||
"integrity": "sha512-eQcbCuA2Vmw45iGfcyG4y6rS7BhWfz9MQuk409WD47qMM+bKCGQWXxvoOs1DUp+T7UBMTtRTVT+kXr7Sh4O9Ow==",
|
||||
"version": "8.7.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.7.0.tgz",
|
||||
"integrity": "sha512-lN0btVpj2unxHlNYLI//BQ7nzbMJYBVQX5+pbNXvGYazdlgYonMn4AhhHifQ+J4fGRYA/m1DjaQjx+fDetqBOQ==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"@typescript-eslint/scope-manager": "8.6.0",
|
||||
"@typescript-eslint/types": "8.6.0",
|
||||
"@typescript-eslint/typescript-estree": "8.6.0",
|
||||
"@typescript-eslint/visitor-keys": "8.6.0",
|
||||
"@typescript-eslint/scope-manager": "8.7.0",
|
||||
"@typescript-eslint/types": "8.7.0",
|
||||
"@typescript-eslint/typescript-estree": "8.7.0",
|
||||
"@typescript-eslint/visitor-keys": "8.7.0",
|
||||
"debug": "^4.3.4"
|
||||
},
|
||||
"engines": {
|
||||
|
|
@ -1010,13 +1010,13 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/scope-manager": {
|
||||
"version": "8.6.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.6.0.tgz",
|
||||
"integrity": "sha512-ZuoutoS5y9UOxKvpc/GkvF4cuEmpokda4wRg64JEia27wX+PysIE9q+lzDtlHHgblwUWwo5/Qn+/WyTUvDwBHw==",
|
||||
"version": "8.7.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.7.0.tgz",
|
||||
"integrity": "sha512-87rC0k3ZlDOuz82zzXRtQ7Akv3GKhHs0ti4YcbAJtaomllXoSO8hi7Ix3ccEvCd824dy9aIX+j3d2UMAfCtVpg==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"@typescript-eslint/types": "8.6.0",
|
||||
"@typescript-eslint/visitor-keys": "8.6.0"
|
||||
"@typescript-eslint/types": "8.7.0",
|
||||
"@typescript-eslint/visitor-keys": "8.7.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
||||
|
|
@ -1027,13 +1027,13 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/type-utils": {
|
||||
"version": "8.6.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.6.0.tgz",
|
||||
"integrity": "sha512-dtePl4gsuenXVwC7dVNlb4mGDcKjDT/Ropsk4za/ouMBPplCLyznIaR+W65mvCvsyS97dymoBRrioEXI7k0XIg==",
|
||||
"version": "8.7.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.7.0.tgz",
|
||||
"integrity": "sha512-tl0N0Mj3hMSkEYhLkjREp54OSb/FI6qyCzfiiclvJvOqre6hsZTGSnHtmFLDU8TIM62G7ygEa1bI08lcuRwEnQ==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"@typescript-eslint/typescript-estree": "8.6.0",
|
||||
"@typescript-eslint/utils": "8.6.0",
|
||||
"@typescript-eslint/typescript-estree": "8.7.0",
|
||||
"@typescript-eslint/utils": "8.7.0",
|
||||
"debug": "^4.3.4",
|
||||
"ts-api-utils": "^1.3.0"
|
||||
},
|
||||
|
|
@ -1051,9 +1051,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/types": {
|
||||
"version": "8.6.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.6.0.tgz",
|
||||
"integrity": "sha512-rojqFZGd4MQxw33SrOy09qIDS8WEldM8JWtKQLAjf/X5mGSeEFh5ixQlxssMNyPslVIk9yzWqXCsV2eFhYrYUw==",
|
||||
"version": "8.7.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.7.0.tgz",
|
||||
"integrity": "sha512-LLt4BLHFwSfASHSF2K29SZ+ZCsbQOM+LuarPjRUuHm+Qd09hSe3GCeaQbcCr+Mik+0QFRmep/FyZBO6fJ64U3w==",
|
||||
"dev": true,
|
||||
"engines": {
|
||||
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
||||
|
|
@ -1064,13 +1064,13 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/typescript-estree": {
|
||||
"version": "8.6.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.6.0.tgz",
|
||||
"integrity": "sha512-MOVAzsKJIPIlLK239l5s06YXjNqpKTVhBVDnqUumQJja5+Y94V3+4VUFRA0G60y2jNnTVwRCkhyGQpavfsbq/g==",
|
||||
"version": "8.7.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.7.0.tgz",
|
||||
"integrity": "sha512-MC8nmcGHsmfAKxwnluTQpNqceniT8SteVwd2voYlmiSWGOtjvGXdPl17dYu2797GVscK30Z04WRM28CrKS9WOg==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"@typescript-eslint/types": "8.6.0",
|
||||
"@typescript-eslint/visitor-keys": "8.6.0",
|
||||
"@typescript-eslint/types": "8.7.0",
|
||||
"@typescript-eslint/visitor-keys": "8.7.0",
|
||||
"debug": "^4.3.4",
|
||||
"fast-glob": "^3.3.2",
|
||||
"is-glob": "^4.0.3",
|
||||
|
|
@ -1116,15 +1116,15 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/utils": {
|
||||
"version": "8.6.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.6.0.tgz",
|
||||
"integrity": "sha512-eNp9cWnYf36NaOVjkEUznf6fEgVy1TWpE0o52e4wtojjBx7D1UV2WAWGzR+8Y5lVFtpMLPwNbC67T83DWSph4A==",
|
||||
"version": "8.7.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.7.0.tgz",
|
||||
"integrity": "sha512-ZbdUdwsl2X/s3CiyAu3gOlfQzpbuG3nTWKPoIvAu1pu5r8viiJvv2NPN2AqArL35NCYtw/lrPPfM4gxrMLNLPw==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"@eslint-community/eslint-utils": "^4.4.0",
|
||||
"@typescript-eslint/scope-manager": "8.6.0",
|
||||
"@typescript-eslint/types": "8.6.0",
|
||||
"@typescript-eslint/typescript-estree": "8.6.0"
|
||||
"@typescript-eslint/scope-manager": "8.7.0",
|
||||
"@typescript-eslint/types": "8.7.0",
|
||||
"@typescript-eslint/typescript-estree": "8.7.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
||||
|
|
@ -1138,12 +1138,12 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/visitor-keys": {
|
||||
"version": "8.6.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.6.0.tgz",
|
||||
"integrity": "sha512-wapVFfZg9H0qOYh4grNVQiMklJGluQrOUiOhYRrQWhx7BY/+I1IYb8BczWNbbUpO+pqy0rDciv3lQH5E1bCLrg==",
|
||||
"version": "8.7.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.7.0.tgz",
|
||||
"integrity": "sha512-b1tx0orFCCh/THWPQa2ZwWzvOeyzzp36vkJYOpVg0u8UVOIsfVrnuC9FqAw9gRKn+rG2VmWQ/zDJZzkxUnj/XQ==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"@typescript-eslint/types": "8.6.0",
|
||||
"@typescript-eslint/types": "8.7.0",
|
||||
"eslint-visitor-keys": "^3.4.3"
|
||||
},
|
||||
"engines": {
|
||||
|
|
@ -2770,7 +2770,6 @@
|
|||
"resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.29.1.tgz",
|
||||
"integrity": "sha512-BbPC0cuExzhiMo4Ff1BTVwHpjjv28C5R+btTOGaCRC7UEz801up0JadwkeSk5Ued6TG34uaczuVuH6qyy5YUxw==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"array-includes": "^3.1.7",
|
||||
"array.prototype.findlastindex": "^1.2.3",
|
||||
|
|
|
|||
2
node_modules/@eslint/js/package.json
generated
vendored
2
node_modules/@eslint/js/package.json
generated
vendored
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@eslint/js",
|
||||
"version": "9.10.0",
|
||||
"version": "9.11.0",
|
||||
"description": "ESLint JavaScript language implementation",
|
||||
"main": "./src/index.js",
|
||||
"scripts": {},
|
||||
|
|
|
|||
|
|
@ -79,8 +79,7 @@ exports.default = (0, util_1.createRule)({
|
|||
function excludeAssignedProperty(node) {
|
||||
if ((0, util_1.isAssignee)(node)) {
|
||||
const { excludeSet } = propertiesInfoStack[propertiesInfoStack.length - 1];
|
||||
const name = (0, util_1.getStaticStringValue)(node.property) ??
|
||||
context.sourceCode.getText(node.property);
|
||||
const name = (0, util_1.getStaticMemberAccessValue)(node, context);
|
||||
if (name) {
|
||||
excludeSet.add(name);
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-methods-use-this.js
generated
vendored
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/class-methods-use-this.js
generated
vendored
|
|
@ -121,7 +121,7 @@ exports.default = (0, util_1.createRule)({
|
|||
}
|
||||
const hashIfNeeded = node.key.type === utils_1.AST_NODE_TYPES.PrivateIdentifier ? '#' : '';
|
||||
const name = (0, util_1.getStaticMemberAccessValue)(node, context);
|
||||
return !exceptMethods.has(hashIfNeeded + (name ?? ''));
|
||||
return (typeof name !== 'string' || !exceptMethods.has(hashIfNeeded + name));
|
||||
}
|
||||
/**
|
||||
* Checks if we are leaving a function that is a method, and reports if 'this' has not been used.
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"class-methods-use-this.js","sourceRoot":"","sources":["../../src/rules/class-methods-use-this.ts"],"names":[],"mappings":";;AACA,oDAA0D;AAE1D,kCAKiB;AAYjB,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,wBAAwB;IAC9B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,2CAA2C;YACxD,eAAe,EAAE,IAAI;YACrB,oBAAoB,EAAE,KAAK;SAC5B;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,aAAa,EAAE;wBACb,IAAI,EAAE,OAAO;wBACb,WAAW,EACT,4DAA4D;wBAC9D,KAAK,EAAE;4BACL,IAAI,EAAE,QAAQ;yBACf;qBACF;oBACD,qBAAqB,EAAE;wBACrB,IAAI,EAAE,SAAS;wBACf,WAAW,EACT,4EAA4E;wBAC9E,OAAO,EAAE,IAAI;qBACd;oBACD,qBAAqB,EAAE;wBACrB,IAAI,EAAE,SAAS;wBACf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AAa,CAAC,IAAI,CAAC,CAAC;oBACtB,CAAC;oBACD,yDAAyD,CACvD,IAAsC;wBAEtC,YAAY,CAAC,IAAI,CAAC,CAAC;oBACrB,CAAC;iBACF;gBACH,CAAC,CAAC,EAAE,CAAC;YAEP;;eAEG;YACH,iCAAiC;gBAC/B,WAAW,EAAE,CAAC;YAChB,CAAC;YACD,yBAAyB;gBACvB,UAAU,EAAE,CAAC;YACf,CAAC;YAED;;;;;eAKG;YACH,WAAW;gBACT,WAAW,EAAE,CAAC;YAChB,CAAC;YACD,kBAAkB;gBAChB,UAAU,EAAE,CAAC;YACf,CAAC;YAED,uBAAuB;gBACrB,IAAI,KAAK,EAAE,CAAC;oBACV,KAAK,CAAC,QAAQ,GAAG,IAAI,CAAC;gBACxB,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
||||
{"version":3,"file":"class-methods-use-this.js","sourceRoot":"","sources":["../../src/rules/class-methods-use-this.ts"],"names":[],"mappings":";;AACA,oDAA0D;AAE1D,kCAKiB;AAYjB,kBAAe,IAAA,iBAAU,EAAsB;IAC7C,IAAI,EAAE,wBAAwB;IAC9B,IAAI,EAAE;QACJ,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,2CAA2C;YACxD,eAAe,EAAE,IAAI;YACrB,oBAAoB,EAAE,KAAK;SAC5B;QACD,MAAM,EAAE;YACN;gBACE,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,aAAa,EAAE;wBACb,IAAI,EAAE,OAAO;wBACb,WAAW,EACT,4DAA4D;wBAC9D,KAAK,EAAE;4BACL,IAAI,EAAE,QAAQ;yBACf;qBACF;oBACD,qBAAqB,EAAE;wBACrB,IAAI,EAAE,SAAS;wBACf,WAAW,EACT,4EAA4E;wBAC9E,OAAO,EAAE,IAAI;qBACd;oBACD,qBAAqB,EAAE;wBACrB,IAAI,EAAE,SAAS;wBACf,WAAW,EAAE,oDAAoD;qBAClE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,IAAI,CAAC,CAAC;oBACtB,CAAC;oBACD,yDAAyD,CACvD,IAAsC;wBAEtC,YAAY,CAAC,IAAI,CAAC,CAAC;oBACrB,CAAC;iBACF;gBACH,CAAC,CAAC,EAAE,CAAC;YAEP;;eAEG;YACH,iCAAiC;gBAC/B,WAAW,EAAE,CAAC;YAChB,CAAC;YACD,yBAAyB;gBACvB,UAAU,EAAE,CAAC;YACf,CAAC;YAED;;;;;eAKG;YACH,WAAW;gBACT,WAAW,EAAE,CAAC;YAChB,CAAC;YACD,kBAAkB;gBAChB,UAAU,EAAE,CAAC;YACf,CAAC;YAED,uBAAuB;gBACrB,IAAI,KAAK,EAAE,CAAC;oBACV,KAAK,CAAC,QAAQ,GAAG,IAAI,CAAC;gBACxB,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
||||
96
node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-exports.js
generated
vendored
96
node_modules/@typescript-eslint/eslint-plugin/dist/rules/consistent-type-exports.js
generated
vendored
|
|
@ -1,7 +1,31 @@
|
|||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
||||
}) : function(o, v) {
|
||||
o["default"] = v;
|
||||
});
|
||||
var __importStar = (this && this.__importStar) || function (mod) {
|
||||
if (mod && mod.__esModule) return mod;
|
||||
var result = {};
|
||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||
__setModuleDefault(result, mod);
|
||||
return result;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const utils_1 = require("@typescript-eslint/utils");
|
||||
const typescript_1 = require("typescript");
|
||||
const tsutils = __importStar(require("ts-api-utils"));
|
||||
const ts = __importStar(require("typescript"));
|
||||
const util_1 = require("../util");
|
||||
exports.default = (0, util_1.createRule)({
|
||||
name: 'consistent-type-exports',
|
||||
|
|
@ -38,27 +62,79 @@ exports.default = (0, util_1.createRule)({
|
|||
create(context, [{ fixMixedExportsWithInlineTypeSpecifier }]) {
|
||||
const sourceExportsMap = {};
|
||||
const services = (0, util_1.getParserServices)(context);
|
||||
const checker = services.program.getTypeChecker();
|
||||
/**
|
||||
* Helper for identifying if an export specifier resolves to a
|
||||
* Helper for identifying if a symbol resolves to a
|
||||
* JavaScript value or a TypeScript type.
|
||||
*
|
||||
* @returns True/false if is a type or not, or undefined if the specifier
|
||||
* can't be resolved.
|
||||
*/
|
||||
function isSpecifierTypeBased(specifier) {
|
||||
const checker = services.program.getTypeChecker();
|
||||
const symbol = services.getSymbolAtLocation(specifier.exported);
|
||||
function isSymbolTypeBased(symbol) {
|
||||
if (!symbol) {
|
||||
return undefined;
|
||||
}
|
||||
const aliasedSymbol = checker.getAliasedSymbol(symbol);
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-enum-comparison
|
||||
if (aliasedSymbol.escapedName === 'unknown') {
|
||||
const aliasedSymbol = tsutils.isSymbolFlagSet(symbol, ts.SymbolFlags.Alias)
|
||||
? checker.getAliasedSymbol(symbol)
|
||||
: symbol;
|
||||
if (checker.isUnknownSymbol(aliasedSymbol)) {
|
||||
return undefined;
|
||||
}
|
||||
return !(aliasedSymbol.flags & typescript_1.SymbolFlags.Value);
|
||||
return !(aliasedSymbol.flags & ts.SymbolFlags.Value);
|
||||
}
|
||||
return {
|
||||
ExportAllDeclaration(node) {
|
||||
if (node.exportKind === 'type') {
|
||||
return;
|
||||
}
|
||||
const sourceModule = ts.resolveModuleName(node.source.value, context.filename, services.program.getCompilerOptions(), ts.sys);
|
||||
if (sourceModule.resolvedModule == null) {
|
||||
return;
|
||||
}
|
||||
const sourceFile = services.program.getSourceFile(sourceModule.resolvedModule.resolvedFileName);
|
||||
if (sourceFile == null) {
|
||||
return;
|
||||
}
|
||||
const sourceFileSymbol = checker.getSymbolAtLocation(sourceFile);
|
||||
if (sourceFileSymbol == null) {
|
||||
return;
|
||||
}
|
||||
const sourceFileType = checker.getTypeOfSymbol(sourceFileSymbol);
|
||||
// Module can explicitly export types or values, and it's not difficult
|
||||
// to distinguish one from the other, since we can get the flags of
|
||||
// the exported symbols or check if symbol export declaration has
|
||||
// the "type" keyword in it.
|
||||
//
|
||||
// Things get a lot more complicated when we're dealing with
|
||||
// export * from './module-with-type-only-exports'
|
||||
// export type * from './module-with-type-and-value-exports'
|
||||
//
|
||||
// TS checker has an internal function getExportsOfModuleWorker that
|
||||
// recursively visits all module exports, including "export *". It then
|
||||
// puts type-only-star-exported symbols into the typeOnlyExportStarMap
|
||||
// property of sourceFile's SymbolLinks. Since symbol links aren't
|
||||
// exposed outside the checker, we cannot access it directly.
|
||||
//
|
||||
// Therefore, to filter out value properties, we use the following hack:
|
||||
// checker.getPropertiesOfType returns all exports that were originally
|
||||
// values, but checker.getPropertyOfType returns undefined for
|
||||
// properties that are mentioned in the typeOnlyExportStarMap.
|
||||
const isThereAnyExportedValue = checker
|
||||
.getPropertiesOfType(sourceFileType)
|
||||
.some(propertyTypeSymbol => checker.getPropertyOfType(sourceFileType, propertyTypeSymbol.escapedName.toString()) != null);
|
||||
if (isThereAnyExportedValue) {
|
||||
return;
|
||||
}
|
||||
context.report({
|
||||
node,
|
||||
messageId: 'typeOverValue',
|
||||
fix(fixer) {
|
||||
const asteriskToken = (0, util_1.nullThrows)(context.sourceCode.getFirstToken(node, token => token.type === utils_1.AST_TOKEN_TYPES.Punctuator &&
|
||||
token.value === '*'), util_1.NullThrowsReasons.MissingToken('asterisk', 'export all declaration'));
|
||||
return fixer.insertTextBefore(asteriskToken, 'type ');
|
||||
},
|
||||
});
|
||||
},
|
||||
ExportNamedDeclaration(node) {
|
||||
// Coerce the source into a string for use as a lookup entry.
|
||||
const source = getSourceFromExport(node) ?? 'undefined';
|
||||
|
|
@ -93,7 +169,7 @@ exports.default = (0, util_1.createRule)({
|
|||
inlineTypeSpecifiers.push(specifier);
|
||||
continue;
|
||||
}
|
||||
const isTypeBased = isSpecifierTypeBased(specifier);
|
||||
const isTypeBased = isSymbolTypeBased(services.getSymbolAtLocation(specifier.exported));
|
||||
if (isTypeBased === true) {
|
||||
typeBasedSpecifiers.push(specifier);
|
||||
}
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
125
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-non-null-assertion.js
generated
vendored
125
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-confusing-non-null-assertion.js
generated
vendored
|
|
@ -2,6 +2,16 @@
|
|||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const utils_1 = require("@typescript-eslint/utils");
|
||||
const util_1 = require("../util");
|
||||
const confusingOperators = new Set([
|
||||
'=',
|
||||
'==',
|
||||
'===',
|
||||
'in',
|
||||
'instanceof',
|
||||
]);
|
||||
function isConfusingOperator(operator) {
|
||||
return confusingOperators.has(operator);
|
||||
}
|
||||
exports.default = (0, util_1.createRule)({
|
||||
name: 'no-confusing-non-null-assertion',
|
||||
meta: {
|
||||
|
|
@ -12,57 +22,108 @@ exports.default = (0, util_1.createRule)({
|
|||
},
|
||||
hasSuggestions: true,
|
||||
messages: {
|
||||
confusingEqual: 'Confusing combinations of non-null assertion and equal test like "a! == b", which looks very similar to not equal "a !== b".',
|
||||
confusingAssign: 'Confusing combinations of non-null assertion and equal test like "a! = b", which looks very similar to not equal "a != b".',
|
||||
notNeedInEqualTest: 'Unnecessary non-null assertion (!) in equal test.',
|
||||
notNeedInAssign: 'Unnecessary non-null assertion (!) in assignment left hand.',
|
||||
wrapUpLeft: 'Wrap up left hand to avoid putting non-null assertion "!" and "=" together.',
|
||||
confusingEqual: 'Confusing combination of non-null assertion and equality test like `a! == b`, which looks very similar to `a !== b`.',
|
||||
confusingAssign: 'Confusing combination of non-null assertion and assignment like `a! = b`, which looks very similar to `a != b`.',
|
||||
confusingOperator: 'Confusing combination of non-null assertion and `{{operator}}` operator like `a! {{operator}} b`, which might be misinterpreted as `!(a {{operator}} b)`.',
|
||||
notNeedInEqualTest: 'Remove unnecessary non-null assertion (!) in equality test.',
|
||||
notNeedInAssign: 'Remove unnecessary non-null assertion (!) in assignment left-hand side.',
|
||||
notNeedInOperator: 'Remove possibly unnecessary non-null assertion (!) in the left operand of the `{{operator}}` operator.',
|
||||
wrapUpLeft: 'Wrap the left-hand side in parentheses to avoid confusion with "{{operator}}" operator.',
|
||||
},
|
||||
schema: [],
|
||||
},
|
||||
defaultOptions: [],
|
||||
create(context) {
|
||||
function confusingOperatorToMessageData(operator) {
|
||||
switch (operator) {
|
||||
case '=':
|
||||
return {
|
||||
messageId: 'confusingAssign',
|
||||
};
|
||||
case '==':
|
||||
case '===':
|
||||
return {
|
||||
messageId: 'confusingEqual',
|
||||
};
|
||||
case 'in':
|
||||
case 'instanceof':
|
||||
return {
|
||||
messageId: 'confusingOperator',
|
||||
data: { operator },
|
||||
};
|
||||
// istanbul ignore next
|
||||
default:
|
||||
operator;
|
||||
throw new Error(`Unexpected operator ${operator}`);
|
||||
}
|
||||
}
|
||||
return {
|
||||
'BinaryExpression, AssignmentExpression'(node) {
|
||||
function isLeftHandPrimaryExpression(node) {
|
||||
return node.type === utils_1.AST_NODE_TYPES.TSNonNullExpression;
|
||||
}
|
||||
if (node.operator === '==' ||
|
||||
node.operator === '===' ||
|
||||
node.operator === '=') {
|
||||
const isAssign = node.operator === '=';
|
||||
const operator = node.operator;
|
||||
if (isConfusingOperator(operator)) {
|
||||
// Look for a non-null assertion as the last token on the left hand side.
|
||||
// That way, we catch things like `1 + two! === 3`, even though the left
|
||||
// hand side isn't a non-null assertion AST node.
|
||||
const leftHandFinalToken = context.sourceCode.getLastToken(node.left);
|
||||
const tokenAfterLeft = context.sourceCode.getTokenAfter(node.left);
|
||||
if (leftHandFinalToken?.type === utils_1.AST_TOKEN_TYPES.Punctuator &&
|
||||
leftHandFinalToken.value === '!' &&
|
||||
tokenAfterLeft?.value !== ')') {
|
||||
if (isLeftHandPrimaryExpression(node.left)) {
|
||||
if (node.left.type === utils_1.AST_NODE_TYPES.TSNonNullExpression) {
|
||||
let suggestions;
|
||||
switch (operator) {
|
||||
case '=':
|
||||
suggestions = [
|
||||
{
|
||||
messageId: 'notNeedInAssign',
|
||||
fix: (fixer) => fixer.remove(leftHandFinalToken),
|
||||
},
|
||||
];
|
||||
break;
|
||||
case '==':
|
||||
case '===':
|
||||
suggestions = [
|
||||
{
|
||||
messageId: 'notNeedInEqualTest',
|
||||
fix: (fixer) => fixer.remove(leftHandFinalToken),
|
||||
},
|
||||
];
|
||||
break;
|
||||
case 'in':
|
||||
case 'instanceof':
|
||||
suggestions = [
|
||||
{
|
||||
messageId: 'notNeedInOperator',
|
||||
data: { operator },
|
||||
fix: (fixer) => fixer.remove(leftHandFinalToken),
|
||||
},
|
||||
{
|
||||
messageId: 'wrapUpLeft',
|
||||
data: { operator },
|
||||
fix: wrapUpLeftFixer(node),
|
||||
},
|
||||
];
|
||||
break;
|
||||
// istanbul ignore next
|
||||
default:
|
||||
operator;
|
||||
return;
|
||||
}
|
||||
context.report({
|
||||
node,
|
||||
messageId: isAssign ? 'confusingAssign' : 'confusingEqual',
|
||||
suggest: [
|
||||
{
|
||||
messageId: isAssign
|
||||
? 'notNeedInAssign'
|
||||
: 'notNeedInEqualTest',
|
||||
fix: (fixer) => [
|
||||
fixer.remove(leftHandFinalToken),
|
||||
],
|
||||
},
|
||||
],
|
||||
...confusingOperatorToMessageData(operator),
|
||||
suggest: suggestions,
|
||||
});
|
||||
}
|
||||
else {
|
||||
context.report({
|
||||
node,
|
||||
messageId: isAssign ? 'confusingAssign' : 'confusingEqual',
|
||||
...confusingOperatorToMessageData(operator),
|
||||
suggest: [
|
||||
{
|
||||
messageId: 'wrapUpLeft',
|
||||
fix: (fixer) => [
|
||||
fixer.insertTextBefore(node.left, '('),
|
||||
fixer.insertTextAfter(node.left, ')'),
|
||||
],
|
||||
data: { operator },
|
||||
fix: wrapUpLeftFixer(node),
|
||||
},
|
||||
],
|
||||
});
|
||||
|
|
@ -73,4 +134,10 @@ exports.default = (0, util_1.createRule)({
|
|||
};
|
||||
},
|
||||
});
|
||||
function wrapUpLeftFixer(node) {
|
||||
return (fixer) => [
|
||||
fixer.insertTextBefore(node.left, '('),
|
||||
fixer.insertTextAfter(node.left, ')'),
|
||||
];
|
||||
}
|
||||
//# sourceMappingURL=no-confusing-non-null-assertion.js.map
|
||||
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"no-confusing-non-null-assertion.js","sourceRoot":"","sources":["../../src/rules/no-confusing-non-null-assertion.ts"],"names":[],"mappings":";;AACA,oDAA2E;AAE3E,kCAAqC;AAErC,kBAAe,IAAA,iBAAU,EAAC;IACxB,IAAI,EAAE,iCAAiC;IACvC,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,gEAAgE;YAClE,WAAW,EAAE,WAAW;SACzB;QACD,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE;YACR,cAAc,EACZ,8HAA8H;YAChI,eAAe,EACb,4HAA4H;YAC9H,kBAAkB,EAAE,mDAAmD;YACvE,eAAe,EACb,6DAA6D;YAC/D,UAAU,EACR,6EAA6E;SAChF;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,OAAO;YACL,wCAAwC,CACtC,IAA+D;gBAE/D,SAAS,2BAA2B,CAClC,IAAsD;oBAEtD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GAAG,EAAE,CAAC,KAAK,EAAsB,EAAE,CAAC;4CAClC,KAAK,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,CAAC;4CACtC,KAAK,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,CAAC;yCACtC;qCACF;iCACF;6BACF,CAAC,CAAC;wBACL,CAAC;oBACH,CAAC;gBACH,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
||||
{"version":3,"file":"no-confusing-non-null-assertion.js","sourceRoot":"","sources":["../../src/rules/no-confusing-non-null-assertion.ts"],"names":[],"mappings":";;AACA,oDAA2E;AAM3E,kCAAqC;AAWrC,MAAM,kBAAkB,GAAG,IAAI,GAAG,CAAC;IACjC,GAAG;IACH,IAAI;IACJ,KAAK;IACL,IAAI;IACJ,YAAY;CACJ,CAAC,CAAC;AAIZ,SAAS,mBAAmB,CAAC,QAAgB;IAC3C,OAAO,kBAAkB,CAAC,GAAG,CAAC,QAA6B,CAAC,CAAC;AAC/D,CAAC;AAED,kBAAe,IAAA,iBAAU,EAAgB;IACvC,IAAI,EAAE,iCAAiC;IACvC,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EACT,gEAAgE;YAClE,WAAW,EAAE,WAAW;SACzB;QACD,cAAc,EAAE,IAAI;QACpB,QAAQ,EAAE;YACR,cAAc,EACZ,sHAAsH;YACxH,eAAe,EACb,iHAAiH;YACnH,iBAAiB,EACf,2JAA2J;YAE7J,kBAAkB,EAChB,6DAA6D;YAC/D,eAAe,EACb,yEAAyE;YAE3E,iBAAiB,EACf,wGAAwG;YAE1G,UAAU,EACR,yFAAyF;SAC5F;QACD,MAAM,EAAE,EAAE;KACX;IACD,cAAc,EAAE,EAAE;IAClB,MAAM,CAAC,OAAO;QACZ,SAAS,8BAA8B,CACrC,QAA2B;YAE3B,QAAQ,QAAQ,EAAE,CAAC;gBACjB,KAAK,GA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O,CAAC,KAAK,EAAsB,EAAE,CAAC;QACpC,KAAK,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,CAAC;QACtC,KAAK,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,CAAC;KACtC,CAAC;AACJ,CAAC"}
|
||||
120
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-deprecated.js
generated
vendored
120
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-deprecated.js
generated
vendored
|
|
@ -50,6 +50,37 @@ exports.default = (0, util_1.createRule)({
|
|||
}
|
||||
const services = (0, util_1.getParserServices)(context);
|
||||
const checker = services.program.getTypeChecker();
|
||||
// Deprecated jsdoc tags can be added on some symbol alias, e.g.
|
||||
//
|
||||
// export { /** @deprecated */ foo }
|
||||
//
|
||||
// When we import foo, its symbol is an alias of the exported foo (the one
|
||||
// with the deprecated tag), which is itself an alias of the original foo.
|
||||
// Therefore, we carefully go through the chain of aliases and check each
|
||||
// immediate alias for deprecated tags
|
||||
function searchForDeprecationInAliasesChain(symbol, checkDeprecationsOfAliasedSymbol) {
|
||||
if (!symbol || !tsutils.isSymbolFlagSet(symbol, ts.SymbolFlags.Alias)) {
|
||||
return checkDeprecationsOfAliasedSymbol
|
||||
? getJsDocDeprecation(symbol)
|
||||
: undefined;
|
||||
}
|
||||
const targetSymbol = checker.getAliasedSymbol(symbol);
|
||||
while (tsutils.isSymbolFlagSet(symbol, ts.SymbolFlags.Alias)) {
|
||||
const reason = getJsDocDeprecation(symbol);
|
||||
if (reason !== undefined) {
|
||||
return reason;
|
||||
}
|
||||
const immediateAliasedSymbol = symbol.getDeclarations() && checker.getImmediateAliasedSymbol(symbol);
|
||||
if (!immediateAliasedSymbol) {
|
||||
break;
|
||||
}
|
||||
symbol = immediateAliasedSymbol;
|
||||
if (checkDeprecationsOfAliasedSymbol && symbol === targetSymbol) {
|
||||
return getJsDocDeprecation(symbol);
|
||||
}
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
function isDeclaration(node) {
|
||||
const { parent } = node;
|
||||
switch (parent.type) {
|
||||
|
|
@ -149,48 +180,63 @@ exports.default = (0, util_1.createRule)({
|
|||
function getCallLikeDeprecation(node) {
|
||||
const tsNode = services.esTreeNodeToTSNodeMap.get(node.parent);
|
||||
// If the node is a direct function call, we look for its signature.
|
||||
const signature = checker.getResolvedSignature(tsNode);
|
||||
const signature = (0, util_1.nullThrows)(checker.getResolvedSignature(tsNode), 'Expected call like node to have signature');
|
||||
const symbol = services.getSymbolAtLocation(node);
|
||||
if (signature) {
|
||||
const signatureDeprecation = getJsDocDeprecation(signature);
|
||||
if (signatureDeprecation !== undefined) {
|
||||
return signatureDeprecation;
|
||||
}
|
||||
// Properties with function-like types have "deprecated" jsdoc
|
||||
// on their symbols, not on their signatures:
|
||||
//
|
||||
// interface Props {
|
||||
// /** @deprecated */
|
||||
// property: () => 'foo'
|
||||
// ^symbol^ ^signature^
|
||||
// }
|
||||
const symbolDeclarationKind = symbol?.declarations?.[0].kind;
|
||||
if (symbolDeclarationKind !== ts.SyntaxKind.MethodDeclaration &&
|
||||
symbolDeclarationKind !== ts.SyntaxKind.FunctionDeclaration &&
|
||||
symbolDeclarationKind !== ts.SyntaxKind.MethodSignature) {
|
||||
return getJsDocDeprecation(symbol);
|
||||
}
|
||||
const aliasedSymbol = symbol !== undefined &&
|
||||
tsutils.isSymbolFlagSet(symbol, ts.SymbolFlags.Alias)
|
||||
? checker.getAliasedSymbol(symbol)
|
||||
: symbol;
|
||||
const symbolDeclarationKind = aliasedSymbol?.declarations?.[0].kind;
|
||||
// Properties with function-like types have "deprecated" jsdoc
|
||||
// on their symbols, not on their signatures:
|
||||
//
|
||||
// interface Props {
|
||||
// /** @deprecated */
|
||||
// property: () => 'foo'
|
||||
// ^symbol^ ^signature^
|
||||
// }
|
||||
if (symbolDeclarationKind !== ts.SyntaxKind.MethodDeclaration &&
|
||||
symbolDeclarationKind !== ts.SyntaxKind.FunctionDeclaration &&
|
||||
symbolDeclarationKind !== ts.SyntaxKind.MethodSignature) {
|
||||
return (searchForDeprecationInAliasesChain(symbol, true) ??
|
||||
getJsDocDeprecation(signature) ??
|
||||
getJsDocDeprecation(aliasedSymbol));
|
||||
}
|
||||
// Or it could be a ClassDeclaration or a variable set to a ClassExpression.
|
||||
const symbolAtLocation = symbol && checker.getTypeOfSymbolAtLocation(symbol, tsNode).getSymbol();
|
||||
return symbolAtLocation &&
|
||||
tsutils.isSymbolFlagSet(symbolAtLocation, ts.SymbolFlags.Class)
|
||||
? getJsDocDeprecation(symbolAtLocation)
|
||||
: undefined;
|
||||
}
|
||||
function getSymbol(node) {
|
||||
if (node.parent.type === utils_1.AST_NODE_TYPES.Property) {
|
||||
return services
|
||||
.getTypeAtLocation(node.parent.parent)
|
||||
.getProperty(node.name);
|
||||
}
|
||||
return services.getSymbolAtLocation(node);
|
||||
return (searchForDeprecationInAliasesChain(symbol,
|
||||
// Here we're working with a function declaration or method.
|
||||
// Both can have 1 or more overloads, each overload creates one
|
||||
// ts.Declaration which is placed in symbol.declarations.
|
||||
//
|
||||
// Imagine the following code:
|
||||
//
|
||||
// function foo(): void
|
||||
// /** @deprecated Some Reason */
|
||||
// function foo(arg: string): void
|
||||
// function foo(arg?: string): void {}
|
||||
//
|
||||
// foo() // <- foo is our symbol
|
||||
//
|
||||
// If we call getJsDocDeprecation(checker.getAliasedSymbol(symbol)),
|
||||
// we get 'Some Reason', but after all, we are calling foo with
|
||||
// a signature that is not deprecated!
|
||||
// It works this way because symbol.getJsDocTags returns tags from
|
||||
// all symbol declarations combined into one array. And AFAIK there is
|
||||
// no publicly exported TS function that can tell us if a particular
|
||||
// declaration is deprecated or not.
|
||||
//
|
||||
// So, in case of function and method declarations, we don't check original
|
||||
// aliased symbol, but rely on the getJsDocDeprecation(signature) call below.
|
||||
false) ?? getJsDocDeprecation(signature));
|
||||
}
|
||||
function getDeprecationReason(node) {
|
||||
const callLikeNode = getCallLikeNode(node);
|
||||
return callLikeNode
|
||||
? getCallLikeDeprecation(callLikeNode)
|
||||
: getJsDocDeprecation(getSymbol(node));
|
||||
if (callLikeNode) {
|
||||
return getCallLikeDeprecation(callLikeNode);
|
||||
}
|
||||
if (node.parent.type === utils_1.AST_NODE_TYPES.Property) {
|
||||
return getJsDocDeprecation(services.getTypeAtLocation(node.parent.parent).getProperty(node.name));
|
||||
}
|
||||
return searchForDeprecationInAliasesChain(services.getSymbolAtLocation(node), true);
|
||||
}
|
||||
function checkIdentifier(node) {
|
||||
if (isDeclaration(node) || isInsideExportOrImport(node)) {
|
||||
|
|
|
|||
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-deprecated.js.map
generated
vendored
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-deprecated.js.map
generated
vendored
File diff suppressed because one or more lines are too long
43
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-call.js
generated
vendored
43
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-call.js
generated
vendored
|
|
@ -35,13 +35,13 @@ exports.default = (0, util_1.createRule)({
|
|||
requiresTypeChecking: true,
|
||||
},
|
||||
messages: {
|
||||
unsafeCall: 'Unsafe call of an {{type}} typed value.',
|
||||
unsafeCall: 'Unsafe call of a(n) {{type}} typed value.',
|
||||
unsafeCallThis: [
|
||||
'Unsafe call of an `any` typed value. `this` is typed as `any`.',
|
||||
'Unsafe call of a(n) {{type}} typed value. `this` is typed as {{type}}.',
|
||||
'You can try to fix this by turning on the `noImplicitThis` compiler option, or adding a `this` parameter to the function.',
|
||||
].join('\n'),
|
||||
unsafeNew: 'Unsafe construction of an any type value.',
|
||||
unsafeTemplateTag: 'Unsafe any typed template tag.',
|
||||
unsafeNew: 'Unsafe construction of a(n) {{type}} typed value.',
|
||||
unsafeTemplateTag: 'Unsafe use of a(n) {{type}} typed template tag.',
|
||||
},
|
||||
schema: [],
|
||||
},
|
||||
|
|
@ -69,6 +69,41 @@ exports.default = (0, util_1.createRule)({
|
|||
type: isErrorType ? '`error` type' : '`any`',
|
||||
},
|
||||
});
|
||||
return;
|
||||
}
|
||||
if ((0, util_1.isBuiltinSymbolLike)(services.program, type, 'Function')) {
|
||||
// this also matches subtypes of `Function`, like `interface Foo extends Function {}`.
|
||||
//
|
||||
// For weird TS reasons that I don't understand, these are
|
||||
//
|
||||
// safe to construct if:
|
||||
// - they have at least one call signature _that is not void-returning_,
|
||||
// - OR they have at least one construct signature.
|
||||
//
|
||||
// safe to call (including as template) if:
|
||||
// - they have at least one call signature
|
||||
// - OR they have at least one construct signature.
|
||||
const constructSignatures = type.getConstructSignatures();
|
||||
if (constructSignatures.length > 0) {
|
||||
return;
|
||||
}
|
||||
const callSignatures = type.getCallSignatures();
|
||||
if (messageId === 'unsafeNew') {
|
||||
if (callSignatures.some(signature => !tsutils.isIntrinsicVoidType(signature.getReturnType()))) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
else if (callSignatures.length > 0) {
|
||||
return;
|
||||
}
|
||||
context.report({
|
||||
node: reportingNode,
|
||||
messageId,
|
||||
data: {
|
||||
type: '`Function`',
|
||||
},
|
||||
});
|
||||
return;
|
||||
}
|
||||
}
|
||||
return {
|
||||
|
|
|
|||
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-call.js.map
generated
vendored
2
node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-unsafe-call.js.map
generated
vendored
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"no-unsafe-call.js","sourceRoot":"","sources":["../../src/rules/no-unsafe-call.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,sDAAwC;AAExC,kCAMiB;AAQjB,kBAAe,IAAA,iBAAU,EAAiB;IACxC,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,IAAI,EAAE;YACJ,WAAW,EAAE,0CAA0C;YACvD,WAAW,EAAE,aAAa;YAC1B,oBAAoB,EAAE,IAAI;SAC3B;QACD,QAAQ,EAAE;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Ac,CAAC,IAAI,CACjB,SAAS,CAAC,EAAE,CACV,CAAC,OAAO,CAAC,mBAAmB,CAAC,SAAS,CAAC,aAAa,EAAE,CAAC,CAC1D,EACD,CAAC;wBACD,OAAO;oBACT,CAAC;gBACH,CAAC;qBAAM,IAAI,cAAc,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;oBACrC,OAAO;gBACT,CAAC;gBAED,OAAO,CAAC,MAAM,CAAC;oBACb,IAAI,EAAE,aAAa;oBACnB,SAAS;oBACT,IAAI,EAAE;wBACJ,IAAI,EAAE,YAAY;qBACnB;iBACF,CAAC,CAAC;gBACH,OAAO;YACT,CAAC;QACH,CAAC;QAED,OAAO;YACL,2BAA2B,CACzB,IAAuC;gBAEvC,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,YAAY,CAAC,CAAC;YACtC,CAAC;YACD,aAAa,CAAC,IAAI;gBAChB,SAAS,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,EAAE,WAAW,CAAC,CAAC;YAC5C,CAAC;YACD,kCAAkC,CAAC,IAAmB;gBACpD,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,mBAAmB,CAAC,CAAC;YAC7C,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
||||
1
node_modules/@typescript-eslint/eslint-plugin/dist/util/index.js
generated
vendored
1
node_modules/@typescript-eslint/eslint-plugin/dist/util/index.js
generated
vendored
|
|
@ -34,7 +34,6 @@ __exportStar(require("./misc"), exports);
|
|||
__exportStar(require("./needsPrecedingSemiColon"), exports);
|
||||
__exportStar(require("./objectIterators"), exports);
|
||||
__exportStar(require("./scopeUtils"), exports);
|
||||
__exportStar(require("./types"), exports);
|
||||
__exportStar(require("./isAssignee"), exports);
|
||||
__exportStar(require("./getFixOrSuggest"), exports);
|
||||
__exportStar(require("./isArrayMethodCallWithPredicate"), exports);
|
||||
|
|
|
|||
2
node_modules/@typescript-eslint/eslint-plugin/dist/util/index.js.map
generated
vendored
2
node_modules/@typescript-eslint/eslint-plugin/dist/util/index.js.map
generated
vendored
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/util/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,oDAAuD;AAEvD,6CAA2B;AAC3B,2DAAyC;AACzC,+CAA6B;AAC7B,uDAAqC;AACrC,0DAAwC;AACxC,yDAAuC;AACvC,oDAAkC;AAClC,2DAAyC;AACzC,sDAAoC;AACpC,qDAAmC;AACnC,gDAA8B;AAC9B,kDAAgC;AAChC,iEAA+C;AAC/C,0DAAwC;AACxC,yCAAuB;AACvB,4DAA0C;AAC1C,oDAAkC;AAClC,+CAA6B;AAC7B,0CAAwB;AACxB,+CAA6B;AAC7B,oDAAkC;AAClC,mEAAiD;AAEjD,sEAAsE;AACtE,gEAA8C;AAC9C,MAAM,EACJ,YAAY,EACZ,SAAS,EACT,gBAAgB,EAChB,iBAAiB,EACjB,UAAU,EACV,iBAAiB,GAClB,GAAG,mBAAW,CAAC;AAMd,oCAAY;AACZ,8BAAS;AACT,4CAAgB;AAChB,8CAAiB;AACjB,gCAAU;AAGV,8CAAiB"}
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/util/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,oDAAuD;AAEvD,6CAA2B;AAC3B,2DAAyC;AACzC,+CAA6B;AAC7B,uDAAqC;AACrC,0DAAwC;AACxC,yDAAuC;AACvC,oDAAkC;AAClC,2DAAyC;AACzC,sDAAoC;AACpC,qDAAmC;AACnC,gDAA8B;AAC9B,kDAAgC;AAChC,iEAA+C;AAC/C,0DAAwC;AACxC,yCAAuB;AACvB,4DAA0C;AAC1C,oDAAkC;AAClC,+CAA6B;AAE7B,+CAA6B;AAC7B,oDAAkC;AAClC,mEAAiD;AAEjD,sEAAsE;AACtE,gEAA8C;AAC9C,MAAM,EACJ,YAAY,EACZ,SAAS,EACT,gBAAgB,EAChB,iBAAiB,EACjB,UAAU,EACV,iBAAiB,GAClB,GAAG,mBAAW,CAAC;AAMd,oCAAY;AACZ,8BAAS;AACT,4CAAgB;AAChB,8CAAiB;AACjB,gCAAU;AAGV,8CAAiB"}
|
||||
|
|
@ -42,7 +42,7 @@ function isArrayMethodCallWithPredicate(context, services, node) {
|
|||
return false;
|
||||
}
|
||||
const staticAccessValue = (0, misc_1.getStaticMemberAccessValue)(node.callee, context);
|
||||
if (!staticAccessValue || !ARRAY_PREDICATE_FUNCTIONS.has(staticAccessValue)) {
|
||||
if (!ARRAY_PREDICATE_FUNCTIONS.has(staticAccessValue)) {
|
||||
return false;
|
||||
}
|
||||
const checker = services.program.getTypeChecker();
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"isArrayMethodCallWithPredicate.js","sourceRoot":"","sources":["../../src/util/isArrayMethodCallWithPredicate.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAqBA,wEAqBC;AA1CD,8DAA6E;AAK7E,oDAA0D;AAE1D,sDAAwC;AAExC,iCAAoD;AAEpD,MAAM,yBAAyB,GAAG,IAAI,GAAG,CAAC;IACxC,QAAQ;IACR,MAAM;IACN,WAAW;IACX,UAAU;IACV,eAAe;IACf,MAAM;IACN,OAAO;CACR,CAAC,CAAC;AAEH,SAAgB,8BAA8B,CAC5C,OAAuC,EACvC,QAA2C,EAC3C,IAA6B;IAE7B,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB,EAAE,CAAC;QACzD,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,iBAAiB,GAAG,IAAA,iCAA0B,EAAC,IAAI,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAE3E,IAAI,CAAC,iBAAiB,IAAI,CAAC,yBAAyB,CAAC,GAAG,CAAC,iBAAiB,CAAC,EAAE,CAAC;QAC5E,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;IAClD,MAAM,IAAI,GAAG,IAAA,yCAA4B,EAAC,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACxE,OAAO,OAAO;SACX,cAAc,CAAC,IAAI,CAAC;SACpB,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC;SACpD,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;AACjE,CAAC"}
|
||||
{"version":3,"file":"isArrayMethodCallWithPredicate.js","sourceRoot":"","sources":["../../src/util/isArrayMethodCallWithPredicate.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAqBA,wEAqBC;AA1CD,8DAA6E;AAK7E,oDAA0D;AAE1D,sDAAwC;AAExC,iCAAoD;AAEpD,MAAM,yBAAyB,GAAG,IAAI,GAAG,CAAU;IACjD,QAAQ;IACR,MAAM;IACN,WAAW;IACX,UAAU;IACV,eAAe;IACf,MAAM;IACN,OAAO;CACR,CAAC,CAAC;AAEH,SAAgB,8BAA8B,CAC5C,OAAuC,EACvC,QAA2C,EAC3C,IAA6B;IAE7B,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,sBAAc,CAAC,gBAAgB,EAAE,CAAC;QACzD,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,iBAAiB,GAAG,IAAA,iCAA0B,EAAC,IAAI,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAE3E,IAAI,CAAC,yBAAyB,CAAC,GAAG,CAAC,iBAAiB,CAAC,EAAE,CAAC;QACtD,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;IAClD,MAAM,IAAI,GAAG,IAAA,yCAA4B,EAAC,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACxE,OAAO,OAAO;SACX,cAAc,CAAC,IAAI,CAAC;SACpB,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC;SACpD,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;AACjE,CAAC"}
|
||||
66
node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js
generated
vendored
66
node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js
generated
vendored
|
|
@ -196,20 +196,70 @@ function isRestParameterDeclaration(decl) {
|
|||
function isParenlessArrowFunction(node, sourceCode) {
|
||||
return (node.params.length === 1 && !(0, astUtils_1.isParenthesized)(node.params[0], sourceCode));
|
||||
}
|
||||
/**
|
||||
* Gets a member being accessed or declared if its value can be determined statically, and
|
||||
* resolves it to the string or symbol value that will be used as the actual member
|
||||
* access key at runtime. Otherwise, returns `undefined`.
|
||||
*
|
||||
* ```ts
|
||||
* x.member // returns 'member'
|
||||
* ^^^^^^^^
|
||||
*
|
||||
* x?.member // returns 'member' (optional chaining is treated the same)
|
||||
* ^^^^^^^^^
|
||||
*
|
||||
* x['value'] // returns 'value'
|
||||
* ^^^^^^^^^^
|
||||
*
|
||||
* x[Math.random()] // returns undefined (not a static value)
|
||||
* ^^^^^^^^^^^^^^^^
|
||||
*
|
||||
* arr[0] // returns '0' (NOT 0)
|
||||
* ^^^^^^
|
||||
*
|
||||
* arr[0n] // returns '0' (NOT 0n)
|
||||
* ^^^^^^^
|
||||
*
|
||||
* const s = Symbol.for('symbolName')
|
||||
* x[s] // returns `Symbol.for('symbolName')` (since it's a static/global symbol)
|
||||
* ^^^^
|
||||
*
|
||||
* const us = Symbol('symbolName')
|
||||
* x[us] // returns undefined (since it's a unique symbol, so not statically analyzable)
|
||||
* ^^^^^
|
||||
*
|
||||
* var object = {
|
||||
* 1234: '4567', // returns '1234' (NOT 1234)
|
||||
* ^^^^^^^^^^^^
|
||||
* method() { } // returns 'method'
|
||||
* ^^^^^^^^^^^^
|
||||
* }
|
||||
*
|
||||
* class WithMembers {
|
||||
* foo: string // returns 'foo'
|
||||
* ^^^^^^^^^^^
|
||||
* }
|
||||
* ```
|
||||
*/
|
||||
function getStaticMemberAccessValue(node, { sourceCode }) {
|
||||
const key = node.type === utils_1.AST_NODE_TYPES.MemberExpression ? node.property : node.key;
|
||||
if (!node.computed) {
|
||||
return key.type === utils_1.AST_NODE_TYPES.Literal
|
||||
? `${key.value}`
|
||||
: key.name;
|
||||
const { type } = key;
|
||||
if (!node.computed &&
|
||||
(type === utils_1.AST_NODE_TYPES.Identifier ||
|
||||
type === utils_1.AST_NODE_TYPES.PrivateIdentifier)) {
|
||||
return key.name;
|
||||
}
|
||||
const value = (0, astUtils_1.getStaticValue)(key, sourceCode.getScope(node))?.value;
|
||||
return value == null ? undefined : `${value}`;
|
||||
const result = (0, astUtils_1.getStaticValue)(key, sourceCode.getScope(node));
|
||||
if (!result) {
|
||||
return undefined;
|
||||
}
|
||||
const { value } = result;
|
||||
return typeof value === 'symbol' ? value : String(value);
|
||||
}
|
||||
/**
|
||||
* Answers whether the member expression looks like
|
||||
* `x.memberName`, `x['memberName']`,
|
||||
* or even `const mn = 'memberName'; x[mn]` (or optional variants thereof).
|
||||
* `x.value`, `x['value']`,
|
||||
* or even `const v = 'value'; x[v]` (or optional variants thereof).
|
||||
*/
|
||||
const isStaticMemberAccessOfValue = (memberExpression, context, ...values) => values.includes(getStaticMemberAccessValue(memberExpression, context));
|
||||
exports.isStaticMemberAccessOfValue = isStaticMemberAccessOfValue;
|
||||
|
|
|
|||
2
node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js.map
generated
vendored
2
node_modules/@typescript-eslint/eslint-plugin/dist/util/misc.js.map
generated
vendored
File diff suppressed because one or more lines are too long
|
|
@ -9,14 +9,27 @@ import TabItem from '@theme/TabItem';
|
|||
>
|
||||
> See **https://typescript-eslint.io/rules/no-confusing-non-null-assertion** for documentation.
|
||||
|
||||
Using a non-null assertion (`!`) next to an assign or equals check (`=` or `==` or `===`) creates code that is confusing as it looks similar to a not equals check (`!=` `!==`).
|
||||
Using a non-null assertion (`!`) next to an assignment or equality check (`=` or `==` or `===`) creates code that is confusing as it looks similar to an inequality check (`!=` `!==`).
|
||||
|
||||
```typescript
|
||||
a! == b; // a non-null assertions(`!`) and an equals test(`==`)
|
||||
a! == b; // a non-null assertion(`!`) and an equals test(`==`)
|
||||
a !== b; // not equals test(`!==`)
|
||||
a! === b; // a non-null assertions(`!`) and an triple equals test(`===`)
|
||||
a! === b; // a non-null assertion(`!`) and a triple equals test(`===`)
|
||||
```
|
||||
|
||||
Using a non-null assertion (`!`) next to an in test (`in`) or an instanceof test (`instanceof`) creates code that is confusing since it may look like the operator is negated, but it is actually not.
|
||||
|
||||
{/* prettier-ignore */}
|
||||
```typescript
|
||||
a! in b; // a non-null assertion(`!`) and an in test(`in`)
|
||||
a !in b; // also a non-null assertion(`!`) and an in test(`in`)
|
||||
!(a in b); // a negated in test
|
||||
|
||||
a! instanceof b; // a non-null assertion(`!`) and an instanceof test(`instanceof`)
|
||||
a !instanceof b; // also a non-null assertion(`!`) and an instanceof test(`instanceof`)
|
||||
!(a instanceof b); // a negated instanceof test
|
||||
````
|
||||
|
||||
This rule flags confusing `!` assertions and suggests either removing them or wrapping the asserted expression in `()` parenthesis.
|
||||
|
||||
## Examples
|
||||
|
|
|
|||
19
node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-floating-promises.mdx
generated
vendored
19
node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-floating-promises.mdx
generated
vendored
|
|
@ -12,14 +12,13 @@ import TabItem from '@theme/TabItem';
|
|||
A "floating" Promise is one that is created without any code set up to handle any errors it might throw.
|
||||
Floating Promises can cause several issues, such as improperly sequenced operations, ignored Promise rejections, and more.
|
||||
|
||||
This rule reports when a Promise is created and not properly handled.
|
||||
Valid ways of handling a Promise-valued statement include:
|
||||
This rule will report Promise-valued statements that are not treated in one of the following ways:
|
||||
|
||||
- `await`ing it
|
||||
- `return`ing it
|
||||
- `void`ing it
|
||||
- Calling its `.then()` with two arguments
|
||||
- Calling its `.catch()` with one argument
|
||||
- `await`ing it
|
||||
- `return`ing it
|
||||
- [`void`ing it](#ignorevoid)
|
||||
|
||||
This rule also reports when an Array containing Promises is created and not properly handled. The main way to resolve this is by using one of the Promise concurrency methods to create a single Promise, then handling that according to the procedure above. These methods include:
|
||||
|
||||
|
|
@ -29,8 +28,10 @@ This rule also reports when an Array containing Promises is created and not prop
|
|||
- `Promise.race()`
|
||||
|
||||
:::tip
|
||||
`no-floating-promises` only detects unhandled Promise _statements_.
|
||||
`no-floating-promises` only detects apparently unhandled Promise _statements_.
|
||||
See [`no-misused-promises`](./no-misused-promises.mdx) for detecting code that provides Promises to _logical_ locations such as if statements.
|
||||
|
||||
See [_Using promises (error handling) on MDN_](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises#error_handling) for a detailed writeup on Promise error-handling.
|
||||
:::
|
||||
|
||||
## Examples
|
||||
|
|
@ -134,6 +135,12 @@ await createMyThenable();
|
|||
This option, which is `true` by default, allows you to stop the rule reporting promises consumed with the [`void` operator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/void).
|
||||
This can be a good way to explicitly mark a promise as intentionally not awaited.
|
||||
|
||||
:::warning
|
||||
Voiding a Promise doesn't handle it or change the runtime behavior.
|
||||
The outcome is just ignored, like disabling the rule with an [ESLint disable comment](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1).
|
||||
Such Promise rejections will still be unhandled.
|
||||
:::
|
||||
|
||||
Examples of **correct** code for this rule with `{ ignoreVoid: true }`:
|
||||
|
||||
```ts option='{ "ignoreVoid": true }' showPlaygroundButton
|
||||
|
|
|
|||
2
node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-inferrable-types.mdx
generated
vendored
2
node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-inferrable-types.mdx
generated
vendored
|
|
@ -106,6 +106,8 @@ class Foo {
|
|||
|
||||
If you strongly prefer to have explicit types regardless of whether they can be inferred, this rule may not be for you.
|
||||
|
||||
If you use the `--isolatedDeclarations` compiler option, this rule is incompatible.
|
||||
|
||||
## Further Reading
|
||||
|
||||
- [TypeScript Inference](https://www.typescriptlang.org/docs/handbook/type-inference.html)
|
||||
|
|
|
|||
123
node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-type-parameters.mdx
generated
vendored
123
node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unnecessary-type-parameters.mdx
generated
vendored
|
|
@ -19,7 +19,7 @@ At best unnecessary type parameters make code harder to read.
|
|||
At worst they can be used to disguise unsafe type assertions.
|
||||
|
||||
:::warning
|
||||
This rule was recently added, and has a surprising amount of hidden complexity compared to most of our rules. If you encounter unexpected behavior with it, please check closely the [Limitations](#limitations) section below and our [issue tracker](https://github.com/typescript-eslint/typescript-eslint/issues?q=is%3Aissue+no-unnecessary-type-parameters).
|
||||
This rule was recently added, and has a surprising amount of hidden complexity compared to most of our rules. If you encounter unexpected behavior with it, please check closely the [Limitations](#limitations) and [FAQ](#faq) sections below and our [issue tracker](https://github.com/typescript-eslint/typescript-eslint/issues?q=is%3Aissue+no-unnecessary-type-parameters).
|
||||
If you don't see your case covered, please [reach out to us](https://typescript-eslint.io/contributing/issues)!
|
||||
:::
|
||||
|
||||
|
|
@ -87,6 +87,127 @@ This is because the type parameter `T` relates multiple methods in the `T[]` tog
|
|||
Therefore, this rule won't report on type parameters used as a type argument.
|
||||
That includes type arguments given to global types such as `Array` (including the `T[]` shorthand and in tuples), `Map`, and `Set`.
|
||||
|
||||
## FAQ
|
||||
|
||||
### The return type is only used as an input, so why isn't the rule reporting?
|
||||
|
||||
One common reason that this might be the case is when the return type is not specified explicitly.
|
||||
The rule uses uses type information to count implicit usages of the type parameter in the function signature, including in the inferred return type.
|
||||
For example, the following function...
|
||||
|
||||
```ts
|
||||
function identity<T>(arg: T) {
|
||||
return arg;
|
||||
}
|
||||
```
|
||||
|
||||
...implicitly has a return type of `T`. Therefore, the type parameter `T` is used twice, and the rule will not report this function.
|
||||
|
||||
For other reasons the rule might not be reporting, be sure to check the [Limitations section](#limitations) and other FAQs.
|
||||
|
||||
### I'm using the type parameter inside the function, so why is the rule reporting?
|
||||
|
||||
You might be surprised to that the rule reports on a function like this:
|
||||
|
||||
```ts
|
||||
function log<T extends string>(string1: T): void {
|
||||
const string2: T = string1;
|
||||
console.log(string2);
|
||||
}
|
||||
```
|
||||
|
||||
After all, the type parameter `T` relates the input `string1` and the local variable `string2`, right?
|
||||
However, this usage is unnecessary, since we can achieve the same results by replacing all usages of the type parameter with its constraint.
|
||||
That is to say, the function can always be rewritten as:
|
||||
|
||||
```ts
|
||||
function log(string1: string): void {
|
||||
const string2: string = string1;
|
||||
console.log(string2);
|
||||
}
|
||||
```
|
||||
|
||||
Therefore, this rule only counts usages of a type parameter in the _signature_ of a function, method, or class, but not in the implementation. See also [#9735](https://github.com/typescript-eslint/typescript-eslint/issues/9735)
|
||||
|
||||
### Why am I getting TypeScript errors saying "Object literal may only specify known properties" after removing an unnecessary type parameter?
|
||||
|
||||
Suppose you have a situation like the following, which will trigger the rule to report.
|
||||
|
||||
```ts
|
||||
interface SomeProperties {
|
||||
foo: string;
|
||||
}
|
||||
|
||||
// T is only used once, so the rule will report.
|
||||
function serialize<T extends SomeProperties>(x: T): string {
|
||||
return JSON.stringify(x);
|
||||
}
|
||||
|
||||
serialize({ foo: 'bar', anotherProperty: 'baz' });
|
||||
```
|
||||
|
||||
If we remove the unnecessary type parameter, we'll get an error:
|
||||
|
||||
```ts
|
||||
function serialize(x: SomeProperties): string {
|
||||
return JSON.stringify(x);
|
||||
}
|
||||
|
||||
// TS Error: Object literal may only specify known properties, and 'anotherProperty' does not exist in type 'SomeProperties'.
|
||||
serialize({ foo: 'bar', anotherProperty: 'baz' });
|
||||
```
|
||||
|
||||
This is because TypeScript figures it's _usually_ an error to explicitly provide excess properties in a location that expects a specific type.
|
||||
See [the TypeScript handbook's section on excess property checks](https://www.typescriptlang.org/docs/handbook/2/objects.html#excess-property-checks) for further discussion.
|
||||
|
||||
To resolve this, you have two approaches to choose from.
|
||||
|
||||
1. If it doesn't make sense to accept excess properties in your function, you'll want to fix the errors at the call sites. Usually, you can simply remove any excess properties where the function is called.
|
||||
2. Otherwise, if you do want your function to accept excess properties, you can modify the parameter type in order to allow excess properties explicitly by using an [index signature](https://www.typescriptlang.org/docs/handbook/2/objects.html#index-signatures):
|
||||
|
||||
```ts
|
||||
interface SomeProperties {
|
||||
foo: string;
|
||||
|
||||
// This allows any other properties.
|
||||
// You may wish to make these types more specific according to your use case.
|
||||
[key: PropertKey]: unknown;
|
||||
}
|
||||
|
||||
function serialize(x: SomeProperties): string {
|
||||
return JSON.stringify(x);
|
||||
}
|
||||
|
||||
// No error!
|
||||
serialize({ foo: 'bar', anotherProperty: 'baz' });
|
||||
```
|
||||
|
||||
Which solution is appropriate is a case-by-case decision, depending on the intended use case of your function.
|
||||
|
||||
### I have a complex scenario that is reported by the rule, but I can't see how to remove the type parameter. What should I do?
|
||||
|
||||
Sometimes, you may be able to rewrite the code by reaching for some niche TypeScript features, such as [the `NoInfer<T>` utility type](https://www.typescriptlang.org/docs/handbook/utility-types.html#noinfertype) (see [#9751](https://github.com/typescript-eslint/typescript-eslint/issues/9751)).
|
||||
|
||||
But, quite possibly, you've hit an edge case where the type is being used in a subtle way that the rule doesn't account for.
|
||||
For example, the following arcane code is a way of testing whether two types are equal, and will be reported by the rule (see [#9709](https://github.com/typescript-eslint/typescript-eslint/issues/9709)):
|
||||
|
||||
{/* prettier-ignore */}
|
||||
```ts
|
||||
type Compute<A> = A extends Function ? A : { [K in keyof A]: Compute<A[K]> };
|
||||
type Equal<X, Y> =
|
||||
(<T1>() => T1 extends Compute<X> ? 1 : 2) extends
|
||||
(<T2>() => T2 extends Compute<Y> ? 1 : 2)
|
||||
? true
|
||||
: false;
|
||||
```
|
||||
|
||||
In this case, the function types created within the `Equal` type are never expected to be assigned to; they're just created for the purpose of type system manipulations.
|
||||
This usage is not what the rule is intended to analyze.
|
||||
|
||||
Use eslint-disable comments as appropriate to suppress the rule in these kinds of cases.
|
||||
|
||||
{/* TODO - include an FAQ entry regarding instantiation expressions once the conversation in https://github.com/typescript-eslint/typescript-eslint/pull/9536#discussion_r1705850744 is done */}
|
||||
|
||||
## When Not To Use It
|
||||
|
||||
This rule will report on functions that use type parameters solely to test types, for example:
|
||||
|
|
|
|||
28
node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-call.mdx
generated
vendored
28
node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-call.mdx
generated
vendored
|
|
@ -59,6 +59,34 @@ String.raw`foo`;
|
|||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## The Unsafe `Function` Type
|
||||
|
||||
The `Function` type is behaves almost identically to `any` when called, so this rule also disallows calling values of type `Function`.
|
||||
|
||||
<Tabs>
|
||||
<TabItem value="❌ Incorrect">
|
||||
|
||||
```ts
|
||||
const f: Function = () => {};
|
||||
f();
|
||||
```
|
||||
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
Note that whereas [no-unsafe-function-type](./no-unsafe-function-type.mdx) helps prevent the _creation_ of `Function` types, this rule helps prevent the unsafe _use_ of `Function` types, which may creep into your codebase without explicitly referencing the `Function` type at all.
|
||||
See, for example, the following code:
|
||||
|
||||
```ts
|
||||
function unsafe(maybeFunction: unknown): string {
|
||||
if (typeof maybeFunction === 'function') {
|
||||
// TypeScript allows this, but it's completely unsound.
|
||||
return maybeFunction('call', 'with', 'any', 'args');
|
||||
}
|
||||
// etc
|
||||
}
|
||||
```
|
||||
|
||||
## When Not To Use It
|
||||
|
||||
If your codebase has many existing `any`s or areas of unsafe code, it may be difficult to enable this rule.
|
||||
|
|
|
|||
1
node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-function-type.mdx
generated
vendored
1
node_modules/@typescript-eslint/eslint-plugin/docs/rules/no-unsafe-function-type.mdx
generated
vendored
|
|
@ -60,4 +60,5 @@ You might consider using [ESLint disable comments](https://eslint.org/docs/lates
|
|||
|
||||
- [`no-empty-object-type`](./no-empty-object-type.mdx)
|
||||
- [`no-restricted-types`](./no-restricted-types.mdx)
|
||||
- [`no-unsafe-call`](./no-unsafe-call.mdx)
|
||||
- [`no-wrapper-object-types`](./no-wrapper-object-types.mdx)
|
||||
|
|
|
|||
|
|
@ -146,9 +146,11 @@ Set this to `true` at your own risk.
|
|||
|
||||
:::danger Deprecated
|
||||
|
||||
> This option will be removed in the next major version of typescript-eslint.
|
||||
> :::
|
||||
> If this is set to `false`, then the rule will error on every file whose `tsconfig.json` does _not_ have the `strictNullChecks` compiler option (or `strict`) set to `true`.
|
||||
This option will be removed in the next major version of typescript-eslint.
|
||||
|
||||
:::
|
||||
|
||||
If this is set to `false`, then the rule will error on every file whose `tsconfig.json` does _not_ have the `strictNullChecks` compiler option (or `strict`) set to `true`.
|
||||
|
||||
Without `strictNullChecks`, TypeScript essentially erases `undefined` and `null` from the types. This means when this rule inspects the types from a variable, **it will not be able to tell that the variable might be `null` or `undefined`**, which essentially makes this rule a lot less useful.
|
||||
|
||||
|
|
|
|||
14
node_modules/@typescript-eslint/eslint-plugin/package.json
generated
vendored
14
node_modules/@typescript-eslint/eslint-plugin/package.json
generated
vendored
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@typescript-eslint/eslint-plugin",
|
||||
"version": "8.6.0",
|
||||
"version": "8.7.0",
|
||||
"description": "TypeScript plugin for ESLint",
|
||||
"files": [
|
||||
"dist",
|
||||
|
|
@ -60,10 +60,10 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@eslint-community/regexpp": "^4.10.0",
|
||||
"@typescript-eslint/scope-manager": "8.6.0",
|
||||
"@typescript-eslint/type-utils": "8.6.0",
|
||||
"@typescript-eslint/utils": "8.6.0",
|
||||
"@typescript-eslint/visitor-keys": "8.6.0",
|
||||
"@typescript-eslint/scope-manager": "8.7.0",
|
||||
"@typescript-eslint/type-utils": "8.7.0",
|
||||
"@typescript-eslint/utils": "8.7.0",
|
||||
"@typescript-eslint/visitor-keys": "8.7.0",
|
||||
"graphemer": "^1.4.0",
|
||||
"ignore": "^5.3.1",
|
||||
"natural-compare": "^1.4.0",
|
||||
|
|
@ -74,8 +74,8 @@
|
|||
"@types/marked": "^5.0.2",
|
||||
"@types/mdast": "^4.0.3",
|
||||
"@types/natural-compare": "*",
|
||||
"@typescript-eslint/rule-schema-to-typescript-types": "8.6.0",
|
||||
"@typescript-eslint/rule-tester": "8.6.0",
|
||||
"@typescript-eslint/rule-schema-to-typescript-types": "8.7.0",
|
||||
"@typescript-eslint/rule-tester": "8.7.0",
|
||||
"ajv": "^6.12.6",
|
||||
"cross-env": "^7.0.3",
|
||||
"cross-fetch": "*",
|
||||
|
|
|
|||
10
node_modules/@typescript-eslint/parser/package.json
generated
vendored
10
node_modules/@typescript-eslint/parser/package.json
generated
vendored
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@typescript-eslint/parser",
|
||||
"version": "8.6.0",
|
||||
"version": "8.7.0",
|
||||
"description": "An ESLint custom parser which leverages TypeScript ESTree",
|
||||
"files": [
|
||||
"dist",
|
||||
|
|
@ -52,10 +52,10 @@
|
|||
"eslint": "^8.57.0 || ^9.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@typescript-eslint/scope-manager": "8.6.0",
|
||||
"@typescript-eslint/types": "8.6.0",
|
||||
"@typescript-eslint/typescript-estree": "8.6.0",
|
||||
"@typescript-eslint/visitor-keys": "8.6.0",
|
||||
"@typescript-eslint/scope-manager": "8.7.0",
|
||||
"@typescript-eslint/types": "8.7.0",
|
||||
"@typescript-eslint/typescript-estree": "8.7.0",
|
||||
"@typescript-eslint/visitor-keys": "8.7.0",
|
||||
"debug": "^4.3.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
|
|||
2
node_modules/@typescript-eslint/scope-manager/dist/definition/index.d.ts
generated
vendored
2
node_modules/@typescript-eslint/scope-manager/dist/definition/index.d.ts
generated
vendored
|
|
@ -1,6 +1,6 @@
|
|||
export * from './CatchClauseDefinition';
|
||||
export * from './ClassNameDefinition';
|
||||
export * from './Definition';
|
||||
export type * from './Definition';
|
||||
export * from './DefinitionType';
|
||||
export * from './FunctionNameDefinition';
|
||||
export * from './ImplicitGlobalVariableDefinition';
|
||||
|
|
|
|||
2
node_modules/@typescript-eslint/scope-manager/dist/definition/index.d.ts.map
generated
vendored
2
node_modules/@typescript-eslint/scope-manager/dist/definition/index.d.ts.map
generated
vendored
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/definition/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oCAAoC,CAAC;AACnD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC"}
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/definition/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,mBAAmB,cAAc,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oCAAoC,CAAC;AACnD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC"}
|
||||
1
node_modules/@typescript-eslint/scope-manager/dist/definition/index.js
generated
vendored
1
node_modules/@typescript-eslint/scope-manager/dist/definition/index.js
generated
vendored
|
|
@ -16,7 +16,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
__exportStar(require("./CatchClauseDefinition"), exports);
|
||||
__exportStar(require("./ClassNameDefinition"), exports);
|
||||
__exportStar(require("./Definition"), exports);
|
||||
__exportStar(require("./DefinitionType"), exports);
|
||||
__exportStar(require("./FunctionNameDefinition"), exports);
|
||||
__exportStar(require("./ImplicitGlobalVariableDefinition"), exports);
|
||||
|
|
|
|||
2
node_modules/@typescript-eslint/scope-manager/dist/definition/index.js.map
generated
vendored
2
node_modules/@typescript-eslint/scope-manager/dist/definition/index.js.map
generated
vendored
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/definition/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,wDAAsC;AACtC,+CAA6B;AAC7B,mDAAiC;AACjC,2DAAyC;AACzC,qEAAmD;AACnD,4DAA0C;AAC1C,wDAAsC;AACtC,2DAAyC;AACzC,yDAAuC;AACvC,2DAAyC;AACzC,mDAAiC;AACjC,uDAAqC"}
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/definition/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,wDAAsC;AAEtC,mDAAiC;AACjC,2DAAyC;AACzC,qEAAmD;AACnD,4DAA0C;AAC1C,wDAAsC;AACtC,2DAAyC;AACzC,yDAAuC;AACvC,2DAAyC;AACzC,mDAAiC;AACjC,uDAAqC"}
|
||||
2
node_modules/@typescript-eslint/scope-manager/dist/scope/index.d.ts
generated
vendored
2
node_modules/@typescript-eslint/scope-manager/dist/scope/index.d.ts
generated
vendored
|
|
@ -10,7 +10,7 @@ export * from './FunctionTypeScope';
|
|||
export * from './GlobalScope';
|
||||
export * from './MappedTypeScope';
|
||||
export * from './ModuleScope';
|
||||
export * from './Scope';
|
||||
export type * from './Scope';
|
||||
export * from './ScopeType';
|
||||
export * from './SwitchScope';
|
||||
export * from './TSEnumScope';
|
||||
|
|
|
|||
2
node_modules/@typescript-eslint/scope-manager/dist/scope/index.d.ts.map
generated
vendored
2
node_modules/@typescript-eslint/scope-manager/dist/scope/index.d.ts.map
generated
vendored
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/scope/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,YAAY,CAAC;AAC3B,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC"}
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/scope/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,YAAY,CAAC;AAC3B,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,mBAAmB,SAAS,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC"}
|
||||
1
node_modules/@typescript-eslint/scope-manager/dist/scope/index.js
generated
vendored
1
node_modules/@typescript-eslint/scope-manager/dist/scope/index.js
generated
vendored
|
|
@ -26,7 +26,6 @@ __exportStar(require("./FunctionTypeScope"), exports);
|
|||
__exportStar(require("./GlobalScope"), exports);
|
||||
__exportStar(require("./MappedTypeScope"), exports);
|
||||
__exportStar(require("./ModuleScope"), exports);
|
||||
__exportStar(require("./Scope"), exports);
|
||||
__exportStar(require("./ScopeType"), exports);
|
||||
__exportStar(require("./SwitchScope"), exports);
|
||||
__exportStar(require("./TSEnumScope"), exports);
|
||||
|
|
|
|||
2
node_modules/@typescript-eslint/scope-manager/dist/scope/index.js.map
generated
vendored
2
node_modules/@typescript-eslint/scope-manager/dist/scope/index.js.map
generated
vendored
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/scope/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,+CAA6B;AAC7B,+DAA6C;AAC7C,+CAA6B;AAC7B,yDAAuC;AACvC,6CAA2B;AAC3B,gEAA8C;AAC9C,kDAAgC;AAChC,sDAAoC;AACpC,gDAA8B;AAC9B,oDAAkC;AAClC,gDAA8B;AAC9B,0CAAwB;AACxB,8CAA4B;AAC5B,gDAA8B;AAC9B,gDAA8B;AAC9B,kDAAgC;AAChC,8CAA4B;AAC5B,8CAA4B"}
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/scope/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,+CAA6B;AAC7B,+DAA6C;AAC7C,+CAA6B;AAC7B,yDAAuC;AACvC,6CAA2B;AAC3B,gEAA8C;AAC9C,kDAAgC;AAChC,sDAAoC;AACpC,gDAA8B;AAC9B,oDAAkC;AAClC,gDAA8B;AAE9B,8CAA4B;AAC5B,gDAA8B;AAC9B,gDAA8B;AAC9B,kDAAgC;AAChC,8CAA4B;AAC5B,8CAA4B"}
|
||||
8
node_modules/@typescript-eslint/scope-manager/package.json
generated
vendored
8
node_modules/@typescript-eslint/scope-manager/package.json
generated
vendored
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@typescript-eslint/scope-manager",
|
||||
"version": "8.6.0",
|
||||
"version": "8.7.0",
|
||||
"description": "TypeScript scope analyser for ESLint",
|
||||
"files": [
|
||||
"dist",
|
||||
|
|
@ -46,13 +46,13 @@
|
|||
"typecheck": "npx nx typecheck"
|
||||
},
|
||||
"dependencies": {
|
||||
"@typescript-eslint/types": "8.6.0",
|
||||
"@typescript-eslint/visitor-keys": "8.6.0"
|
||||
"@typescript-eslint/types": "8.7.0",
|
||||
"@typescript-eslint/visitor-keys": "8.7.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@jest/types": "29.6.3",
|
||||
"@types/glob": "*",
|
||||
"@typescript-eslint/typescript-estree": "8.6.0",
|
||||
"@typescript-eslint/typescript-estree": "8.7.0",
|
||||
"glob": "*",
|
||||
"jest-specific-snapshot": "*",
|
||||
"make-dir": "*",
|
||||
|
|
|
|||
8
node_modules/@typescript-eslint/type-utils/package.json
generated
vendored
8
node_modules/@typescript-eslint/type-utils/package.json
generated
vendored
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@typescript-eslint/type-utils",
|
||||
"version": "8.6.0",
|
||||
"version": "8.7.0",
|
||||
"description": "Type utilities for working with TypeScript + ESLint together",
|
||||
"files": [
|
||||
"dist",
|
||||
|
|
@ -46,14 +46,14 @@
|
|||
"typecheck": "tsc --noEmit"
|
||||
},
|
||||
"dependencies": {
|
||||
"@typescript-eslint/typescript-estree": "8.6.0",
|
||||
"@typescript-eslint/utils": "8.6.0",
|
||||
"@typescript-eslint/typescript-estree": "8.7.0",
|
||||
"@typescript-eslint/utils": "8.7.0",
|
||||
"debug": "^4.3.4",
|
||||
"ts-api-utils": "^1.3.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@jest/types": "29.6.3",
|
||||
"@typescript-eslint/parser": "8.6.0",
|
||||
"@typescript-eslint/parser": "8.7.0",
|
||||
"ajv": "^6.12.6",
|
||||
"downlevel-dts": "*",
|
||||
"jest": "29.7.0",
|
||||
|
|
|
|||
4
node_modules/@typescript-eslint/types/dist/index.d.ts
generated
vendored
4
node_modules/@typescript-eslint/types/dist/index.d.ts
generated
vendored
|
|
@ -1,5 +1,5 @@
|
|||
export { AST_NODE_TYPES, AST_TOKEN_TYPES } from './generated/ast-spec';
|
||||
export * from './lib';
|
||||
export * from './parser-options';
|
||||
export type * from './lib';
|
||||
export type * from './parser-options';
|
||||
export * from './ts-estree';
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
2
node_modules/@typescript-eslint/types/dist/index.d.ts.map
generated
vendored
2
node_modules/@typescript-eslint/types/dist/index.d.ts.map
generated
vendored
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvE,cAAc,OAAO,CAAC;AACtB,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC"}
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvE,mBAAmB,OAAO,CAAC;AAC3B,mBAAmB,kBAAkB,CAAC;AACtC,cAAc,aAAa,CAAC"}
|
||||
2
node_modules/@typescript-eslint/types/dist/index.js
generated
vendored
2
node_modules/@typescript-eslint/types/dist/index.js
generated
vendored
|
|
@ -18,7 +18,5 @@ exports.AST_TOKEN_TYPES = exports.AST_NODE_TYPES = void 0;
|
|||
var ast_spec_1 = require("./generated/ast-spec");
|
||||
Object.defineProperty(exports, "AST_NODE_TYPES", { enumerable: true, get: function () { return ast_spec_1.AST_NODE_TYPES; } });
|
||||
Object.defineProperty(exports, "AST_TOKEN_TYPES", { enumerable: true, get: function () { return ast_spec_1.AST_TOKEN_TYPES; } });
|
||||
__exportStar(require("./lib"), exports);
|
||||
__exportStar(require("./parser-options"), exports);
|
||||
__exportStar(require("./ts-estree"), exports);
|
||||
//# sourceMappingURL=index.js.map
|
||||
2
node_modules/@typescript-eslint/types/dist/index.js.map
generated
vendored
2
node_modules/@typescript-eslint/types/dist/index.js.map
generated
vendored
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,iDAAuE;AAA9D,0GAAA,cAAc,OAAA;AAAE,2GAAA,eAAe,OAAA;AACxC,wCAAsB;AACtB,mDAAiC;AACjC,8CAA4B"}
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,iDAAuE;AAA9D,0GAAA,cAAc,OAAA;AAAE,2GAAA,eAAe,OAAA;AAGxC,8CAA4B"}
|
||||
2
node_modules/@typescript-eslint/types/dist/ts-estree.d.ts
generated
vendored
2
node_modules/@typescript-eslint/types/dist/ts-estree.d.ts
generated
vendored
|
|
@ -106,7 +106,7 @@ declare module './generated/ast-spec' {
|
|||
parent: TSESTree.ClassBody;
|
||||
}
|
||||
interface SpreadElement {
|
||||
parent: TSESTree.ArrayExpression | TSESTree.CallExpression | TSESTree.ObjectExpression;
|
||||
parent: TSESTree.ArrayExpression | TSESTree.CallExpression | TSESTree.NewExpression | TSESTree.ObjectExpression;
|
||||
}
|
||||
interface StaticBlock {
|
||||
parent: TSESTree.ClassBody;
|
||||
|
|
|
|||
2
node_modules/@typescript-eslint/types/dist/ts-estree.d.ts.map
generated
vendored
2
node_modules/@typescript-eslint/types/dist/ts-estree.d.ts.map
generated
vendored
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"ts-estree.d.ts","sourceRoot":"","sources":["../src/ts-estree.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,QAAQ,MAAM,sBAAsB,CAAC;AAGtD,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC;KACvB;IAED,UAAU,OAAO;QACf;;WAEG;QACH,MAAM,CAAC,EAAE,KAAK,CAAC;KAChB;IAED,UAAU,4BAA4B;QACpC,MAAM,EAAE,QAAQ,CAAC,SAAS,CAAC;KAC5B;IACD,UAAU,+BAA+B;QACvC,MAAM,EAAE,QAAQ,CAAC,SAAS,CAAC;KAC5B;IAED,UAAU,oCAAoC;QAC5C,MAAM,EAAE,QAAQ,CAAC,mBAAmB,CAAC;KACtC;IAED,UAAU,2BAA2B;QACnC,MAAM,EAAE,QAAQ,CAAC,mBAAmB,CAAC;KACtC;IAED,UAAU,wBAAwB;QAChC,MAAM,EAAE,QAAQ,CAAC,mBAAmB,CAAC;KACtC;IAED,UAAU,sBAAsB;QAC9B,MAAM,EAAE,QAAQ,CAAC,mBAAmB,CAAC;KACtC;IAED,UAAU,8BAA8B;QACtC,MAAM,EAAE,QAAQ,CAAC,mBAAmB,CAAC;KACtC;IACD,UAAU,sCAAsC;QAC9C,MAAM,EAAE,QAAQ,CAAC,SAAS,CAAC;KAC5B;IACD,UAAU,yCAAyC;QACjD,MAAM,EAAE,QAAQ,CAAC,SAAS,CAAC;KAC5B;IAED,UAAU,WAAW;QACnB,MAAM,EAAE,QAAQ,CAAC,YAAY,CAAC;KAC/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e,GAAG,QAAQ,CAAC,aAAa,CAAC;KAC3D;IACD,UAAU,gCAAgC;QACxC,MAAM,EAAE,QAAQ,CAAC,eAAe,GAAG,QAAQ,CAAC,aAAa,CAAC;KAC3D;IAED,UAAU,aAAa;QACrB,MAAM,EAAE,QAAQ,CAAC,mBAAmB,CAAC;KACtC;IAED,UAAU,mBAAmB;QAC3B,MAAM,EAAE,QAAQ,CAAC,YAAY,CAAC;KAC/B;IAED,UAAU,+BAA+B;QACvC,MAAM,EAAE,QAAQ,CAAC,eAAe,GAAG,QAAQ,CAAC,aAAa,CAAC;KAC3D;IACD,UAAU,kCAAkC;QAC1C,MAAM,EAAE,QAAQ,CAAC,eAAe,GAAG,QAAQ,CAAC,aAAa,CAAC;KAC3D;IAED,UAAU,eAAe;QACvB,MAAM,EACF,QAAQ,CAAC,WAAW,GACpB,QAAQ,CAAC,YAAY,GACrB,QAAQ,CAAC,0BAA0B,CAAC;KACzC;CACF;AAED,OAAO,KAAK,QAAQ,MAAM,sBAAsB,CAAC"}
|
||||
2
node_modules/@typescript-eslint/types/dist/ts-estree.js.map
generated
vendored
2
node_modules/@typescript-eslint/types/dist/ts-estree.js.map
generated
vendored
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"ts-estree.js","sourceRoot":"","sources":["../src/ts-estree.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AA+NA,iEAAiD"}
|
||||
{"version":3,"file":"ts-estree.js","sourceRoot":"","sources":["../src/ts-estree.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAgOA,iEAAiD"}
|
||||
2
node_modules/@typescript-eslint/types/package.json
generated
vendored
2
node_modules/@typescript-eslint/types/package.json
generated
vendored
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@typescript-eslint/types",
|
||||
"version": "8.6.0",
|
||||
"version": "8.7.0",
|
||||
"description": "Types for the TypeScript-ESTree AST spec",
|
||||
"files": [
|
||||
"dist",
|
||||
|
|
|
|||
4
node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.d.ts
generated
vendored
4
node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.d.ts
generated
vendored
|
|
@ -1,4 +1,4 @@
|
|||
export { AST_NODE_TYPES, AST_TOKEN_TYPES, TSESTree, } from '@typescript-eslint/types';
|
||||
export * from './ts-nodes';
|
||||
export * from './estree-to-ts-node-types';
|
||||
export type * from './ts-nodes';
|
||||
export type * from './estree-to-ts-node-types';
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
2
node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.d.ts.map
generated
vendored
2
node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.d.ts.map
generated
vendored
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ts-estree/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,cAAc,EACd,eAAe,EACf,QAAQ,GACT,MAAM,0BAA0B,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,2BAA2B,CAAC"}
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ts-estree/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,cAAc,EACd,eAAe,EACf,QAAQ,GACT,MAAM,0BAA0B,CAAC;AAClC,mBAAmB,YAAY,CAAC;AAChC,mBAAmB,2BAA2B,CAAC"}
|
||||
16
node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.js
generated
vendored
16
node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.js
generated
vendored
|
|
@ -1,18 +1,4 @@
|
|||
"use strict";
|
||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||
}
|
||||
Object.defineProperty(o, k2, desc);
|
||||
}) : (function(o, m, k, k2) {
|
||||
if (k2 === undefined) k2 = k;
|
||||
o[k2] = m[k];
|
||||
}));
|
||||
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
||||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.TSESTree = exports.AST_TOKEN_TYPES = exports.AST_NODE_TYPES = void 0;
|
||||
// for simplicity and backwards-compatibility
|
||||
|
|
@ -20,6 +6,4 @@ var types_1 = require("@typescript-eslint/types");
|
|||
Object.defineProperty(exports, "AST_NODE_TYPES", { enumerable: true, get: function () { return types_1.AST_NODE_TYPES; } });
|
||||
Object.defineProperty(exports, "AST_TOKEN_TYPES", { enumerable: true, get: function () { return types_1.AST_TOKEN_TYPES; } });
|
||||
Object.defineProperty(exports, "TSESTree", { enumerable: true, get: function () { return types_1.TSESTree; } });
|
||||
__exportStar(require("./ts-nodes"), exports);
|
||||
__exportStar(require("./estree-to-ts-node-types"), exports);
|
||||
//# sourceMappingURL=index.js.map
|
||||
2
node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.js.map
generated
vendored
2
node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/index.js.map
generated
vendored
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ts-estree/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,kDAIkC;AAHhC,uGAAA,cAAc,OAAA;AACd,wGAAA,eAAe,OAAA;AACf,iGAAA,QAAQ,OAAA;AAEV,6CAA2B;AAC3B,4DAA0C"}
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ts-estree/index.ts"],"names":[],"mappings":";;;AAAA,6CAA6C;AAC7C,kDAIkC;AAHhC,uGAAA,cAAc,OAAA;AACd,wGAAA,eAAe,OAAA;AACf,iGAAA,QAAQ,OAAA"}
|
||||
6
node_modules/@typescript-eslint/typescript-estree/package.json
generated
vendored
6
node_modules/@typescript-eslint/typescript-estree/package.json
generated
vendored
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@typescript-eslint/typescript-estree",
|
||||
"version": "8.6.0",
|
||||
"version": "8.7.0",
|
||||
"description": "A parser that converts TypeScript source code into an ESTree compatible form",
|
||||
"files": [
|
||||
"dist",
|
||||
|
|
@ -54,8 +54,8 @@
|
|||
"typecheck": "tsc --noEmit"
|
||||
},
|
||||
"dependencies": {
|
||||
"@typescript-eslint/types": "8.6.0",
|
||||
"@typescript-eslint/visitor-keys": "8.6.0",
|
||||
"@typescript-eslint/types": "8.7.0",
|
||||
"@typescript-eslint/visitor-keys": "8.7.0",
|
||||
"debug": "^4.3.4",
|
||||
"fast-glob": "^3.3.2",
|
||||
"is-glob": "^4.0.3",
|
||||
|
|
|
|||
2
node_modules/@typescript-eslint/utils/dist/eslint-utils/index.d.ts
generated
vendored
2
node_modules/@typescript-eslint/utils/dist/eslint-utils/index.d.ts
generated
vendored
|
|
@ -1,7 +1,7 @@
|
|||
export * from './applyDefault';
|
||||
export * from './deepMerge';
|
||||
export * from './getParserServices';
|
||||
export * from './InferTypesFromRule';
|
||||
export type * from './InferTypesFromRule';
|
||||
export * from './nullThrows';
|
||||
export * from './RuleCreator';
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
2
node_modules/@typescript-eslint/utils/dist/eslint-utils/index.d.ts.map
generated
vendored
2
node_modules/@typescript-eslint/utils/dist/eslint-utils/index.d.ts.map
generated
vendored
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC"}
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/eslint-utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,mBAAmB,sBAAsB,CAAC;AAC1C,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC"}
|
||||
1
node_modules/@typescript-eslint/utils/dist/eslint-utils/index.js
generated
vendored
1
node_modules/@typescript-eslint/utils/dist/eslint-utils/index.js
generated
vendored
|
|
@ -17,7 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|||
__exportStar(require("./applyDefault"), exports);
|
||||
__exportStar(require("./deepMerge"), exports);
|
||||
__exportStar(require("./getParserServices"), exports);
|
||||
__exportStar(require("./InferTypesFromRule"), exports);
|
||||
__exportStar(require("./nullThrows"), exports);
|
||||
__exportStar(require("./RuleCreator"), exports);
|
||||
//# sourceMappingURL=index.js.map
|
||||
2
node_modules/@typescript-eslint/utils/dist/eslint-utils/index.js.map
generated
vendored
2
node_modules/@typescript-eslint/utils/dist/eslint-utils/index.js.map
generated
vendored
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/eslint-utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,8CAA4B;AAC5B,sDAAoC;AACpC,uDAAqC;AACrC,+CAA6B;AAC7B,gDAA8B"}
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/eslint-utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,8CAA4B;AAC5B,sDAAoC;AAEpC,+CAA6B;AAC7B,gDAA8B"}
|
||||
2
node_modules/@typescript-eslint/utils/dist/index.d.ts
generated
vendored
2
node_modules/@typescript-eslint/utils/dist/index.d.ts
generated
vendored
|
|
@ -1,6 +1,6 @@
|
|||
export * as ASTUtils from './ast-utils';
|
||||
export * as ESLintUtils from './eslint-utils';
|
||||
export * as JSONSchema from './json-schema';
|
||||
export type * as JSONSchema from './json-schema';
|
||||
export * as TSESLint from './ts-eslint';
|
||||
export * from './ts-estree';
|
||||
export * as TSUtils from './ts-utils';
|
||||
|
|
|
|||
2
node_modules/@typescript-eslint/utils/dist/index.d.ts.map
generated
vendored
2
node_modules/@typescript-eslint/utils/dist/index.d.ts.map
generated
vendored
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,aAAa,CAAC;AAExC,OAAO,KAAK,WAAW,MAAM,gBAAgB,CAAC;AAC9C,OAAO,KAAK,UAAU,MAAM,eAAe,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,aAAa,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC"}
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,aAAa,CAAC;AAExC,OAAO,KAAK,WAAW,MAAM,gBAAgB,CAAC;AAC9C,YAAY,KAAK,UAAU,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,QAAQ,MAAM,aAAa,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC"}
|
||||
3
node_modules/@typescript-eslint/utils/dist/index.js
generated
vendored
3
node_modules/@typescript-eslint/utils/dist/index.js
generated
vendored
|
|
@ -26,10 +26,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.TSUtils = exports.TSESLint = exports.JSONSchema = exports.ESLintUtils = exports.ASTUtils = void 0;
|
||||
exports.TSUtils = exports.TSESLint = exports.ESLintUtils = exports.ASTUtils = void 0;
|
||||
exports.ASTUtils = __importStar(require("./ast-utils"));
|
||||
exports.ESLintUtils = __importStar(require("./eslint-utils"));
|
||||
exports.JSONSchema = __importStar(require("./json-schema"));
|
||||
exports.TSESLint = __importStar(require("./ts-eslint"));
|
||||
__exportStar(require("./ts-estree"), exports);
|
||||
exports.TSUtils = __importStar(require("./ts-utils"));
|
||||
|
|
|
|||
2
node_modules/@typescript-eslint/utils/dist/index.js.map
generated
vendored
2
node_modules/@typescript-eslint/utils/dist/index.js.map
generated
vendored
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wDAAwC;AAExC,8DAA8C;AAC9C,4DAA4C;AAC5C,wDAAwC;AACxC,8CAA4B;AAC5B,sDAAsC"}
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wDAAwC;AAExC,8DAA8C;AAE9C,wDAAwC;AACxC,8CAA4B;AAC5B,sDAAsC"}
|
||||
11
node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts
generated
vendored
11
node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts
generated
vendored
|
|
@ -322,7 +322,6 @@ interface RuleListenerBaseSelectors {
|
|||
AssignmentExpression?: RuleFunction<TSESTree.AssignmentExpression>;
|
||||
AssignmentPattern?: RuleFunction<TSESTree.AssignmentPattern>;
|
||||
AwaitExpression?: RuleFunction<TSESTree.AwaitExpression>;
|
||||
BigIntLiteral?: RuleFunction<TSESTree.BigIntLiteral>;
|
||||
BinaryExpression?: RuleFunction<TSESTree.BinaryExpression>;
|
||||
BlockStatement?: RuleFunction<TSESTree.BlockStatement>;
|
||||
BreakStatement?: RuleFunction<TSESTree.BreakStatement>;
|
||||
|
|
@ -350,6 +349,7 @@ interface RuleListenerBaseSelectors {
|
|||
FunctionExpression?: RuleFunction<TSESTree.FunctionExpression>;
|
||||
Identifier?: RuleFunction<TSESTree.Identifier>;
|
||||
IfStatement?: RuleFunction<TSESTree.IfStatement>;
|
||||
ImportAttribute?: RuleFunction<TSESTree.ImportAttribute>;
|
||||
ImportDeclaration?: RuleFunction<TSESTree.ImportDeclaration>;
|
||||
ImportDefaultSpecifier?: RuleFunction<TSESTree.ImportDefaultSpecifier>;
|
||||
ImportExpression?: RuleFunction<TSESTree.ImportExpression>;
|
||||
|
|
@ -364,6 +364,7 @@ interface RuleListenerBaseSelectors {
|
|||
JSXFragment?: RuleFunction<TSESTree.JSXFragment>;
|
||||
JSXIdentifier?: RuleFunction<TSESTree.JSXIdentifier>;
|
||||
JSXMemberExpression?: RuleFunction<TSESTree.JSXMemberExpression>;
|
||||
JSXNamespacedName?: RuleFunction<TSESTree.JSXNamespacedName>;
|
||||
JSXOpeningElement?: RuleFunction<TSESTree.JSXOpeningElement>;
|
||||
JSXOpeningFragment?: RuleFunction<TSESTree.JSXOpeningFragment>;
|
||||
JSXSpreadAttribute?: RuleFunction<TSESTree.JSXSpreadAttribute>;
|
||||
|
|
@ -378,6 +379,7 @@ interface RuleListenerBaseSelectors {
|
|||
NewExpression?: RuleFunction<TSESTree.NewExpression>;
|
||||
ObjectExpression?: RuleFunction<TSESTree.ObjectExpression>;
|
||||
ObjectPattern?: RuleFunction<TSESTree.ObjectPattern>;
|
||||
PrivateIdentifier?: RuleFunction<TSESTree.PrivateIdentifier>;
|
||||
Program?: RuleFunction<TSESTree.Program>;
|
||||
Property?: RuleFunction<TSESTree.Property>;
|
||||
PropertyDefinition?: RuleFunction<TSESTree.PropertyDefinition>;
|
||||
|
|
@ -385,6 +387,7 @@ interface RuleListenerBaseSelectors {
|
|||
ReturnStatement?: RuleFunction<TSESTree.ReturnStatement>;
|
||||
SequenceExpression?: RuleFunction<TSESTree.SequenceExpression>;
|
||||
SpreadElement?: RuleFunction<TSESTree.SpreadElement>;
|
||||
StaticBlock?: RuleFunction<TSESTree.StaticBlock>;
|
||||
Super?: RuleFunction<TSESTree.Super>;
|
||||
SwitchCase?: RuleFunction<TSESTree.SwitchCase>;
|
||||
SwitchStatement?: RuleFunction<TSESTree.SwitchStatement>;
|
||||
|
|
@ -394,6 +397,7 @@ interface RuleListenerBaseSelectors {
|
|||
ThisExpression?: RuleFunction<TSESTree.ThisExpression>;
|
||||
ThrowStatement?: RuleFunction<TSESTree.ThrowStatement>;
|
||||
TryStatement?: RuleFunction<TSESTree.TryStatement>;
|
||||
TSAbstractAccessorProperty?: RuleFunction<TSESTree.TSAbstractAccessorProperty>;
|
||||
TSAbstractKeyword?: RuleFunction<TSESTree.TSAbstractKeyword>;
|
||||
TSAbstractMethodDefinition?: RuleFunction<TSESTree.TSAbstractMethodDefinition>;
|
||||
TSAbstractPropertyDefinition?: RuleFunction<TSESTree.TSAbstractPropertyDefinition>;
|
||||
|
|
@ -411,6 +415,7 @@ interface RuleListenerBaseSelectors {
|
|||
TSDeclareFunction?: RuleFunction<TSESTree.TSDeclareFunction>;
|
||||
TSDeclareKeyword?: RuleFunction<TSESTree.TSDeclareKeyword>;
|
||||
TSEmptyBodyFunctionExpression?: RuleFunction<TSESTree.TSEmptyBodyFunctionExpression>;
|
||||
TSEnumBody?: RuleFunction<TSESTree.TSEnumBody>;
|
||||
TSEnumDeclaration?: RuleFunction<TSESTree.TSEnumDeclaration>;
|
||||
TSEnumMember?: RuleFunction<TSESTree.TSEnumMember>;
|
||||
TSExportAssignment?: RuleFunction<TSESTree.TSExportAssignment>;
|
||||
|
|
@ -422,15 +427,18 @@ interface RuleListenerBaseSelectors {
|
|||
TSIndexedAccessType?: RuleFunction<TSESTree.TSIndexedAccessType>;
|
||||
TSIndexSignature?: RuleFunction<TSESTree.TSIndexSignature>;
|
||||
TSInferType?: RuleFunction<TSESTree.TSInferType>;
|
||||
TSInstantiationExpression?: RuleFunction<TSESTree.TSInstantiationExpression>;
|
||||
TSInterfaceBody?: RuleFunction<TSESTree.TSInterfaceBody>;
|
||||
TSInterfaceDeclaration?: RuleFunction<TSESTree.TSInterfaceDeclaration>;
|
||||
TSInterfaceHeritage?: RuleFunction<TSESTree.TSInterfaceHeritage>;
|
||||
TSIntersectionType?: RuleFunction<TSESTree.TSIntersectionType>;
|
||||
TSIntrinsicKeyword?: RuleFunction<TSESTree.TSIntrinsicKeyword>;
|
||||
TSLiteralType?: RuleFunction<TSESTree.TSLiteralType>;
|
||||
TSMappedType?: RuleFunction<TSESTree.TSMappedType>;
|
||||
TSMethodSignature?: RuleFunction<TSESTree.TSMethodSignature>;
|
||||
TSModuleBlock?: RuleFunction<TSESTree.TSModuleBlock>;
|
||||
TSModuleDeclaration?: RuleFunction<TSESTree.TSModuleDeclaration>;
|
||||
TSNamedTupleMember?: RuleFunction<TSESTree.TSNamedTupleMember>;
|
||||
TSNamespaceExportDeclaration?: RuleFunction<TSESTree.TSNamespaceExportDeclaration>;
|
||||
TSNeverKeyword?: RuleFunction<TSESTree.TSNeverKeyword>;
|
||||
TSNonNullExpression?: RuleFunction<TSESTree.TSNonNullExpression>;
|
||||
|
|
@ -450,6 +458,7 @@ interface RuleListenerBaseSelectors {
|
|||
TSStaticKeyword?: RuleFunction<TSESTree.TSStaticKeyword>;
|
||||
TSStringKeyword?: RuleFunction<TSESTree.TSStringKeyword>;
|
||||
TSSymbolKeyword?: RuleFunction<TSESTree.TSSymbolKeyword>;
|
||||
TSTemplateLiteralType?: RuleFunction<TSESTree.TSTemplateLiteralType>;
|
||||
TSThisType?: RuleFunction<TSESTree.TSThisType>;
|
||||
TSTupleType?: RuleFunction<TSESTree.TSTupleType>;
|
||||
TSTypeAliasDeclaration?: RuleFunction<TSESTree.TSTypeAliasDeclaration>;
|
||||
|
|
|
|||
2
node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts.map
generated
vendored
2
node_modules/@typescript-eslint/utils/dist/ts-eslint/Rule.d.ts.map
generated
vendored
File diff suppressed because one or more lines are too long
12
node_modules/@typescript-eslint/utils/dist/ts-eslint/index.d.ts
generated
vendored
12
node_modules/@typescript-eslint/utils/dist/ts-eslint/index.d.ts
generated
vendored
|
|
@ -1,11 +1,11 @@
|
|||
export * from './AST';
|
||||
export * from './Config';
|
||||
export type * from './AST';
|
||||
export type * from './Config';
|
||||
export * from './ESLint';
|
||||
export * from './Linter';
|
||||
export * from './Parser';
|
||||
export * from './ParserOptions';
|
||||
export * from './Processor';
|
||||
export * from './Rule';
|
||||
export type * from './Parser';
|
||||
export type * from './ParserOptions';
|
||||
export type * from './Processor';
|
||||
export type * from './Rule';
|
||||
export * from './RuleTester';
|
||||
export * from './Scope';
|
||||
export * from './SourceCode';
|
||||
|
|
|
|||
2
node_modules/@typescript-eslint/utils/dist/ts-eslint/index.d.ts.map
generated
vendored
2
node_modules/@typescript-eslint/utils/dist/ts-eslint/index.d.ts.map
generated
vendored
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ts-eslint/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC"}
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ts-eslint/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,OAAO,CAAC;AAC3B,mBAAmB,UAAU,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,mBAAmB,UAAU,CAAC;AAC9B,mBAAmB,iBAAiB,CAAC;AACrC,mBAAmB,aAAa,CAAC;AACjC,mBAAmB,QAAQ,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC"}
|
||||
6
node_modules/@typescript-eslint/utils/dist/ts-eslint/index.js
generated
vendored
6
node_modules/@typescript-eslint/utils/dist/ts-eslint/index.js
generated
vendored
|
|
@ -14,14 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
__exportStar(require("./AST"), exports);
|
||||
__exportStar(require("./Config"), exports);
|
||||
__exportStar(require("./ESLint"), exports);
|
||||
__exportStar(require("./Linter"), exports);
|
||||
__exportStar(require("./Parser"), exports);
|
||||
__exportStar(require("./ParserOptions"), exports);
|
||||
__exportStar(require("./Processor"), exports);
|
||||
__exportStar(require("./Rule"), exports);
|
||||
__exportStar(require("./RuleTester"), exports);
|
||||
__exportStar(require("./Scope"), exports);
|
||||
__exportStar(require("./SourceCode"), exports);
|
||||
|
|
|
|||
2
node_modules/@typescript-eslint/utils/dist/ts-eslint/index.js.map
generated
vendored
2
node_modules/@typescript-eslint/utils/dist/ts-eslint/index.js.map
generated
vendored
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ts-eslint/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,2CAAyB;AACzB,2CAAyB;AACzB,2CAAyB;AACzB,2CAAyB;AACzB,kDAAgC;AAChC,8CAA4B;AAC5B,yCAAuB;AACvB,+CAA6B;AAC7B,0CAAwB;AACxB,+CAA6B"}
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ts-eslint/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAEA,2CAAyB;AACzB,2CAAyB;AAKzB,+CAA6B;AAC7B,0CAAwB;AACxB,+CAA6B"}
|
||||
8
node_modules/@typescript-eslint/utils/package.json
generated
vendored
8
node_modules/@typescript-eslint/utils/package.json
generated
vendored
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@typescript-eslint/utils",
|
||||
"version": "8.6.0",
|
||||
"version": "8.7.0",
|
||||
"description": "Utilities for working with TypeScript + ESLint together",
|
||||
"files": [
|
||||
"dist",
|
||||
|
|
@ -64,9 +64,9 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@eslint-community/eslint-utils": "^4.4.0",
|
||||
"@typescript-eslint/scope-manager": "8.6.0",
|
||||
"@typescript-eslint/types": "8.6.0",
|
||||
"@typescript-eslint/typescript-estree": "8.6.0"
|
||||
"@typescript-eslint/scope-manager": "8.7.0",
|
||||
"@typescript-eslint/types": "8.7.0",
|
||||
"@typescript-eslint/typescript-estree": "8.7.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"eslint": "^8.57.0 || ^9.0.0"
|
||||
|
|
|
|||
4
node_modules/@typescript-eslint/visitor-keys/package.json
generated
vendored
4
node_modules/@typescript-eslint/visitor-keys/package.json
generated
vendored
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@typescript-eslint/visitor-keys",
|
||||
"version": "8.6.0",
|
||||
"version": "8.7.0",
|
||||
"description": "Visitor keys used to help traverse the TypeScript-ESTree AST",
|
||||
"files": [
|
||||
"dist",
|
||||
|
|
@ -47,7 +47,7 @@
|
|||
"typecheck": "tsc --noEmit"
|
||||
},
|
||||
"dependencies": {
|
||||
"@typescript-eslint/types": "8.6.0",
|
||||
"@typescript-eslint/types": "8.7.0",
|
||||
"eslint-visitor-keys": "^3.4.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
|
|||
99
package-lock.json
generated
99
package-lock.json
generated
|
|
@ -43,7 +43,7 @@
|
|||
"@ava/typescript": "4.1.0",
|
||||
"@eslint/compat": "^1.1.1",
|
||||
"@eslint/eslintrc": "^3.1.0",
|
||||
"@eslint/js": "^9.10.0",
|
||||
"@eslint/js": "^9.11.0",
|
||||
"@microsoft/eslint-formatter-sarif": "^3.1.0",
|
||||
"@types/adm-zip": "^0.5.5",
|
||||
"@types/console-log-level": "^1.4.5",
|
||||
|
|
@ -52,14 +52,14 @@
|
|||
"@types/node": "20.9.0",
|
||||
"@types/semver": "^7.5.8",
|
||||
"@types/sinon": "^17.0.3",
|
||||
"@typescript-eslint/eslint-plugin": "^8.6.0",
|
||||
"@typescript-eslint/parser": "^8.6.0",
|
||||
"@typescript-eslint/eslint-plugin": "^8.7.0",
|
||||
"@typescript-eslint/parser": "^8.7.0",
|
||||
"ava": "^5.3.1",
|
||||
"eslint": "^8.57.1",
|
||||
"eslint-import-resolver-typescript": "^3.6.3",
|
||||
"eslint-plugin-filenames": "^1.3.2",
|
||||
"eslint-plugin-github": "^5.0.2",
|
||||
"eslint-plugin-import": "~2.29.1",
|
||||
"eslint-plugin-import": "^2.29.1",
|
||||
"eslint-plugin-no-async-foreach": "^0.1.1",
|
||||
"micromatch": "4.0.8",
|
||||
"nock": "^13.5.5",
|
||||
|
|
@ -519,9 +519,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@eslint/js": {
|
||||
"version": "9.10.0",
|
||||
"resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.10.0.tgz",
|
||||
"integrity": "sha512-fuXtbiP5GWIn8Fz+LWoOMVf/Jxm+aajZYkhi6CuEm4SxymFM+eUWzbO9qXT+L0iCkL5+KGYMCSGxo686H19S1g==",
|
||||
"version": "9.11.0",
|
||||
"resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.11.0.tgz",
|
||||
"integrity": "sha512-LPkkenkDqyzTFauZLLAPhIb48fj6drrfMvRGSL9tS3AcZBSVTllemLSNyCvHNNL2t797S/6DJNSIwRwXgMO/eQ==",
|
||||
"dev": true,
|
||||
"engines": {
|
||||
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
||||
|
|
@ -1013,16 +1013,16 @@
|
|||
"license": "MIT"
|
||||
},
|
||||
"node_modules/@typescript-eslint/eslint-plugin": {
|
||||
"version": "8.6.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.6.0.tgz",
|
||||
"integrity": "sha512-UOaz/wFowmoh2G6Mr9gw60B1mm0MzUtm6Ic8G2yM1Le6gyj5Loi/N+O5mocugRGY+8OeeKmkMmbxNqUCq3B4Sg==",
|
||||
"version": "8.7.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.7.0.tgz",
|
||||
"integrity": "sha512-RIHOoznhA3CCfSTFiB6kBGLQtB/sox+pJ6jeFu6FxJvqL8qRxq/FfGO/UhsGgQM9oGdXkV4xUgli+dt26biB6A==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"@eslint-community/regexpp": "^4.10.0",
|
||||
"@typescript-eslint/scope-manager": "8.6.0",
|
||||
"@typescript-eslint/type-utils": "8.6.0",
|
||||
"@typescript-eslint/utils": "8.6.0",
|
||||
"@typescript-eslint/visitor-keys": "8.6.0",
|
||||
"@typescript-eslint/scope-manager": "8.7.0",
|
||||
"@typescript-eslint/type-utils": "8.7.0",
|
||||
"@typescript-eslint/utils": "8.7.0",
|
||||
"@typescript-eslint/visitor-keys": "8.7.0",
|
||||
"graphemer": "^1.4.0",
|
||||
"ignore": "^5.3.1",
|
||||
"natural-compare": "^1.4.0",
|
||||
|
|
@ -1046,15 +1046,15 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/parser": {
|
||||
"version": "8.6.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.6.0.tgz",
|
||||
"integrity": "sha512-eQcbCuA2Vmw45iGfcyG4y6rS7BhWfz9MQuk409WD47qMM+bKCGQWXxvoOs1DUp+T7UBMTtRTVT+kXr7Sh4O9Ow==",
|
||||
"version": "8.7.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.7.0.tgz",
|
||||
"integrity": "sha512-lN0btVpj2unxHlNYLI//BQ7nzbMJYBVQX5+pbNXvGYazdlgYonMn4AhhHifQ+J4fGRYA/m1DjaQjx+fDetqBOQ==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"@typescript-eslint/scope-manager": "8.6.0",
|
||||
"@typescript-eslint/types": "8.6.0",
|
||||
"@typescript-eslint/typescript-estree": "8.6.0",
|
||||
"@typescript-eslint/visitor-keys": "8.6.0",
|
||||
"@typescript-eslint/scope-manager": "8.7.0",
|
||||
"@typescript-eslint/types": "8.7.0",
|
||||
"@typescript-eslint/typescript-estree": "8.7.0",
|
||||
"@typescript-eslint/visitor-keys": "8.7.0",
|
||||
"debug": "^4.3.4"
|
||||
},
|
||||
"engines": {
|
||||
|
|
@ -1074,13 +1074,13 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/scope-manager": {
|
||||
"version": "8.6.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.6.0.tgz",
|
||||
"integrity": "sha512-ZuoutoS5y9UOxKvpc/GkvF4cuEmpokda4wRg64JEia27wX+PysIE9q+lzDtlHHgblwUWwo5/Qn+/WyTUvDwBHw==",
|
||||
"version": "8.7.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.7.0.tgz",
|
||||
"integrity": "sha512-87rC0k3ZlDOuz82zzXRtQ7Akv3GKhHs0ti4YcbAJtaomllXoSO8hi7Ix3ccEvCd824dy9aIX+j3d2UMAfCtVpg==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"@typescript-eslint/types": "8.6.0",
|
||||
"@typescript-eslint/visitor-keys": "8.6.0"
|
||||
"@typescript-eslint/types": "8.7.0",
|
||||
"@typescript-eslint/visitor-keys": "8.7.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
||||
|
|
@ -1091,13 +1091,13 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/type-utils": {
|
||||
"version": "8.6.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.6.0.tgz",
|
||||
"integrity": "sha512-dtePl4gsuenXVwC7dVNlb4mGDcKjDT/Ropsk4za/ouMBPplCLyznIaR+W65mvCvsyS97dymoBRrioEXI7k0XIg==",
|
||||
"version": "8.7.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.7.0.tgz",
|
||||
"integrity": "sha512-tl0N0Mj3hMSkEYhLkjREp54OSb/FI6qyCzfiiclvJvOqre6hsZTGSnHtmFLDU8TIM62G7ygEa1bI08lcuRwEnQ==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"@typescript-eslint/typescript-estree": "8.6.0",
|
||||
"@typescript-eslint/utils": "8.6.0",
|
||||
"@typescript-eslint/typescript-estree": "8.7.0",
|
||||
"@typescript-eslint/utils": "8.7.0",
|
||||
"debug": "^4.3.4",
|
||||
"ts-api-utils": "^1.3.0"
|
||||
},
|
||||
|
|
@ -1115,9 +1115,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/types": {
|
||||
"version": "8.6.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.6.0.tgz",
|
||||
"integrity": "sha512-rojqFZGd4MQxw33SrOy09qIDS8WEldM8JWtKQLAjf/X5mGSeEFh5ixQlxssMNyPslVIk9yzWqXCsV2eFhYrYUw==",
|
||||
"version": "8.7.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.7.0.tgz",
|
||||
"integrity": "sha512-LLt4BLHFwSfASHSF2K29SZ+ZCsbQOM+LuarPjRUuHm+Qd09hSe3GCeaQbcCr+Mik+0QFRmep/FyZBO6fJ64U3w==",
|
||||
"dev": true,
|
||||
"engines": {
|
||||
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
||||
|
|
@ -1128,13 +1128,13 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/typescript-estree": {
|
||||
"version": "8.6.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.6.0.tgz",
|
||||
"integrity": "sha512-MOVAzsKJIPIlLK239l5s06YXjNqpKTVhBVDnqUumQJja5+Y94V3+4VUFRA0G60y2jNnTVwRCkhyGQpavfsbq/g==",
|
||||
"version": "8.7.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.7.0.tgz",
|
||||
"integrity": "sha512-MC8nmcGHsmfAKxwnluTQpNqceniT8SteVwd2voYlmiSWGOtjvGXdPl17dYu2797GVscK30Z04WRM28CrKS9WOg==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"@typescript-eslint/types": "8.6.0",
|
||||
"@typescript-eslint/visitor-keys": "8.6.0",
|
||||
"@typescript-eslint/types": "8.7.0",
|
||||
"@typescript-eslint/visitor-keys": "8.7.0",
|
||||
"debug": "^4.3.4",
|
||||
"fast-glob": "^3.3.2",
|
||||
"is-glob": "^4.0.3",
|
||||
|
|
@ -1180,15 +1180,15 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/utils": {
|
||||
"version": "8.6.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.6.0.tgz",
|
||||
"integrity": "sha512-eNp9cWnYf36NaOVjkEUznf6fEgVy1TWpE0o52e4wtojjBx7D1UV2WAWGzR+8Y5lVFtpMLPwNbC67T83DWSph4A==",
|
||||
"version": "8.7.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.7.0.tgz",
|
||||
"integrity": "sha512-ZbdUdwsl2X/s3CiyAu3gOlfQzpbuG3nTWKPoIvAu1pu5r8viiJvv2NPN2AqArL35NCYtw/lrPPfM4gxrMLNLPw==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"@eslint-community/eslint-utils": "^4.4.0",
|
||||
"@typescript-eslint/scope-manager": "8.6.0",
|
||||
"@typescript-eslint/types": "8.6.0",
|
||||
"@typescript-eslint/typescript-estree": "8.6.0"
|
||||
"@typescript-eslint/scope-manager": "8.7.0",
|
||||
"@typescript-eslint/types": "8.7.0",
|
||||
"@typescript-eslint/typescript-estree": "8.7.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
||||
|
|
@ -1202,12 +1202,12 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/visitor-keys": {
|
||||
"version": "8.6.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.6.0.tgz",
|
||||
"integrity": "sha512-wapVFfZg9H0qOYh4grNVQiMklJGluQrOUiOhYRrQWhx7BY/+I1IYb8BczWNbbUpO+pqy0rDciv3lQH5E1bCLrg==",
|
||||
"version": "8.7.0",
|
||||
"resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.7.0.tgz",
|
||||
"integrity": "sha512-b1tx0orFCCh/THWPQa2ZwWzvOeyzzp36vkJYOpVg0u8UVOIsfVrnuC9FqAw9gRKn+rG2VmWQ/zDJZzkxUnj/XQ==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"@typescript-eslint/types": "8.6.0",
|
||||
"@typescript-eslint/types": "8.7.0",
|
||||
"eslint-visitor-keys": "^3.4.3"
|
||||
},
|
||||
"engines": {
|
||||
|
|
@ -2834,7 +2834,6 @@
|
|||
"resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.29.1.tgz",
|
||||
"integrity": "sha512-BbPC0cuExzhiMo4Ff1BTVwHpjjv28C5R+btTOGaCRC7UEz801up0JadwkeSk5Ued6TG34uaczuVuH6qyy5YUxw==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"array-includes": "^3.1.7",
|
||||
"array.prototype.findlastindex": "^1.2.3",
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@
|
|||
"@ava/typescript": "4.1.0",
|
||||
"@eslint/compat": "^1.1.1",
|
||||
"@eslint/eslintrc": "^3.1.0",
|
||||
"@eslint/js": "^9.10.0",
|
||||
"@eslint/js": "^9.11.0",
|
||||
"@microsoft/eslint-formatter-sarif": "^3.1.0",
|
||||
"@types/adm-zip": "^0.5.5",
|
||||
"@types/console-log-level": "^1.4.5",
|
||||
|
|
@ -68,14 +68,14 @@
|
|||
"@types/node": "20.9.0",
|
||||
"@types/semver": "^7.5.8",
|
||||
"@types/sinon": "^17.0.3",
|
||||
"@typescript-eslint/eslint-plugin": "^8.6.0",
|
||||
"@typescript-eslint/parser": "^8.6.0",
|
||||
"@typescript-eslint/eslint-plugin": "^8.7.0",
|
||||
"@typescript-eslint/parser": "^8.7.0",
|
||||
"ava": "^5.3.1",
|
||||
"eslint": "^8.57.1",
|
||||
"eslint-import-resolver-typescript": "^3.6.3",
|
||||
"eslint-plugin-filenames": "^1.3.2",
|
||||
"eslint-plugin-github": "^5.0.2",
|
||||
"eslint-plugin-import": "~2.29.1",
|
||||
"eslint-plugin-import": "^2.29.1",
|
||||
"eslint-plugin-no-async-foreach": "^0.1.1",
|
||||
"micromatch": "4.0.8",
|
||||
"nock": "^13.5.5",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue