☕️ Classic, reliable, trusted test framework for Node.js and the browser
build(dev-deps): upgrade `eslint` from v8 to v9 (#5559)
Đỗ Trọng Hảibb24ca8fde15
diff --git a/karma.conf.js b/karma.conf.jsindex 441a2abe..a5c5c462 100644--- a/karma.conf.js+++ b/karma.conf.js@@ -151,7 +151,7 @@ const createBundleDir = (cfg, bundleDirPath) => {bundleDirPath,},};- } catch (ignored) {+ } catch {console.error(`Failed to create ${bundleDirPath}; using temp directory instead`,);diff --git a/lib/cli/lookup-files.js b/lib/cli/lookup-files.jsindex c9cbb8df..0fb57dcb 100644--- a/lib/cli/lookup-files.js+++ b/lib/cli/lookup-files.js@@ -112,7 +112,7 @@ module.exports = function lookupFiles(if (stat.isFile() || stat.isFIFO()) {return filepath;}- } catch (err) {+ } catch {// ignore errorreturn;}@@ -130,7 +130,7 @@ module.exports = function lookupFiles(}return;}- } catch (ignored) {+ } catch {return;}if (!extensions.length) {diff --git a/lib/errors.js b/lib/errors.jsindex ae085d9b..167ecc7b 100644--- a/lib/errors.js+++ b/lib/errors.js@@ -299,7 +299,7 @@ function createMultipleDoneError(runnable, originalErr) {if (runnable.parent.root) {title += " (of root suite)";}- } catch (ignored) {+ } catch {title = format("<%s> (of unknown suite)", runnable.title);}var message = format(diff --git a/lib/mocha.js b/lib/mocha.jsindex df250ec2..f95ccabc 100644--- a/lib/mocha.js+++ b/lib/mocha.js@@ -358,7 +358,7 @@ Mocha.prototype.ui = function (ui) {if (!bindInterface) {try {bindInterface = require(ui);- } catch (err) {+ } catch {throw createInvalidInterfaceError(`invalid interface '${ui}'`, ui);}}diff --git a/lib/nodejs/worker.js b/lib/nodejs/worker.jsindex 4b87d98f..0f22b6cf 100644--- a/lib/nodejs/worker.js+++ b/lib/nodejs/worker.js@@ -83,9 +83,8 @@ async function run(filepath, serializedOptions = "{}") {}let argv;try {- // eslint-disable-next-line no-evalargv = eval("(" + serializedOptions + ")");- } catch (err) {+ } catch {throw createInvalidArgumentValueError("run() was unable to deserialize the options","serializedOptions",diff --git a/lib/reporters/base.js b/lib/reporters/base.jsindex 3c200388..a091c910 100644--- a/lib/reporters/base.js+++ b/lib/reporters/base.js@@ -217,7 +217,7 @@ var generateDiff = (exports.generateDiff = function (actual, expected) {result = `${result}\n [mocha] output truncated to ${maxLen} characters, see "maxDiffSize" reporter-option\n`;}return result;- } catch (err) {+ } catch {var msg ="\n " +color("diff added", "+ expected") +diff --git a/lib/runner.js b/lib/runner.jsindex ebce7523..3ec39c77 100644--- a/lib/runner.js+++ b/lib/runner.js@@ -495,8 +495,8 @@ Runner.prototype.fail = function (test, err, force) {try {currentErr.stack = stackFilter(currentErr.stack);- } catch (ignore) {- // some environments do not take kindly to monkeying with the stack+ } catch {+ // Ignore error as some environments do not take kindly to monkeying with the stack}currentErr = currentErr.cause;diff --git a/lib/utils.js b/lib/utils.jsindex 85ae591c..9c056f25 100644--- a/lib/utils.js+++ b/lib/utils.js@@ -362,9 +362,9 @@ function jsonStringify(object, spaces, depth) {*/exports.canonicalize = function canonicalize(value, stack, typeHint) {var canonicalizedObj;- /* eslint-disable no-unused-vars */+var prop;- /* eslint-enable no-unused-vars */+typeHint = typeHint || canonicalType(value);function withStack(value, fn) {stack.push(value);@@ -392,12 +392,12 @@ exports.canonicalize = function canonicalize(value, stack, typeHint) {});break;case "function":- /* eslint-disable-next-line no-unused-vars, no-unreachable-loop */+ /* eslint-disable-next-line no-unused-vars */for (prop in value) {canonicalizedObj = {};break;}- /* eslint-enable guard-for-in */+if (!canonicalizedObj) {canonicalizedObj = emptyRepresentation(value, typeHint);break;diff --git a/package-lock.json b/package-lock.jsonindex 7cfee0fb..0d7f0e24 100644--- a/package-lock.json+++ b/package-lock.json@@ -51,8 +51,8 @@"chai": "^4.3.4","coffeescript": "^2.6.1","cross-env": "^7.0.2",- "eslint": "^8.57.1",- "eslint-plugin-n": "^17.15.1",+ "eslint": "^9.39.1",+ "eslint-plugin-n": "^17.23.1","fail-on-errors-webpack-plugin": "^3.0.0","globals": "^13.24.0","http-server": "^14.1.1",@@ -591,9 +591,9 @@}},"node_modules/@eslint-community/eslint-utils": {- "version": "4.4.1",- "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.1.tgz",- "integrity": "sha512-s3O3waFUrMV8P/XaF/+ZTp1X9XBZW1a4B97ZnjQF2KYWaFD2A8KyFBsrsfSjEmjn3RGWAIuvlneuZm3CUK3jbA==",+ "version": "4.9.0",+ "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.9.0.tgz",+ "integrity": "sha512-ayVFHdtZ+hsq1t2Dy24wCmGXGe4q9Gu3smhLYALJrr473ZH27MsnSL+LKUlimp4BWJqMDMLmPpx/Q9R3OAlL4g==","dev": true,"license": "MIT","dependencies": {@@ -619,44 +619,125 @@"node": "^12.0.0 || ^14.0.0 || >=16.0.0"}},+ "node_modules/@eslint/config-array": {+ "version": "0.21.1",+ "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.21.1.tgz",+ "integrity": "sha512-aw1gNayWpdI/jSYVgzN5pL0cfzU02GT3NBpeT/DXbx1/1x7ZKxFPd9bwrzygx/qiwIQiJ1sw/zD8qY/kRvlGHA==",+ "dev": true,+ "license": "Apache-2.0",+ "dependencies": {+ "@eslint/object-schema": "^2.1.7",+ "debug": "^4.3.1",+ "minimatch": "^3.1.2"+ },+ "engines": {+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ }+ },+ "node_modules/@eslint/config-array/node_modules/brace-expansion": {+ "version": "1.1.12",+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz",+ "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "balanced-match": "^1.0.0",+ "concat-map": "0.0.1"+ }+ },+ "node_modules/@eslint/config-array/node_modules/minimatch": {+ "version": "3.1.2",+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",+ "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "brace-expansion": "^1.1.7"+ },+ "engines": {+ "node": "*"+ }+ },+ "node_modules/@eslint/config-helpers": {+ "version": "0.4.2",+ "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.4.2.tgz",+ "integrity": "sha512-gBrxN88gOIf3R7ja5K9slwNayVcZgK6SOUORm2uBzTeIEfeVaIhOpCtTox3P6R7o2jLFwLFTLnC7kU/RGcYEgw==",+ "dev": true,+ "license": "Apache-2.0",+ "dependencies": {+ "@eslint/core": "^0.17.0"+ },+ "engines": {+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ }+ },+ "node_modules/@eslint/core": {+ "version": "0.17.0",+ "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.17.0.tgz",+ "integrity": "sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ==",+ "dev": true,+ "license": "Apache-2.0",+ "dependencies": {+ "@types/json-schema": "^7.0.15"+ },+ "engines": {+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ }+ },"node_modules/@eslint/eslintrc": {- "version": "2.1.4",- "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz",- "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==",+ "version": "3.3.3",+ "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.3.tgz",+ "integrity": "sha512-Kr+LPIUVKz2qkx1HAMH8q1q6azbqBAsXJUxBl/ODDuVPX45Z9DfwB8tPjTi6nNZ8BuM3nbJxC5zCAg5elnBUTQ==","dev": true,+ "license": "MIT","dependencies": {"ajv": "^6.12.4","debug": "^4.3.2",- "espree": "^9.6.0",- "globals": "^13.19.0",+ "espree": "^10.0.1",+ "globals": "^14.0.0","ignore": "^5.2.0","import-fresh": "^3.2.1",- "js-yaml": "^4.1.0",+ "js-yaml": "^4.1.1","minimatch": "^3.1.2","strip-json-comments": "^3.1.1"},"engines": {- "node": "^12.22.0 || ^14.17.0 || >=16.0.0"+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"},"funding": {"url": "https://opencollective.com/eslint"}},"node_modules/@eslint/eslintrc/node_modules/brace-expansion": {- "version": "1.1.11",- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",- "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",+ "version": "1.1.12",+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz",+ "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==","dev": true,+ "license": "MIT","dependencies": {"balanced-match": "^1.0.0","concat-map": "0.0.1"}},+ "node_modules/@eslint/eslintrc/node_modules/globals": {+ "version": "14.0.0",+ "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz",+ "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },"node_modules/@eslint/eslintrc/node_modules/minimatch": {"version": "3.1.2","resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz","integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==","dev": true,+ "license": "ISC","dependencies": {"brace-expansion": "^1.1.7"},@@ -674,44 +755,52 @@"node": "^12.22.0 || ^14.17.0 || >=16.0.0"}},- "node_modules/@humanwhocodes/config-array": {- "version": "0.13.0",- "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.13.0.tgz",- "integrity": "sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw==",- "deprecated": "Use @eslint/config-array instead",+ "node_modules/@eslint/object-schema": {+ "version": "2.1.7",+ "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.7.tgz",+ "integrity": "sha512-VtAOaymWVfZcmZbp6E2mympDIHvyjXs/12LqWYjVw6qjrfF+VK+fyG33kChz3nnK+SU5/NeHOqrTEHS8sXO3OA==",+ "dev": true,+ "license": "Apache-2.0",+ "engines": {+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ }+ },+ "node_modules/@eslint/plugin-kit": {+ "version": "0.4.1",+ "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.4.1.tgz",+ "integrity": "sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==","dev": true,"license": "Apache-2.0","dependencies": {- "@humanwhocodes/object-schema": "^2.0.3",- "debug": "^4.3.1",- "minimatch": "^3.0.5"+ "@eslint/core": "^0.17.0",+ "levn": "^0.4.1"},"engines": {- "node": ">=10.10.0"+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"}},- "node_modules/@humanwhocodes/config-array/node_modules/brace-expansion": {- "version": "1.1.12",- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz",- "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==",+ "node_modules/@humanfs/core": {+ "version": "0.19.1",+ "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz",+ "integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==","dev": true,- "license": "MIT",- "dependencies": {- "balanced-match": "^1.0.0",- "concat-map": "0.0.1"+ "license": "Apache-2.0",+ "engines": {+ "node": ">=18.18.0"}},- "node_modules/@humanwhocodes/config-array/node_modules/minimatch": {- "version": "3.1.2",- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",- "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",+ "node_modules/@humanfs/node": {+ "version": "0.16.7",+ "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.7.tgz",+ "integrity": "sha512-/zUx+yOsIrG4Y43Eh2peDeKCxlRt/gET6aHfaKpuq267qXdYDFViVHfMaLyygZOnl0kGWxFIgsBy8QFuTLUXEQ==","dev": true,- "license": "ISC",+ "license": "Apache-2.0","dependencies": {- "brace-expansion": "^1.1.7"+ "@humanfs/core": "^0.19.1",+ "@humanwhocodes/retry": "^0.4.0"},"engines": {- "node": "*"+ "node": ">=18.18.0"}},"node_modules/@humanwhocodes/module-importer": {@@ -727,13 +816,19 @@"url": "https://github.com/sponsors/nzakas"}},- "node_modules/@humanwhocodes/object-schema": {- "version": "2.0.3",- "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz",- "integrity": "sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==",- "deprecated": "Use @eslint/object-schema instead",+ "node_modules/@humanwhocodes/retry": {+ "version": "0.4.3",+ "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz",+ "integrity": "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==","dev": true,- "license": "BSD-3-Clause"+ "license": "Apache-2.0",+ "engines": {+ "node": ">=18.18"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/nzakas"+ }},"node_modules/@iarna/toml": {"version": "2.2.5",@@ -2257,10 +2352,11 @@"dev": true},"node_modules/@types/json-schema": {- "version": "7.0.11",- "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz",- "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==",- "dev": true+ "version": "7.0.15",+ "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz",+ "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==",+ "dev": true,+ "license": "MIT"},"node_modules/@types/keyv": {"version": "3.1.4",@@ -2392,12 +2488,6 @@"@types/node": "*"}},- "node_modules/@ungap/structured-clone": {- "version": "1.2.0",- "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz",- "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==",- "dev": true- },"node_modules/@voxpelli/semver-set": {"version": "6.0.0","resolved": "https://registry.npmjs.org/@voxpelli/semver-set/-/semver-set-6.0.0.tgz",@@ -2866,10 +2956,11 @@}},"node_modules/acorn": {- "version": "8.11.3",- "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz",- "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==",+ "version": "8.15.0",+ "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz",+ "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==","dev": true,+ "license": "MIT","bin": {"acorn": "bin/acorn"},@@ -2891,6 +2982,7 @@"resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz","integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==","dev": true,+ "license": "MIT","peerDependencies": {"acorn": "^6.0.0 || ^7.0.0 || ^8.0.0"}@@ -4465,6 +4557,7 @@"resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz","integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==","dev": true,+ "license": "MIT","engines": {"node": ">=6"}@@ -6078,18 +6171,6 @@"integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==","dev": true},- "node_modules/doctrine": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz",- "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==",- "dev": true,- "dependencies": {- "esutils": "^2.0.2"- },- "engines": {- "node": ">=6.0.0"- }- },"node_modules/doctypes": {"version": "1.1.0","resolved": "https://registry.npmjs.org/doctypes/-/doctypes-1.1.0.tgz",@@ -6483,60 +6564,63 @@}},"node_modules/eslint": {- "version": "8.57.1",- "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.1.tgz",- "integrity": "sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA==",- "deprecated": "This version is no longer supported. Please see https://eslint.org/version-support for other options.",+ "version": "9.39.1",+ "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.39.1.tgz",+ "integrity": "sha512-BhHmn2yNOFA9H9JmmIVKJmd288g9hrVRDkdoIgRCRuSySRUHH7r/DI6aAXW9T1WwUuY3DFgrcaqB+deURBLR5g==","dev": true,"license": "MIT","dependencies": {- "@eslint-community/eslint-utils": "^4.2.0",- "@eslint-community/regexpp": "^4.6.1",- "@eslint/eslintrc": "^2.1.4",- "@eslint/js": "8.57.1",- "@humanwhocodes/config-array": "^0.13.0",+ "@eslint-community/eslint-utils": "^4.8.0",+ "@eslint-community/regexpp": "^4.12.1",+ "@eslint/config-array": "^0.21.1",+ "@eslint/config-helpers": "^0.4.2",+ "@eslint/core": "^0.17.0",+ "@eslint/eslintrc": "^3.3.1",+ "@eslint/js": "9.39.1",+ "@eslint/plugin-kit": "^0.4.1",+ "@humanfs/node": "^0.16.6","@humanwhocodes/module-importer": "^1.0.1",- "@nodelib/fs.walk": "^1.2.8",- "@ungap/structured-clone": "^1.2.0",+ "@humanwhocodes/retry": "^0.4.2",+ "@types/estree": "^1.0.6","ajv": "^6.12.4","chalk": "^4.0.0",- "cross-spawn": "^7.0.2",+ "cross-spawn": "^7.0.6","debug": "^4.3.2",- "doctrine": "^3.0.0","escape-string-regexp": "^4.0.0",- "eslint-scope": "^7.2.2",- "eslint-visitor-keys": "^3.4.3",- "espree": "^9.6.1",- "esquery": "^1.4.2",+ "eslint-scope": "^8.4.0",+ "eslint-visitor-keys": "^4.2.1",+ "espree": "^10.4.0",+ "esquery": "^1.5.0","esutils": "^2.0.2","fast-deep-equal": "^3.1.3",- "file-entry-cache": "^6.0.1",+ "file-entry-cache": "^8.0.0","find-up": "^5.0.0","glob-parent": "^6.0.2",- "globals": "^13.19.0",- "graphemer": "^1.4.0","ignore": "^5.2.0","imurmurhash": "^0.1.4","is-glob": "^4.0.0",- "is-path-inside": "^3.0.3",- "js-yaml": "^4.1.0","json-stable-stringify-without-jsonify": "^1.0.1",- "levn": "^0.4.1","lodash.merge": "^4.6.2","minimatch": "^3.1.2","natural-compare": "^1.4.0",- "optionator": "^0.9.3",- "strip-ansi": "^6.0.1",- "text-table": "^0.2.0"+ "optionator": "^0.9.3"},"bin": {"eslint": "bin/eslint.js"},"engines": {- "node": "^12.22.0 || ^14.17.0 || >=16.0.0"+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"},"funding": {- "url": "https://opencollective.com/eslint"+ "url": "https://eslint.org/donate"+ },+ "peerDependencies": {+ "jiti": "*"+ },+ "peerDependenciesMeta": {+ "jiti": {+ "optional": true+ }}},"node_modules/eslint-compat-utils": {@@ -6578,20 +6662,21 @@}},"node_modules/eslint-plugin-n": {- "version": "17.15.1",- "resolved": "https://registry.npmjs.org/eslint-plugin-n/-/eslint-plugin-n-17.15.1.tgz",- "integrity": "sha512-KFw7x02hZZkBdbZEFQduRGH4VkIH4MW97ClsbAM4Y4E6KguBJWGfWG1P4HEIpZk2bkoWf0bojpnjNAhYQP8beA==",+ "version": "17.23.1",+ "resolved": "https://registry.npmjs.org/eslint-plugin-n/-/eslint-plugin-n-17.23.1.tgz",+ "integrity": "sha512-68PealUpYoHOBh332JLLD9Sj7OQUDkFpmcfqt8R9sySfFSeuGJjMTJQvCRRB96zO3A/PELRLkPrzsHmzEFQQ5A==","dev": true,"license": "MIT","dependencies": {- "@eslint-community/eslint-utils": "^4.4.1",+ "@eslint-community/eslint-utils": "^4.5.0","enhanced-resolve": "^5.17.1","eslint-plugin-es-x": "^7.8.0","get-tsconfig": "^4.8.1","globals": "^15.11.0",+ "globrex": "^0.1.2","ignore": "^5.3.2",- "minimatch": "^9.0.5",- "semver": "^7.6.3"+ "semver": "^7.6.3",+ "ts-declaration-location": "^1.0.6"},"engines": {"node": "^18.18.0 || ^20.9.0 || >=21.1.0"@@ -6651,6 +6736,19 @@"url": "https://opencollective.com/eslint"}},+ "node_modules/eslint/node_modules/@eslint/js": {+ "version": "9.39.1",+ "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.39.1.tgz",+ "integrity": "sha512-S26Stp4zCy88tH94QbBv3XCuzRQiZ9yXofEILmglYTh/Ug/a9/umqvgFtYBAo3Lp0nsI/5/qH1CCrbdK3AP1Tw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ },+ "funding": {+ "url": "https://eslint.org/donate"+ }+ },"node_modules/eslint/node_modules/brace-expansion": {"version": "1.1.11","resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",@@ -6662,16 +6760,30 @@}},"node_modules/eslint/node_modules/eslint-scope": {- "version": "7.2.2",- "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz",- "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==",+ "version": "8.4.0",+ "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.4.0.tgz",+ "integrity": "sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==","dev": true,+ "license": "BSD-2-Clause","dependencies": {"esrecurse": "^4.3.0","estraverse": "^5.2.0"},"engines": {- "node": "^12.22.0 || ^14.17.0 || >=16.0.0"+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ },+ "funding": {+ "url": "https://opencollective.com/eslint"+ }+ },+ "node_modules/eslint/node_modules/eslint-visitor-keys": {+ "version": "4.2.1",+ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz",+ "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==",+ "dev": true,+ "license": "Apache-2.0",+ "engines": {+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"},"funding": {"url": "https://opencollective.com/eslint"@@ -6719,17 +6831,31 @@}},"node_modules/espree": {- "version": "9.6.1",- "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz",- "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==",+ "version": "10.4.0",+ "resolved": "https://registry.npmjs.org/espree/-/espree-10.4.0.tgz",+ "integrity": "sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==","dev": true,+ "license": "BSD-2-Clause","dependencies": {- "acorn": "^8.9.0",+ "acorn": "^8.15.0","acorn-jsx": "^5.3.2",- "eslint-visitor-keys": "^3.4.1"+ "eslint-visitor-keys": "^4.2.1"},"engines": {- "node": "^12.22.0 || ^14.17.0 || >=16.0.0"+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"+ },+ "funding": {+ "url": "https://opencollective.com/eslint"+ }+ },+ "node_modules/espree/node_modules/eslint-visitor-keys": {+ "version": "4.2.1",+ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz",+ "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==",+ "dev": true,+ "license": "Apache-2.0",+ "engines": {+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"},"funding": {"url": "https://opencollective.com/eslint"@@ -6792,6 +6918,7 @@"resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz","integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==","dev": true,+ "license": "BSD-2-Clause","engines": {"node": ">=0.10.0"}@@ -7141,15 +7268,16 @@}},"node_modules/file-entry-cache": {- "version": "6.0.1",- "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz",- "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==",+ "version": "8.0.0",+ "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz",+ "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==","dev": true,+ "license": "MIT","dependencies": {- "flat-cache": "^3.0.4"+ "flat-cache": "^4.0.0"},"engines": {- "node": "^10.12.0 || >=12.0.0"+ "node": ">=16.0.0"}},"node_modules/file-type": {@@ -7357,23 +7485,42 @@}},"node_modules/flat-cache": {- "version": "3.0.4",- "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz",- "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==",+ "version": "4.0.1",+ "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz",+ "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==","dev": true,+ "license": "MIT","dependencies": {- "flatted": "^3.1.0",- "rimraf": "^3.0.2"+ "flatted": "^3.2.9",+ "keyv": "^4.5.4"},"engines": {- "node": "^10.12.0 || >=12.0.0"+ "node": ">=16"+ }+ },+ "node_modules/flat-cache/node_modules/json-buffer": {+ "version": "3.0.1",+ "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz",+ "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/flat-cache/node_modules/keyv": {+ "version": "4.5.4",+ "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz",+ "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "json-buffer": "3.0.1"}},"node_modules/flatted": {- "version": "3.2.7",- "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz",- "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==",- "dev": true+ "version": "3.3.3",+ "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.3.tgz",+ "integrity": "sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==",+ "dev": true,+ "license": "ISC"},"node_modules/follow-redirects": {"version": "1.15.2",@@ -7732,6 +7879,13 @@"url": "https://github.com/sponsors/ljharb"}},+ "node_modules/globrex": {+ "version": "0.1.2",+ "resolved": "https://registry.npmjs.org/globrex/-/globrex-0.1.2.tgz",+ "integrity": "sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg==",+ "dev": true,+ "license": "MIT"+ },"node_modules/got": {"version": "11.8.6","resolved": "https://registry.npmjs.org/got/-/got-11.8.6.tgz",@@ -7917,12 +8071,6 @@"integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==","dev": true},- "node_modules/graphemer": {- "version": "1.4.0",- "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz",- "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==",- "dev": true- },"node_modules/gray-matter": {"version": "4.0.3","resolved": "https://registry.npmjs.org/gray-matter/-/gray-matter-4.0.3.tgz",@@ -8417,10 +8565,11 @@}},"node_modules/import-fresh": {- "version": "3.3.0",- "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz",- "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==",+ "version": "3.3.1",+ "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz",+ "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==","dev": true,+ "license": "MIT","dependencies": {"parent-module": "^1.0.0","resolve-from": "^4.0.0"@@ -9314,9 +9463,10 @@"license": "MIT"},"node_modules/js-yaml": {- "version": "4.1.0",- "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz",- "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==",+ "version": "4.1.1",+ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz",+ "integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==",+ "license": "MIT","dependencies": {"argparse": "^2.0.1"},@@ -12549,6 +12699,7 @@"resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz","integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==","dev": true,+ "license": "MIT","dependencies": {"callsites": "^3.0.0"},@@ -13924,6 +14075,7 @@"resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz","integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==","dev": true,+ "license": "MIT","engines": {"node": ">=4"}@@ -15618,12 +15770,6 @@"node": "*"}},- "node_modules/text-table": {- "version": "0.2.0",- "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz",- "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==",- "dev": true- },"node_modules/through": {"version": "2.3.8","resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz",@@ -15838,6 +15984,42 @@"url": "https://github.com/sponsors/wooorm"}},+ "node_modules/ts-declaration-location": {+ "version": "1.0.7",+ "resolved": "https://registry.npmjs.org/ts-declaration-location/-/ts-declaration-location-1.0.7.tgz",+ "integrity": "sha512-EDyGAwH1gO0Ausm9gV6T2nUvBgXT5kGoCMJPllOaooZ+4VvJiKBdZE7wK18N1deEowhcUptS+5GXZK8U/fvpwA==",+ "dev": true,+ "funding": [+ {+ "type": "ko-fi",+ "url": "https://ko-fi.com/rebeccastevens"+ },+ {+ "type": "tidelift",+ "url": "https://tidelift.com/funding/github/npm/ts-declaration-location"+ }+ ],+ "license": "BSD-3-Clause",+ "dependencies": {+ "picomatch": "^4.0.2"+ },+ "peerDependencies": {+ "typescript": ">=4.0.0"+ }+ },+ "node_modules/ts-declaration-location/node_modules/picomatch": {+ "version": "4.0.3",+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz",+ "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/jonschlinkert"+ }+ },"node_modules/tslib": {"version": "2.5.0","resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz",@@ -17572,9 +17754,9 @@}},"@eslint-community/eslint-utils": {- "version": "4.4.1",- "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.1.tgz",- "integrity": "sha512-s3O3waFUrMV8P/XaF/+ZTp1X9XBZW1a4B97ZnjQF2KYWaFD2A8KyFBsrsfSjEmjn3RGWAIuvlneuZm3CUK3jbA==",+ "version": "4.9.0",+ "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.9.0.tgz",+ "integrity": "sha512-ayVFHdtZ+hsq1t2Dy24wCmGXGe4q9Gu3smhLYALJrr473ZH27MsnSL+LKUlimp4BWJqMDMLmPpx/Q9R3OAlL4g==","dev": true,"requires": {"eslint-visitor-keys": "^3.4.3"@@ -17586,27 +17768,21 @@"integrity": "sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==","dev": true},- "@eslint/eslintrc": {- "version": "2.1.4",- "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz",- "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==",+ "@eslint/config-array": {+ "version": "0.21.1",+ "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.21.1.tgz",+ "integrity": "sha512-aw1gNayWpdI/jSYVgzN5pL0cfzU02GT3NBpeT/DXbx1/1x7ZKxFPd9bwrzygx/qiwIQiJ1sw/zD8qY/kRvlGHA==","dev": true,"requires": {- "ajv": "^6.12.4",- "debug": "^4.3.2",- "espree": "^9.6.0",- "globals": "^13.19.0",- "ignore": "^5.2.0",- "import-fresh": "^3.2.1",- "js-yaml": "^4.1.0",- "minimatch": "^3.1.2",- "strip-json-comments": "^3.1.1"+ "@eslint/object-schema": "^2.1.7",+ "debug": "^4.3.1",+ "minimatch": "^3.1.2"},"dependencies": {"brace-expansion": {- "version": "1.1.11",- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",- "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",+ "version": "1.1.12",+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz",+ "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==","dev": true,"requires": {"balanced-match": "^1.0.0",@@ -17624,21 +17800,39 @@}}},- "@eslint/js": {- "version": "8.57.1",- "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.1.tgz",- "integrity": "sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q==",- "dev": true+ "@eslint/config-helpers": {+ "version": "0.4.2",+ "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.4.2.tgz",+ "integrity": "sha512-gBrxN88gOIf3R7ja5K9slwNayVcZgK6SOUORm2uBzTeIEfeVaIhOpCtTox3P6R7o2jLFwLFTLnC7kU/RGcYEgw==",+ "dev": true,+ "requires": {+ "@eslint/core": "^0.17.0"+ }},- "@humanwhocodes/config-array": {- "version": "0.13.0",- "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.13.0.tgz",- "integrity": "sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw==",+ "@eslint/core": {+ "version": "0.17.0",+ "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.17.0.tgz",+ "integrity": "sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ==","dev": true,"requires": {- "@humanwhocodes/object-schema": "^2.0.3",- "debug": "^4.3.1",- "minimatch": "^3.0.5"+ "@types/json-schema": "^7.0.15"+ }+ },+ "@eslint/eslintrc": {+ "version": "3.3.3",+ "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.3.tgz",+ "integrity": "sha512-Kr+LPIUVKz2qkx1HAMH8q1q6azbqBAsXJUxBl/ODDuVPX45Z9DfwB8tPjTi6nNZ8BuM3nbJxC5zCAg5elnBUTQ==",+ "dev": true,+ "requires": {+ "ajv": "^6.12.4",+ "debug": "^4.3.2",+ "espree": "^10.0.1",+ "globals": "^14.0.0",+ "ignore": "^5.2.0",+ "import-fresh": "^3.2.1",+ "js-yaml": "^4.1.1",+ "minimatch": "^3.1.2",+ "strip-json-comments": "^3.1.1"},"dependencies": {"brace-expansion": {@@ -17651,6 +17845,12 @@"concat-map": "0.0.1"}},+ "globals": {+ "version": "14.0.0",+ "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz",+ "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==",+ "dev": true+ },"minimatch": {"version": "3.1.2","resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",@@ -17662,16 +17862,54 @@}}},+ "@eslint/js": {+ "version": "8.57.1",+ "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.1.tgz",+ "integrity": "sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q==",+ "dev": true+ },+ "@eslint/object-schema": {+ "version": "2.1.7",+ "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.7.tgz",+ "integrity": "sha512-VtAOaymWVfZcmZbp6E2mympDIHvyjXs/12LqWYjVw6qjrfF+VK+fyG33kChz3nnK+SU5/NeHOqrTEHS8sXO3OA==",+ "dev": true+ },+ "@eslint/plugin-kit": {+ "version": "0.4.1",+ "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.4.1.tgz",+ "integrity": "sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==",+ "dev": true,+ "requires": {+ "@eslint/core": "^0.17.0",+ "levn": "^0.4.1"+ }+ },+ "@humanfs/core": {+ "version": "0.19.1",+ "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz",+ "integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==",+ "dev": true+ },+ "@humanfs/node": {+ "version": "0.16.7",+ "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.7.tgz",+ "integrity": "sha512-/zUx+yOsIrG4Y43Eh2peDeKCxlRt/gET6aHfaKpuq267qXdYDFViVHfMaLyygZOnl0kGWxFIgsBy8QFuTLUXEQ==",+ "dev": true,+ "requires": {+ "@humanfs/core": "^0.19.1",+ "@humanwhocodes/retry": "^0.4.0"+ }+ },"@humanwhocodes/module-importer": {"version": "1.0.1","resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz","integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==","dev": true},- "@humanwhocodes/object-schema": {- "version": "2.0.3",- "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz",- "integrity": "sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==",+ "@humanwhocodes/retry": {+ "version": "0.4.3",+ "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz",+ "integrity": "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==","dev": true},"@iarna/toml": {@@ -18622,9 +18860,9 @@"dev": true},"@types/json-schema": {- "version": "7.0.11",- "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz",- "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==",+ "version": "7.0.15",+ "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz",+ "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==","dev": true},"@types/keyv": {@@ -18752,12 +18990,6 @@"@types/node": "*"}},- "@ungap/structured-clone": {- "version": "1.2.0",- "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz",- "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==",- "dev": true- },"@voxpelli/semver-set": {"version": "6.0.0","resolved": "https://registry.npmjs.org/@voxpelli/semver-set/-/semver-set-6.0.0.tgz",@@ -19130,9 +19362,9 @@}},"acorn": {- "version": "8.11.3",- "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz",- "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==",+ "version": "8.15.0",+ "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz",+ "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==","dev": true},"acorn-import-assertions": {@@ -21682,15 +21914,6 @@}}},- "doctrine": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz",- "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==",- "dev": true,- "requires": {- "esutils": "^2.0.2"- }- },"doctypes": {"version": "1.1.0","resolved": "https://registry.npmjs.org/doctypes/-/doctypes-1.1.0.tgz",@@ -22007,51 +22230,53 @@"integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA=="},"eslint": {- "version": "8.57.1",- "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.1.tgz",- "integrity": "sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA==",- "dev": true,- "requires": {- "@eslint-community/eslint-utils": "^4.2.0",- "@eslint-community/regexpp": "^4.6.1",- "@eslint/eslintrc": "^2.1.4",- "@eslint/js": "8.57.1",- "@humanwhocodes/config-array": "^0.13.0",+ "version": "9.39.1",+ "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.39.1.tgz",+ "integrity": "sha512-BhHmn2yNOFA9H9JmmIVKJmd288g9hrVRDkdoIgRCRuSySRUHH7r/DI6aAXW9T1WwUuY3DFgrcaqB+deURBLR5g==",+ "dev": true,+ "requires": {+ "@eslint-community/eslint-utils": "^4.8.0",+ "@eslint-community/regexpp": "^4.12.1",+ "@eslint/config-array": "^0.21.1",+ "@eslint/config-helpers": "^0.4.2",+ "@eslint/core": "^0.17.0",+ "@eslint/eslintrc": "^3.3.1",+ "@eslint/js": "9.39.1",+ "@eslint/plugin-kit": "^0.4.1",+ "@humanfs/node": "^0.16.6","@humanwhocodes/module-importer": "^1.0.1",- "@nodelib/fs.walk": "^1.2.8",- "@ungap/structured-clone": "^1.2.0",+ "@humanwhocodes/retry": "^0.4.2",+ "@types/estree": "^1.0.7","ajv": "^6.12.4","chalk": "^4.0.0",- "cross-spawn": "^7.0.2",+ "cross-spawn": "^7.0.6","debug": "^4.3.2",- "doctrine": "^3.0.0","escape-string-regexp": "^4.0.0",- "eslint-scope": "^7.2.2",- "eslint-visitor-keys": "^3.4.3",- "espree": "^9.6.1",- "esquery": "^1.4.2",+ "eslint-scope": "^8.4.0",+ "eslint-visitor-keys": "^4.2.1",+ "espree": "^10.4.0",+ "esquery": "^1.5.0","esutils": "^2.0.2","fast-deep-equal": "^3.1.3",- "file-entry-cache": "^6.0.1",+ "file-entry-cache": "^8.0.0","find-up": "^5.0.0","glob-parent": "^6.0.2",- "globals": "^13.19.0",- "graphemer": "^1.4.0","ignore": "^5.2.0","imurmurhash": "^0.1.4","is-glob": "^4.0.0",- "is-path-inside": "^3.0.3",- "js-yaml": "^4.1.0","json-stable-stringify-without-jsonify": "^1.0.1",- "levn": "^0.4.1","lodash.merge": "^4.6.2","minimatch": "^3.1.2","natural-compare": "^1.4.0",- "optionator": "^0.9.3",- "strip-ansi": "^6.0.1",- "text-table": "^0.2.0"+ "optionator": "^0.9.3"},"dependencies": {+ "@eslint/js": {+ "version": "9.39.1",+ "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.39.1.tgz",+ "integrity": "sha512-S26Stp4zCy88tH94QbBv3XCuzRQiZ9yXofEILmglYTh/Ug/a9/umqvgFtYBAo3Lp0nsI/5/qH1CCrbdK3AP1Tw==",+ "dev": true+ },"brace-expansion": {"version": "1.1.11","resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",@@ -22063,15 +22288,21 @@}},"eslint-scope": {- "version": "7.2.2",- "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz",- "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==",+ "version": "8.4.0",+ "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.4.0.tgz",+ "integrity": "sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==","dev": true,"requires": {"esrecurse": "^4.3.0","estraverse": "^5.2.0"}},+ "eslint-visitor-keys": {+ "version": "4.2.1",+ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz",+ "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==",+ "dev": true+ },"glob-parent": {"version": "6.0.2","resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz",@@ -22127,19 +22358,20 @@}},"eslint-plugin-n": {- "version": "17.15.1",- "resolved": "https://registry.npmjs.org/eslint-plugin-n/-/eslint-plugin-n-17.15.1.tgz",- "integrity": "sha512-KFw7x02hZZkBdbZEFQduRGH4VkIH4MW97ClsbAM4Y4E6KguBJWGfWG1P4HEIpZk2bkoWf0bojpnjNAhYQP8beA==",+ "version": "17.23.1",+ "resolved": "https://registry.npmjs.org/eslint-plugin-n/-/eslint-plugin-n-17.23.1.tgz",+ "integrity": "sha512-68PealUpYoHOBh332JLLD9Sj7OQUDkFpmcfqt8R9sySfFSeuGJjMTJQvCRRB96zO3A/PELRLkPrzsHmzEFQQ5A==","dev": true,"requires": {- "@eslint-community/eslint-utils": "^4.4.1",+ "@eslint-community/eslint-utils": "^4.5.0","enhanced-resolve": "^5.17.1","eslint-plugin-es-x": "^7.8.0","get-tsconfig": "^4.8.1","globals": "^15.11.0",+ "globrex": "^0.1.2","ignore": "^5.3.2",- "minimatch": "^9.0.5",- "semver": "^7.6.3"+ "semver": "^7.6.3",+ "ts-declaration-location": "^1.0.6"},"dependencies": {"globals": {@@ -22175,14 +22407,22 @@"dev": true},"espree": {- "version": "9.6.1",- "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz",- "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==",+ "version": "10.4.0",+ "resolved": "https://registry.npmjs.org/espree/-/espree-10.4.0.tgz",+ "integrity": "sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==","dev": true,"requires": {- "acorn": "^8.9.0",+ "acorn": "^8.15.0","acorn-jsx": "^5.3.2",- "eslint-visitor-keys": "^3.4.1"+ "eslint-visitor-keys": "^4.2.1"+ },+ "dependencies": {+ "eslint-visitor-keys": {+ "version": "4.2.1",+ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz",+ "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==",+ "dev": true+ }}},"esprima": {@@ -22508,12 +22748,12 @@}},"file-entry-cache": {- "version": "6.0.1",- "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz",- "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==",+ "version": "8.0.0",+ "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz",+ "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==","dev": true,"requires": {- "flat-cache": "^3.0.4"+ "flat-cache": "^4.0.0"}},"file-type": {@@ -22674,19 +22914,36 @@"integrity": "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ=="},"flat-cache": {- "version": "3.0.4",- "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz",- "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==",+ "version": "4.0.1",+ "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz",+ "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==","dev": true,"requires": {- "flatted": "^3.1.0",- "rimraf": "^3.0.2"+ "flatted": "^3.2.9",+ "keyv": "^4.5.4"+ },+ "dependencies": {+ "json-buffer": {+ "version": "3.0.1",+ "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz",+ "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==",+ "dev": true+ },+ "keyv": {+ "version": "4.5.4",+ "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz",+ "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==",+ "dev": true,+ "requires": {+ "json-buffer": "3.0.1"+ }+ }}},"flatted": {- "version": "3.2.7",- "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.7.tgz",- "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==",+ "version": "3.3.3",+ "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.3.tgz",+ "integrity": "sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==","dev": true},"follow-redirects": {@@ -22922,6 +23179,12 @@"define-properties": "^1.1.3"}},+ "globrex": {+ "version": "0.1.2",+ "resolved": "https://registry.npmjs.org/globrex/-/globrex-0.1.2.tgz",+ "integrity": "sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg==",+ "dev": true+ },"got": {"version": "11.8.6","resolved": "https://registry.npmjs.org/got/-/got-11.8.6.tgz",@@ -23051,12 +23314,6 @@"integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==","dev": true},- "graphemer": {- "version": "1.4.0",- "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz",- "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==",- "dev": true- },"gray-matter": {"version": "4.0.3","resolved": "https://registry.npmjs.org/gray-matter/-/gray-matter-4.0.3.tgz",@@ -23431,9 +23688,9 @@"dev": true},"import-fresh": {- "version": "3.3.0",- "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz",- "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==",+ "version": "3.3.1",+ "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz",+ "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==","dev": true,"requires": {"parent-module": "^1.0.0",@@ -24070,9 +24327,9 @@"dev": true},"js-yaml": {- "version": "4.1.0",- "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz",- "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==",+ "version": "4.1.1",+ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz",+ "integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==","requires": {"argparse": "^2.0.1"}@@ -28863,12 +29120,6 @@}}},- "text-table": {- "version": "0.2.0",- "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz",- "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==",- "dev": true- },"through": {"version": "2.3.8","resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz",@@ -29030,6 +29281,23 @@"integrity": "sha512-AqTiAOLcj85xS7vQ8QkAV41hPDIJ71XJB4RCUrzo/1GM2CQwhkJGaf9Hgr7BOugMRpgGUrqRg/DrBDl4H40+8g==","dev": true},+ "ts-declaration-location": {+ "version": "1.0.7",+ "resolved": "https://registry.npmjs.org/ts-declaration-location/-/ts-declaration-location-1.0.7.tgz",+ "integrity": "sha512-EDyGAwH1gO0Ausm9gV6T2nUvBgXT5kGoCMJPllOaooZ+4VvJiKBdZE7wK18N1deEowhcUptS+5GXZK8U/fvpwA==",+ "dev": true,+ "requires": {+ "picomatch": "^4.0.2"+ },+ "dependencies": {+ "picomatch": {+ "version": "4.0.3",+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz",+ "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==",+ "dev": true+ }+ }+ },"tslib": {"version": "2.5.0","resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz",diff --git a/package.json b/package.jsonindex f64fc8f5..97591edf 100644--- a/package.json+++ b/package.json@@ -136,8 +136,8 @@"chai": "^4.3.4","coffeescript": "^2.6.1","cross-env": "^7.0.2",- "eslint": "^8.57.1",- "eslint-plugin-n": "^17.15.1",+ "eslint": "^9.39.1",+ "eslint-plugin-n": "^17.23.1","fail-on-errors-webpack-plugin": "^3.0.0","globals": "^13.24.0","http-server": "^14.1.1",diff --git a/test/integration/helpers.js b/test/integration/helpers.jsindex 59a2d9f1..5783580e 100644--- a/test/integration/helpers.js+++ b/test/integration/helpers.js@@ -482,14 +482,11 @@ async function runMochaWatchJSONAsync(args, opts, change) {opts,change,);- return (- res.output- // eslint-disable-next-line no-control-regex- .replace(/\u001b\[\?25./g, "")- .split("\u001b[2K")- .filter((x) => x)- .map((x) => JSON.parse(x))- );+ return res.output+ .replace(/\u001b\[\?25./g, "")+ .split("\u001b[2K")+ .filter((x) => x)+ .map((x) => JSON.parse(x));}const touchRef = new Date();@@ -504,7 +501,7 @@ function touchFile(filepath) {fs.mkdirSync(path.dirname(filepath), { recursive: true });try {fs.utimesSync(filepath, touchRef, touchRef);- } catch (err) {+ } catch {const fd = fs.openSync(filepath, "a");fs.closeSync(fd);}diff --git a/test/integration/init.spec.js b/test/integration/init.spec.jsindex 938987b5..eef9632e 100644--- a/test/integration/init.spec.js+++ b/test/integration/init.spec.js@@ -13,14 +13,14 @@ describe("init command", function () {tmpdir = path.join(os.tmpdir(), "mocha-init");try {fs.mkdirSync(tmpdir);- } catch (ignored) {}+ } catch {}expect(fs.existsSync(tmpdir), "to be true");});afterEach(function () {try {rimraf.sync(tmpdir);- } catch (ignored) {}+ } catch {}});describe("when no path is supplied", function () {diff --git a/test/node-unit/cli/options.spec.js b/test/node-unit/cli/options.spec.jsindex 2efc343f..2c45e045 100644--- a/test/node-unit/cli/options.spec.js+++ b/test/node-unit/cli/options.spec.js@@ -342,14 +342,14 @@ describe("options", function () {it("should not look for a config", function () {try {loadOptions(`--config ${config}`);- } catch (ignored) {}+ } catch {}expect(findConfig, "was not called");});it("should attempt to load file at path", function () {try {loadOptions(`--config ${config}`);- } catch (ignored) {}+ } catch {}expect(loadConfig, "to have a call satisfying", [config]);});diff --git a/test/node-unit/reporters/parallel-buffered.spec.js b/test/node-unit/reporters/parallel-buffered.spec.jsindex d03c10eb..7a94d495 100644--- a/test/node-unit/reporters/parallel-buffered.spec.js+++ b/test/node-unit/reporters/parallel-buffered.spec.js@@ -65,7 +65,7 @@ describe("ParallelBuffered", function () {// befouls our assertion below.sinon.stub(runner, "once");sinon.stub(runner, "on");- // eslint-disable-next-line no-new+new ParallelBuffered(runner);expect(runner.on, "to have calls satisfying", [// via Buffered@@ -84,7 +84,7 @@ describe("ParallelBuffered", function () {it("should listen for Runner events expecting to occur once", function () {sinon.stub(runner, "once");- // eslint-disable-next-line no-new+new ParallelBuffered(runner);expect(runner.once, "to have calls satisfying", [[EVENT_DELAY_BEGIN, expect.it("to be a function")],diff --git a/test/node-unit/serializer.spec.js b/test/node-unit/serializer.spec.jsindex 0ad13ee7..f7ce066c 100644--- a/test/node-unit/serializer.spec.js+++ b/test/node-unit/serializer.spec.js@@ -212,7 +212,7 @@ describe("serializer", function () {it("should not retain not-own props", function () {const obj = {};const err = new Error("monkeypants");- // eslint-disable-next-line no-proto+err.__proto__.code = "MONKEY";expect(SerializableEvent.create("some-event", obj, err).serialize(),@@ -295,7 +295,7 @@ describe("serializer", function () {const obj = {data: Object.create(null),};- // eslint-disable-next-line no-proto+obj.data.__proto__ = { peaches: "prunes" };const expected = Object.assign(Object.create(null), {diff --git a/test/reporters/json.spec.js b/test/reporters/json.spec.jsindex 3cb53fe7..42e05855 100644--- a/test/reporters/json.spec.js+++ b/test/reporters/json.spec.js@@ -32,7 +32,7 @@ describe("JSON reporter", function () {describe("test results", function () {beforeEach(function () {var options = {};- /* eslint no-unused-vars: off */+ /* eslint-disable-next-line no-unused-vars */var mochaReporter = new mocha._reporter(runner, options);});@@ -124,7 +124,7 @@ describe("JSON reporter", function () {}var error = new CircleError();- var test = new Test(testTitle, function (done) {+ var test = new Test(testTitle, function () {throw error;});@@ -162,7 +162,7 @@ describe("JSON reporter", function () {};beforeEach(function () {- /* eslint no-unused-vars: off */+ /* eslint-disable-next-line no-unused-vars */var mochaReporter = new mocha._reporter(runner, options);});diff --git a/test/reporters/xunit.spec.js b/test/reporters/xunit.spec.jsindex e291a2ec..d1edbcee 100644--- a/test/reporters/xunit.spec.js+++ b/test/reporters/xunit.spec.js@@ -288,7 +288,7 @@ describe("XUnit reporter", function () {it("should call 'Base.consoleLog' with line", function () {// :TODO: XUnit needs a trivially testable means to force console.log()var realProcess = process;- process = false; // eslint-disable-line no-native-reassign, no-global-assign+ process = false;var xunit = new XUnit(runner);var fakeThis = { fileStream: false };@@ -296,7 +296,7 @@ describe("XUnit reporter", function () {xunit.write.call(fakeThis, expectedLine);consoleLogStub.restore();- process = realProcess; // eslint-disable-line no-native-reassign, no-global-assign+ process = realProcess;expect(consoleLogStub.calledWith(expectedLine), "to be true");});diff --git a/test/unit/mocha.spec.js b/test/unit/mocha.spec.jsindex cd985a83..6eca3bcb 100644--- a/test/unit/mocha.spec.js+++ b/test/unit/mocha.spec.js@@ -111,7 +111,6 @@ describe("Mocha", function () {describe("when `timeout` option is `undefined`", function () {it("should not attempt to set timeout", function () {- // eslint-disable-next-line no-newnew Mocha({ timeout: undefined });expect(Mocha.prototype.timeout, "was not called");});@@ -119,7 +118,6 @@ describe("Mocha", function () {describe("when `timeout` option is `false`", function () {it("should attempt to set timeout", function () {- // eslint-disable-next-line no-newnew Mocha({ timeout: false });expect(Mocha.prototype.timeout, "to have a call satisfying", [0]).and("was called once",@@ -129,7 +127,6 @@ describe("Mocha", function () {describe("when `global` option is an `Array`", function () {it("should attempt to set globals", function () {- // eslint-disable-next-line no-newnew Mocha({ global: ["singular"] });expect(Mocha.prototype.global, "to have a call satisfying", [["singular"],@@ -139,7 +136,6 @@ describe("Mocha", function () {describe("when `retries` option is present", function () {it("should attempt to set retries`", function () {- // eslint-disable-next-line no-newnew Mocha({ retries: 1 });expect(Mocha.prototype.retries, "to have a call satisfying", [1]).and("was called once",@@ -149,7 +145,6 @@ describe("Mocha", function () {describe("when `retries` option is not present", function () {it("should not attempt to set retries", function () {- // eslint-disable-next-line no-newnew Mocha({});expect(Mocha.prototype.retries, "was not called");});@@ -157,7 +152,6 @@ describe("Mocha", function () {describe("when `rootHooks` option is truthy", function () {it("shouid attempt to set root hooks", function () {- // eslint-disable-next-line no-newnew Mocha({ rootHooks: ["a root hook"] });expect(Mocha.prototype.rootHooks, "to have a call satisfying", [["a root hook"],@@ -168,7 +162,6 @@ describe("Mocha", function () {describe("when `parallel` option is true", function () {describe("and `jobs` option > 1", function () {it("should enable parallel mode", function () {- // eslint-disable-next-line no-newnew Mocha({ parallel: true, jobs: 2 });expect(Mocha.prototype.parallelMode, "to have a call satisfying", [true,@@ -178,7 +171,6 @@ describe("Mocha", function () {describe("and `jobs` option <= 1", function () {it("should not enable parallel mode", function () {- // eslint-disable-next-line no-newnew Mocha({ parallel: true, jobs: 1 });expect(Mocha.prototype.parallelMode, "was not called");});@@ -748,7 +740,8 @@ describe("Mocha", function () {mocha.run(done); // this is async!try {mocha.run();- } catch (ignored) {+ } catch {+ // Ignore error} finally {// it'll be 0 or 1, depending on timing.expect(runner.runAsync.callCount, "to be less than", 2);@@ -778,7 +771,8 @@ describe("Mocha", function () {it("should not call `Runner#runAsync`", function () {try {mocha.run();- } catch (ignored) {+ } catch {+ // Ignore error} finally {expect(runner.runAsync, "was not called");}@@ -809,7 +803,8 @@ describe("Mocha", function () {it("should not call `Runner#runAsync()`", function () {try {mocha.run();- } catch (ignored) {+ } catch {+ // Ignore error} finally {expect(runner.runAsync, "was not called");}diff --git a/test/unit/runner.spec.js b/test/unit/runner.spec.jsindex c9cb4a4a..8e84ca6f 100644--- a/test/unit/runner.spec.js+++ b/test/unit/runner.spec.js@@ -1045,7 +1045,7 @@ describe("Runner", function () {function () {try {runner.uncaught(err);- } catch (ignored) {}+ } catch {}},"not to emit from",runner,diff --git a/test/unit/suite.spec.js b/test/unit/suite.spec.jsindex 01b1e959..c66cf149 100644--- a/test/unit/suite.spec.js+++ b/test/unit/suite.spec.js@@ -6,7 +6,6 @@ const sinon = require("sinon");const errors = require("../../lib/errors");function supportsFunctionNames() {- // eslint-disable-next-line no-extra-parensreturn function foo() {}.name === "foo";}diff --git a/test/unit/utils.spec.js b/test/unit/utils.spec.jsindex 150a998a..cbe3b262 100644--- a/test/unit/utils.spec.js+++ b/test/unit/utils.spec.js@@ -569,8 +569,6 @@ describe("lib/utils", function () {});describe("type()", function () {- /* eslint no-extend-native: off */-var type = utils.type;var toString = Object.prototype.toString;@@ -623,8 +621,6 @@ describe("lib/utils", function () {});describe("canonicalType()", function () {- /* eslint no-extend-native: off */-var type = utils.canonicalType;var toString = Object.prototype.toString;