diff --git a/chromeless/src/preview.ts b/chromeless/src/preview.ts index 0fae1170757..6b8f82ae335 100644 --- a/chromeless/src/preview.ts +++ b/chromeless/src/preview.ts @@ -190,7 +190,7 @@ async function waitUntilNetworkIdle(page: playwright.Page) { await page.waitForLoadState("networkidle"); try { await (await getPreviewIframe(page)).waitForLoadState("networkidle"); - } catch (e) { + } catch { // It's OK for the iframe to be replaced by another one, in which case wait again. await (await getPreviewIframe(page)).waitForLoadState("networkidle"); } diff --git a/core/src/crawl-files.ts b/core/src/crawl-files.ts index f5dd98301a5..5157dc5e688 100644 --- a/core/src/crawl-files.ts +++ b/core/src/crawl-files.ts @@ -75,7 +75,7 @@ export function crawlFiles( existingCache = JSON.parse( fs.readFileSync(cacheFilePath, "utf8") ) as CachedPreviewables; - } catch (e) { + } catch { logger.warn(`Unable to parse JSON from cache at ${cacheFilePath}`); } } diff --git a/core/src/vite/vite-manager.ts b/core/src/vite/vite-manager.ts index b3fc2528587..c8286128f02 100644 --- a/core/src/vite/vite-manager.ts +++ b/core/src/vite/vite-manager.ts @@ -530,7 +530,7 @@ export class ViteManager { } const source = typeof loaded === "object" ? loaded.code : loaded; await viteServer.pluginContainer.transform(source, module.id); - } catch (e) { + } catch { // We know it will fail. return; } diff --git a/daemon/src/client.ts b/daemon/src/client.ts index 39046f7cdc5..aa862c0d5ab 100644 --- a/daemon/src/client.ts +++ b/daemon/src/client.ts @@ -46,7 +46,7 @@ export function createClient(baseUrl: string): Client { try { const response = JSON.parse(responseData); resolve(response); - } catch (e) { + } catch { reject( new Error(`Request to ${path} failed:\n${responseData}`) ); diff --git a/daemon/src/index.ts b/daemon/src/index.ts index 95b0c23d776..d01367d4da3 100644 --- a/daemon/src/index.ts +++ b/daemon/src/index.ts @@ -71,7 +71,7 @@ export async function startDaemon({ try { process.kill(parentProcessId, 0); // Parent process is still alive, see https://stackoverflow.com/a/21296291. - } catch (e) { + } catch { process.stdout.write( `[exit] Parent process with PID ${parentProcessId} exited. Daemon exiting.\n` ); diff --git a/framework-plugins/vue2/src/vue-reader.ts b/framework-plugins/vue2/src/vue-reader.ts index 7c0d8666026..9d01afb88a2 100644 --- a/framework-plugins/vue2/src/vue-reader.ts +++ b/framework-plugins/vue2/src/vue-reader.ts @@ -273,7 +273,7 @@ type PJS_Slots = ${pjsSlotsType}; const slotNameDoubleQuoted = element.slotName || '"default"'; try { return [JSON.parse(slotNameDoubleQuoted)]; - } catch (e) { + } catch { this.logger.warn(`Invalid slot name string: ${slotNameDoubleQuoted}`); return []; } diff --git a/integrations/vscode/src/index.ts b/integrations/vscode/src/index.ts index a817e4719a9..b1fd11df1f8 100644 --- a/integrations/vscode/src/index.ts +++ b/integrations/vscode/src/index.ts @@ -81,7 +81,7 @@ export async function activate({ subscriptions }: vscode.ExtensionContext) { } // Note: ESlint warning isn't relevant because we're correctly inferring arguments types. - // eslint-disable-next-line @typescript-eslint/ban-types + // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type function catchErrors(f: F) { return async (...args: F extends (...args: infer A) => any ? A : never) => { try { diff --git a/integrations/vscode/src/start-daemon.ts b/integrations/vscode/src/start-daemon.ts index 535fdb41527..14eff5ee474 100644 --- a/integrations/vscode/src/start-daemon.ts +++ b/integrations/vscode/src/start-daemon.ts @@ -116,7 +116,7 @@ function streamDaemonLogs( try { const time = Date.now(); utimesSync(logsPath, time, time); - } catch (e) { + } catch { let fd = openSync(logsPath, "a"); closeSync(fd); } @@ -175,7 +175,7 @@ function streamDaemonLogs( resolve(watcher); resolved = true; } - } catch (e: any) { + } catch { // Fine, ignore. It just means log streaming is broken. } }; diff --git a/loader/src/worker.ts b/loader/src/worker.ts index 7e1e8eaf3d8..086798b0e7d 100644 --- a/loader/src/worker.ts +++ b/loader/src/worker.ts @@ -155,7 +155,7 @@ setInterval(() => { try { process.kill(parentProcessId, 0); // Parent process is still alive, see https://stackoverflow.com/a/21296291. - } catch (e) { + } catch { process.exit(0); } }, 1000); diff --git a/package.json b/package.json index d52d8d9d653..6a986663f97 100644 --- a/package.json +++ b/package.json @@ -32,8 +32,8 @@ "@types/inquirer": "^9.0.7", "@types/license-checker": "^25.0.6", "@types/node": "^20.17.6", - "@typescript-eslint/eslint-plugin": "^7.18.0", - "@typescript-eslint/parser": "^7.18.0", + "@typescript-eslint/eslint-plugin": "^8.13.0", + "@typescript-eslint/parser": "^8.13.0", "assert-never": "^1.3.0", "depcheck": "^1.4.7", "eslint": "^9.14.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f0081b75565..d8464e5ac50 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -26,11 +26,11 @@ importers: specifier: ^20.17.6 version: 20.17.6 '@typescript-eslint/eslint-plugin': - specifier: ^7.18.0 - version: 7.18.0(@typescript-eslint/parser@7.18.0(eslint@9.14.0(jiti@2.3.3))(typescript@5.6.3))(eslint@9.14.0(jiti@2.3.3))(typescript@5.6.3) + specifier: ^8.13.0 + version: 8.13.0(@typescript-eslint/parser@8.13.0(eslint@9.14.0(jiti@2.3.3))(typescript@5.6.3))(eslint@9.14.0(jiti@2.3.3))(typescript@5.6.3) '@typescript-eslint/parser': - specifier: ^7.18.0 - version: 7.18.0(eslint@9.14.0(jiti@2.3.3))(typescript@5.6.3) + specifier: ^8.13.0 + version: 8.13.0(eslint@9.14.0(jiti@2.3.3))(typescript@5.6.3) assert-never: specifier: ^1.3.0 version: 1.3.0 @@ -5907,14 +5907,6 @@ packages: peerDependencies: eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 - '@eslint-community/regexpp@4.10.0': - resolution: {integrity: sha512-Cu96Sd2By9mCNTx2iyKOmq10v22jUVQv0lQnlGNy16oE9589yE+QADPbrMGCkA51cKZSg3Pu/aTJVTGfL/qjUA==} - engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} - - '@eslint-community/regexpp@4.11.1': - resolution: {integrity: sha512-m4DVN9ZqskZoLU5GlWZadwDnYo3vAEydiUayB9widCl9ffWx2IvPnp6n3on5rJmziJSw9Bv+Z3ChDVdMwXCY8Q==} - engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} - '@eslint-community/regexpp@4.12.1': resolution: {integrity: sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==} engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} @@ -9071,12 +9063,12 @@ packages: typescript: optional: true - '@typescript-eslint/eslint-plugin@7.18.0': - resolution: {integrity: sha512-94EQTWZ40mzBc42ATNIBimBEDltSJ9RQHCC8vc/PDbxi4k8dVwUAv4o98dk50M1zB+JGFxp43FP7f8+FP8R6Sw==} - engines: {node: ^18.18.0 || >=20.0.0} + '@typescript-eslint/eslint-plugin@8.13.0': + resolution: {integrity: sha512-nQtBLiZYMUPkclSeC3id+x4uVd1SGtHuElTxL++SfP47jR0zfkZBJHc+gL4qPsgTuypz0k8Y2GheaDYn6Gy3rg==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: - '@typescript-eslint/parser': ^7.0.0 - eslint: ^8.56.0 + '@typescript-eslint/parser': ^8.0.0 || ^8.0.0-alpha.0 + eslint: ^8.57.0 || ^9.0.0 typescript: '*' peerDependenciesMeta: typescript: @@ -9098,11 +9090,11 @@ packages: typescript: optional: true - '@typescript-eslint/parser@7.18.0': - resolution: {integrity: sha512-4Z+L8I2OqhZV8qA132M4wNL30ypZGYOQVBfMgxDH/K5UX0PNqTu1c6za9ST5r9+tavvHiTWmBnKzpCJ/GlVFtg==} - engines: {node: ^18.18.0 || >=20.0.0} + '@typescript-eslint/parser@8.13.0': + resolution: {integrity: sha512-w0xp+xGg8u/nONcGw1UXAr6cjCPU1w0XVyBs6Zqaj5eLmxkKQAByTdV/uGgNN5tVvN/kKpoQlP2cL7R+ajZZIQ==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: - eslint: ^8.56.0 + eslint: ^8.57.0 || ^9.0.0 typescript: '*' peerDependenciesMeta: typescript: @@ -9116,9 +9108,9 @@ packages: resolution: {integrity: sha512-W8VoMjoSg7f7nqAROEmTt6LoBpn81AegP7uKhhW5KzYlehs8VV0ZW0fIDVbcZRcaP3aPSW+JZFua+ysQN+m/Nw==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - '@typescript-eslint/scope-manager@7.18.0': - resolution: {integrity: sha512-jjhdIE/FPF2B7Z1uzc6i3oWKbGcHb87Qw7AWj6jmEqNOfDFbJWtjt/XfwCpvNkpGWlcJaog5vTR+VV8+w9JflA==} - engines: {node: ^18.18.0 || >=20.0.0} + '@typescript-eslint/scope-manager@8.13.0': + resolution: {integrity: sha512-XsGWww0odcUT0gJoBZ1DeulY1+jkaHUciUq4jKNv4cpInbvvrtDoyBH9rE/n2V29wQJPk8iCH1wipra9BhmiMA==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} '@typescript-eslint/type-utils@5.61.0': resolution: {integrity: sha512-kk8u//r+oVK2Aj3ph/26XdH0pbAkC2RiSjUYhKD+PExemG4XSjpGFeyZ/QM8lBOa7O8aGOU+/yEbMJgQv/DnCg==} @@ -9130,11 +9122,10 @@ packages: typescript: optional: true - '@typescript-eslint/type-utils@7.18.0': - resolution: {integrity: sha512-XL0FJXuCLaDuX2sYqZUUSOJ2sG5/i1AAze+axqmLnSkNEVMVYLF+cbwlB2w8D1tinFuSikHmFta+P+HOofrLeA==} - engines: {node: ^18.18.0 || >=20.0.0} + '@typescript-eslint/type-utils@8.13.0': + resolution: {integrity: sha512-Rqnn6xXTR316fP4D2pohZenJnp+NwQ1mo7/JM+J1LWZENSLkJI8ID8QNtlvFeb0HnFSK94D6q0cnMX6SbE5/vA==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: - eslint: ^8.56.0 typescript: '*' peerDependenciesMeta: typescript: @@ -9148,9 +9139,9 @@ packages: resolution: {integrity: sha512-ldyueo58KjngXpzloHUog/h9REmHl59G1b3a5Sng1GfBo14BkS3ZbMEb3693gnP1k//97lh7bKsp6/V/0v1veQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - '@typescript-eslint/types@7.18.0': - resolution: {integrity: sha512-iZqi+Ds1y4EDYUtlOOC+aUmxnE9xS/yCigkjA7XpTKV6nCBd3Hp/PRGGmdwnfkV2ThMyYldP1wRpm/id99spTQ==} - engines: {node: ^18.18.0 || >=20.0.0} + '@typescript-eslint/types@8.13.0': + resolution: {integrity: sha512-4cyFErJetFLckcThRUFdReWJjVsPCqyBlJTi6IDEpc1GWCIIZRFxVppjWLIMcQhNGhdWJJRYFHpHoDWvMlDzng==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} '@typescript-eslint/typescript-estree@5.54.1': resolution: {integrity: sha512-bjK5t+S6ffHnVwA0qRPTZrxKSaFYocwFIkZx5k7pvWfsB1I57pO/0M0Skatzzw1sCkjJ83AfGTL0oFIFiDX3bg==} @@ -9170,9 +9161,9 @@ packages: typescript: optional: true - '@typescript-eslint/typescript-estree@7.18.0': - resolution: {integrity: sha512-aP1v/BSPnnyhMHts8cf1qQ6Q1IFwwRvAQGRvBFkWlo3/lH29OXA3Pts+c10nxRxIBrDnoMqzhgdwVe5f2D6OzA==} - engines: {node: ^18.18.0 || >=20.0.0} + '@typescript-eslint/typescript-estree@8.13.0': + resolution: {integrity: sha512-v7SCIGmVsRK2Cy/LTLGN22uea6SaUIlpBcO/gnMGT/7zPtxp90bphcGf4fyrCQl3ZtiBKqVTG32hb668oIYy1g==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: typescript: '*' peerDependenciesMeta: @@ -9191,11 +9182,11 @@ packages: peerDependencies: eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 - '@typescript-eslint/utils@7.18.0': - resolution: {integrity: sha512-kK0/rNa2j74XuHVcoCZxdFBMF+aq/vH83CXAOHieC+2Gis4mF8jJXT5eAfyD3K0sAxtPuwxaIOIOvhwzVDt/kw==} - engines: {node: ^18.18.0 || >=20.0.0} + '@typescript-eslint/utils@8.13.0': + resolution: {integrity: sha512-A1EeYOND6Uv250nybnLZapeXpYMl8tkzYUxqmoKAWnI4sei3ihf2XdZVd+vVOmHGcp3t+P7yRrNsyyiXTvShFQ==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} peerDependencies: - eslint: ^8.56.0 + eslint: ^8.57.0 || ^9.0.0 '@typescript-eslint/visitor-keys@5.54.1': resolution: {integrity: sha512-q8iSoHTgwCfgcRJ2l2x+xCbu8nBlRAlsQ33k24Adj8eoVBE0f8dUeI+bAa8F84Mv05UGbAx57g2zrRsYIooqQg==} @@ -9205,9 +9196,9 @@ packages: resolution: {integrity: sha512-50XQ5VdbWrX06mQXhy93WywSFZZGsv3EOjq+lqp6WC2t+j3mb6A9xYVdrRxafvK88vg9k9u+CT4l6D8PEatjKg==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - '@typescript-eslint/visitor-keys@7.18.0': - resolution: {integrity: sha512-cDF0/Gf81QpY3xYyJKDV14Zwdmid5+uuENhjH2EqFaF0ni+yAyq/LzMaIJdhNJXZI7uLzwIlA+V7oWoyn6Curg==} - engines: {node: ^18.18.0 || >=20.0.0} + '@typescript-eslint/visitor-keys@8.13.0': + resolution: {integrity: sha512-7N/+lztJqH4Mrf0lb10R/CbI1EaAMMGyF5y0oJvFoAhafwgiRA7TXyd8TFn8FC8k5y2dTsYogg238qavRGNnlw==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} '@unhead/dom@1.1.25': resolution: {integrity: sha512-kJ5jhJFNQCyNENSw+mtmzgulA0kqUuXS3SRPl1umpofc8PH8tblSzXwqStxTj9r6E4wxJbEuygT/aHFJVioizw==} @@ -28438,10 +28429,6 @@ snapshots: eslint: 9.14.0(jiti@2.3.3) eslint-visitor-keys: 3.4.3 - '@eslint-community/regexpp@4.10.0': {} - - '@eslint-community/regexpp@4.11.1': {} - '@eslint-community/regexpp@4.12.1': {} '@eslint/config-array@0.18.0': @@ -35671,7 +35658,7 @@ snapshots: '@typescript-eslint/eslint-plugin@5.61.0(@typescript-eslint/parser@5.61.0(eslint@9.14.0(jiti@2.3.3))(typescript@4.9.5))(eslint@9.14.0(jiti@2.3.3))(typescript@4.9.5)': dependencies: - '@eslint-community/regexpp': 4.11.1 + '@eslint-community/regexpp': 4.12.1 '@typescript-eslint/parser': 5.61.0(eslint@9.14.0(jiti@2.3.3))(typescript@4.9.5) '@typescript-eslint/scope-manager': 5.61.0 '@typescript-eslint/type-utils': 5.61.0(eslint@9.14.0(jiti@2.3.3))(typescript@4.9.5) @@ -35690,7 +35677,7 @@ snapshots: '@typescript-eslint/eslint-plugin@5.61.0(@typescript-eslint/parser@5.61.0(eslint@9.14.0(jiti@2.3.3))(typescript@5.6.3))(eslint@9.14.0(jiti@2.3.3))(typescript@5.6.3)': dependencies: - '@eslint-community/regexpp': 4.11.1 + '@eslint-community/regexpp': 4.12.1 '@typescript-eslint/parser': 5.61.0(eslint@9.14.0(jiti@2.3.3))(typescript@5.6.3) '@typescript-eslint/scope-manager': 5.61.0 '@typescript-eslint/type-utils': 5.61.0(eslint@9.14.0(jiti@2.3.3))(typescript@5.6.3) @@ -35707,14 +35694,14 @@ snapshots: transitivePeerDependencies: - supports-color - '@typescript-eslint/eslint-plugin@7.18.0(@typescript-eslint/parser@7.18.0(eslint@9.14.0(jiti@2.3.3))(typescript@5.6.3))(eslint@9.14.0(jiti@2.3.3))(typescript@5.6.3)': + '@typescript-eslint/eslint-plugin@8.13.0(@typescript-eslint/parser@8.13.0(eslint@9.14.0(jiti@2.3.3))(typescript@5.6.3))(eslint@9.14.0(jiti@2.3.3))(typescript@5.6.3)': dependencies: - '@eslint-community/regexpp': 4.10.0 - '@typescript-eslint/parser': 7.18.0(eslint@9.14.0(jiti@2.3.3))(typescript@5.6.3) - '@typescript-eslint/scope-manager': 7.18.0 - '@typescript-eslint/type-utils': 7.18.0(eslint@9.14.0(jiti@2.3.3))(typescript@5.6.3) - '@typescript-eslint/utils': 7.18.0(eslint@9.14.0(jiti@2.3.3))(typescript@5.6.3) - '@typescript-eslint/visitor-keys': 7.18.0 + '@eslint-community/regexpp': 4.12.1 + '@typescript-eslint/parser': 8.13.0(eslint@9.14.0(jiti@2.3.3))(typescript@5.6.3) + '@typescript-eslint/scope-manager': 8.13.0 + '@typescript-eslint/type-utils': 8.13.0(eslint@9.14.0(jiti@2.3.3))(typescript@5.6.3) + '@typescript-eslint/utils': 8.13.0(eslint@9.14.0(jiti@2.3.3))(typescript@5.6.3) + '@typescript-eslint/visitor-keys': 8.13.0 eslint: 9.14.0(jiti@2.3.3) graphemer: 1.4.0 ignore: 5.3.2 @@ -35765,12 +35752,12 @@ snapshots: transitivePeerDependencies: - supports-color - '@typescript-eslint/parser@7.18.0(eslint@9.14.0(jiti@2.3.3))(typescript@5.6.3)': + '@typescript-eslint/parser@8.13.0(eslint@9.14.0(jiti@2.3.3))(typescript@5.6.3)': dependencies: - '@typescript-eslint/scope-manager': 7.18.0 - '@typescript-eslint/types': 7.18.0 - '@typescript-eslint/typescript-estree': 7.18.0(typescript@5.6.3) - '@typescript-eslint/visitor-keys': 7.18.0 + '@typescript-eslint/scope-manager': 8.13.0 + '@typescript-eslint/types': 8.13.0 + '@typescript-eslint/typescript-estree': 8.13.0(typescript@5.6.3) + '@typescript-eslint/visitor-keys': 8.13.0 debug: 4.3.7(supports-color@5.5.0) eslint: 9.14.0(jiti@2.3.3) optionalDependencies: @@ -35788,10 +35775,10 @@ snapshots: '@typescript-eslint/types': 5.61.0 '@typescript-eslint/visitor-keys': 5.61.0 - '@typescript-eslint/scope-manager@7.18.0': + '@typescript-eslint/scope-manager@8.13.0': dependencies: - '@typescript-eslint/types': 7.18.0 - '@typescript-eslint/visitor-keys': 7.18.0 + '@typescript-eslint/types': 8.13.0 + '@typescript-eslint/visitor-keys': 8.13.0 '@typescript-eslint/type-utils@5.61.0(eslint@9.14.0(jiti@2.3.3))(typescript@4.9.5)': dependencies: @@ -35817,23 +35804,23 @@ snapshots: transitivePeerDependencies: - supports-color - '@typescript-eslint/type-utils@7.18.0(eslint@9.14.0(jiti@2.3.3))(typescript@5.6.3)': + '@typescript-eslint/type-utils@8.13.0(eslint@9.14.0(jiti@2.3.3))(typescript@5.6.3)': dependencies: - '@typescript-eslint/typescript-estree': 7.18.0(typescript@5.6.3) - '@typescript-eslint/utils': 7.18.0(eslint@9.14.0(jiti@2.3.3))(typescript@5.6.3) + '@typescript-eslint/typescript-estree': 8.13.0(typescript@5.6.3) + '@typescript-eslint/utils': 8.13.0(eslint@9.14.0(jiti@2.3.3))(typescript@5.6.3) debug: 4.3.7(supports-color@5.5.0) - eslint: 9.14.0(jiti@2.3.3) ts-api-utils: 1.3.0(typescript@5.6.3) optionalDependencies: typescript: 5.6.3 transitivePeerDependencies: + - eslint - supports-color '@typescript-eslint/types@5.54.1': {} '@typescript-eslint/types@5.61.0': {} - '@typescript-eslint/types@7.18.0': {} + '@typescript-eslint/types@8.13.0': {} '@typescript-eslint/typescript-estree@5.54.1(typescript@4.9.5)': dependencies: @@ -35891,12 +35878,12 @@ snapshots: transitivePeerDependencies: - supports-color - '@typescript-eslint/typescript-estree@7.18.0(typescript@5.6.3)': + '@typescript-eslint/typescript-estree@8.13.0(typescript@5.6.3)': dependencies: - '@typescript-eslint/types': 7.18.0 - '@typescript-eslint/visitor-keys': 7.18.0 + '@typescript-eslint/types': 8.13.0 + '@typescript-eslint/visitor-keys': 8.13.0 debug: 4.3.7(supports-color@5.5.0) - globby: 11.1.0 + fast-glob: 3.3.2 is-glob: 4.0.3 minimatch: 9.0.4 semver: 7.6.3 @@ -35966,12 +35953,12 @@ snapshots: - supports-color - typescript - '@typescript-eslint/utils@7.18.0(eslint@9.14.0(jiti@2.3.3))(typescript@5.6.3)': + '@typescript-eslint/utils@8.13.0(eslint@9.14.0(jiti@2.3.3))(typescript@5.6.3)': dependencies: '@eslint-community/eslint-utils': 4.4.0(eslint@9.14.0(jiti@2.3.3)) - '@typescript-eslint/scope-manager': 7.18.0 - '@typescript-eslint/types': 7.18.0 - '@typescript-eslint/typescript-estree': 7.18.0(typescript@5.6.3) + '@typescript-eslint/scope-manager': 8.13.0 + '@typescript-eslint/types': 8.13.0 + '@typescript-eslint/typescript-estree': 8.13.0(typescript@5.6.3) eslint: 9.14.0(jiti@2.3.3) transitivePeerDependencies: - supports-color @@ -35987,9 +35974,9 @@ snapshots: '@typescript-eslint/types': 5.61.0 eslint-visitor-keys: 3.4.3 - '@typescript-eslint/visitor-keys@7.18.0': + '@typescript-eslint/visitor-keys@8.13.0': dependencies: - '@typescript-eslint/types': 7.18.0 + '@typescript-eslint/types': 8.13.0 eslint-visitor-keys: 3.4.3 '@unhead/dom@1.1.25': diff --git a/serializable-values/src/parser.spec.ts b/serializable-values/src/parser.spec.ts index 4e9f29279d2..622be5a9f6d 100644 --- a/serializable-values/src/parser.spec.ts +++ b/serializable-values/src/parser.spec.ts @@ -395,7 +395,7 @@ function expectParsedExpression(expressionSource: string, reversible = true) { ); try { expect(parsedValue).toEqual(reparsedValue); - } catch (e) { + } catch { throw new AssertionError({ actual: [regeneratedSource, reparsedValue], expected: [expressionSource, parsedValue], diff --git a/serializable-values/src/parser.ts b/serializable-values/src/parser.ts index 152122feae3..8163fceaf6d 100644 --- a/serializable-values/src/parser.ts +++ b/serializable-values/src/parser.ts @@ -201,7 +201,6 @@ export function parseSerializableValue( if (ts.isObjectLiteralExpression(expression)) { const entries: SerializableObjectValueEntry[] = []; for (const property of expression.properties) { - property; if (ts.isShorthandPropertyAssignment(property)) { entries.push({ kind: "key",