From 246e77ccdbcc4e2a736a0dc81dbe18c4e9930978 Mon Sep 17 00:00:00 2001 From: Francesco Novy Date: Mon, 1 Sep 2025 09:38:58 +0200 Subject: [PATCH 1/3] chore: Ensure prettier is run on all files This simplifies our prettier setup to also run on e2e-tests, and aligns the `fix:prettier` and `lint:prettier` targets (which were previously not aligned). --- .claude/settings.local.json | 2 +- .prettierignore | 1 + .prettierrc.json | 7 - .../tsconfig.json | 2 +- .../test-applications/angular-17/angular.json | 27 +- .../component-tracking.components.ts | 4 +- .../angular-17/src/app/home/home.component.ts | 24 +- .../angular-17/tsconfig.json | 5 +- .../test-applications/angular-18/angular.json | 27 +- .../angular-18/src/app/home/home.component.ts | 24 +- .../angular-18/tsconfig.json | 5 +- .../test-applications/angular-19/angular.json | 17 +- .../component-tracking.components.ts | 2 +- .../angular-19/src/app/home/home.component.ts | 24 +- .../component-tracking.components.ts | 2 +- .../astro-4/src/layouts/Layout.astro | 49 +- .../src/pages/catchAll/[...path].astro | 1 - .../src/pages/client-error/index.astro | 8 +- .../src/pages/endpoint-error/index.astro | 2 +- .../astro-4/src/pages/index.astro | 52 +- .../astro-4/src/pages/ssr-error/index.astro | 4 +- .../astro-4/src/pages/test-ssr/index.astro | 12 +- .../astro-4/src/pages/test-static/index.astro | 10 +- .../src/pages/user-page/[userId].astro | 3 +- .../src/pages/user-page/settings.astro | 1 - .../test-applications/astro-4/tsconfig.json | 2 +- .../astro-5/src/components/Avatar.astro | 2 + .../astro-5/src/components/Welcome.astro | 394 +++++---- .../astro-5/src/layouts/Layout.astro | 32 +- .../src/pages/catchAll/[...path].astro | 1 - .../src/pages/client-error/index.astro | 8 +- .../src/pages/endpoint-error/index.astro | 2 +- .../astro-5/src/pages/index.astro | 22 +- .../src/pages/server-island/index.astro | 4 +- .../astro-5/src/pages/ssr-error/index.astro | 4 +- .../astro-5/src/pages/test-ssr/index.astro | 12 +- .../astro-5/src/pages/test-static/index.astro | 10 +- .../src/pages/user-page/[userId].astro | 3 +- .../src/components/Card.astro | 100 +-- .../cloudflare-astro/src/layouts/Layout.astro | 73 +- .../cloudflare-astro/src/pages/index.astro | 226 +++--- .../cloudflare-hono/test/tsconfig.json | 12 +- .../cloudflare-hono/tsconfig.json | 4 +- .../cloudflare-hono/vitest.config.ts | 6 +- .../cloudflare-workers/.prettierrc | 6 - .../cloudflare-workers/src/index.ts | 172 ++-- .../cloudflare-workers/start-event-proxy.mjs | 4 +- .../cloudflare-workers/tests/index.test.ts | 46 +- .../cloudflare-workers/tests/tsconfig.json | 12 +- .../cloudflare-workers/tsconfig.json | 70 +- .../worker-configuration.d.ts | 2 +- .../tests/server-transactions.test.ts | 5 +- .../create-remix-app-express/tsconfig.json | 4 +- .../ember-classic/tsconfig.app.json | 8 +- .../ember-classic/tsconfig.json | 2 +- .../ember-embroider/tsconfig.app.json | 8 +- .../ember-embroider/tsconfig.json | 2 +- .../app/entry.server.tsx | 21 +- .../hydrogen-react-router-7/app/root.tsx | 32 +- .../hydrogen-react-router-7/app/routes.ts | 6 +- .../instrument.server.mjs | 4 +- .../hydrogen-react-router-7/package.json | 3 - .../react-router.config.ts | 7 +- .../hydrogen-react-router-7/server.ts | 2 +- .../hydrogen-react-router-7/tsconfig.json | 8 +- .../hydrogen-react-router-7/vite.config.ts | 5 +- .../test-applications/nestjs-11/package.json | 4 - .../test-applications/nestjs-8/package.json | 4 - .../nestjs-basic-with-graphql/package.json | 4 - .../nestjs-basic/package.json | 4 - .../nestjs-distributed-tracing/package.json | 4 - .../nestjs-fastify/package.json | 4 - .../nestjs-fastify/tsconfig.json | 2 +- .../nestjs-graphql/package.json | 4 - .../package.json | 4 - .../nestjs-with-submodules/package.json | 4 - .../app/parameterized/static/page.tsx | 6 +- .../app/parameterized/static/page.tsx | 6 +- .../nextjs-15/app/ai-test/page.tsx | 11 +- .../app/parameterized/static/page.tsx | 6 +- .../nextjs-15/app/ppr-error/[param]/page.tsx | 6 +- .../nextjs-15/sentry.server.config.ts | 4 +- .../nextjs-orpc/package.json | 1 - .../nextjs-orpc/src/app/global-error.tsx | 6 +- .../nextjs-orpc/tsconfig.json | 10 +- .../test-applications/nextjs-t3/package.json | 2 - .../nextjs-t3/src/app/global-error.tsx | 6 +- .../test-applications/nextjs-t3/tsconfig.json | 10 +- .../nextjs-turbo/app/global-error.tsx | 6 +- .../app/parameterized/static/page.tsx | 6 +- .../node-express-v5/tests/errors.test.ts | 12 +- .../node-firebase/src/init.ts | 1 - .../nuxt-3-dynamic-import/app.vue | 3 +- .../components/ErrorButton.vue | 8 +- .../pages/client-error.vue | 7 +- .../nuxt-3-dynamic-import/pages/index.vue | 2 +- .../test-applications/nuxt-3-min/app.vue | 3 +- .../nuxt-3-min/components/ErrorButton.vue | 8 +- .../test-applications/nuxt-3-min/package.json | 2 +- .../nuxt-3-min/pages/client-error.vue | 7 +- .../nuxt-3-min/pages/index.vue | 2 +- .../nuxt-3-top-level-import/app.vue | 3 +- .../components/ErrorButton.vue | 8 +- .../pages/client-error.vue | 7 +- .../nuxt-3-top-level-import/pages/index.vue | 2 +- .../test-applications/nuxt-3/app.vue | 3 +- .../nuxt-3/components/ErrorButton.vue | 8 +- .../nuxt-3/pages/client-error.vue | 8 +- .../test-applications/nuxt-3/pages/index.vue | 2 +- .../nuxt-4/app/components/ErrorButton.vue | 8 +- .../nuxt-4/app/pages/client-error.vue | 8 +- .../nuxt-4/app/pages/index.vue | 2 +- .../nuxt-4/app/pages/pinia-cart.vue | 36 +- .../react-create-browser-router/package.json | 17 +- .../react-create-memory-router/package.json | 17 +- .../react-router-6/tests/sse.test.ts | 4 +- .../tsconfig.json | 7 +- .../app/root.tsx | 24 +- .../app/routes/home.tsx | 28 +- .../app/routes/performance/dynamic-param.tsx | 1 - .../react-router.config.ts | 2 +- .../tsconfig.json | 7 +- .../react-router-7-framework-spa/app/root.tsx | 24 +- .../app/routes/home.tsx | 28 +- .../app/routes/performance/dynamic-param.tsx | 1 - .../react-router.config.ts | 2 +- .../tsconfig.json | 7 +- .../react-router-7-framework/tsconfig.json | 7 +- .../react-router-7-lazy-routes/src/index.tsx | 1 - .../tests/transactions.test.ts | 2 - .../react-router-7-spa/tsconfig.json | 2 +- .../app/functions/_middleware.ts | 6 +- .../remix-hydrogen/app/root.tsx | 53 +- .../remix-hydrogen/package.json | 3 - .../remix-hydrogen/tsconfig.json | 7 +- .../solid-solidrouter/tsconfig.json | 4 +- .../test-applications/solid/tsconfig.json | 4 +- .../supabase-nextjs/components/TodoList.tsx | 4 +- .../supabase-nextjs/lib/schema.ts | 66 +- .../supabase-nextjs/next.config.js | 66 +- .../supabase-nextjs/pages/_app.tsx | 10 +- .../supabase-nextjs/pages/_document.tsx | 4 +- .../supabase-nextjs/pages/_error.jsx | 8 +- .../pages/api/create-test-user.ts | 2 +- .../supabase-nextjs/pages/api/list-users.ts | 2 +- .../supabase-nextjs/sentry.client.config.ts | 6 +- .../supabase-nextjs/sentry.edge.config.ts | 2 +- .../sveltekit-2-kit-tracing/tsconfig.json | 34 +- .../sveltekit-2-svelte-5/tsconfig.json | 34 +- .../sveltekit-2.5.0-twp/tsconfig.json | 34 +- .../src/tsconfig.json | 34 +- .../sveltekit-cloudflare-pages/vite.config.js | 8 +- .../test-applications/vue-3/src/App.vue | 3 +- .../vue-3/src/views/CartView.vue | 40 +- .../vue-3/src/views/HomeView.vue | 7 +- .../vue-3/src/views/UserIdErrorView.vue | 6 +- .../test-applications/vue-3/tsconfig.json | 2 +- .../test-applications/webpack-4/build.mjs | 4 +- .../tracing/anthropic/instrument-with-pii.mjs | 5 +- .../suites/tracing/anthropic/instrument.mjs | 5 +- .../tracing/anthropic/scenario-stream.mjs | 2 - .../suites/tracing/anthropic/scenario.mjs | 16 +- dev-packages/test-utils/tsconfig.json | 2 +- package.json | 16 +- packages/angular/tsconfig.test.json | 2 +- packages/astro/tsconfig.dev.json | 2 +- packages/browser-utils/tsconfig.json | 2 +- packages/cloudflare/test/tsconfig.json | 2 +- packages/nuxt/src/tsconfig.json | 2 +- packages/react-router/test/tsconfig.json | 2 +- packages/react-router/tsconfig.test.json | 2 +- .../test/fixtures/fixJson/1_completeJson.json | 765 +++++++++++++++++- .../test/fixtures/fixJson/2_completeJson.json | 4 +- packages/solid/tsconfig.json | 2 +- .../solidstart/tsconfig.subexports-types.json | 2 +- packages/solidstart/tsconfig.types.json | 2 +- packages/svelte/tsconfig.json | 2 +- packages/vue/tsconfig.json | 2 +- packages/wasm/tsconfig.json | 2 +- tsconfig.json | 2 +- yarn.lock | 41 +- 181 files changed, 1981 insertions(+), 1472 deletions(-) delete mode 100644 .prettierrc.json delete mode 100644 dev-packages/e2e-tests/test-applications/cloudflare-workers/.prettierrc diff --git a/.claude/settings.local.json b/.claude/settings.local.json index a651eb363952..8dfa2dec155e 100644 --- a/.claude/settings.local.json +++ b/.claude/settings.local.json @@ -11,4 +11,4 @@ ], "deny": [] } -} \ No newline at end of file +} diff --git a/.prettierignore b/.prettierignore index 3022df3c6af7..99c0d942024b 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,3 +1,4 @@ packages/browser/test/loader.js packages/replay-worker/examples/worker.min.js dev-packages/browser-integration-tests/fixtures +**/test.ts-snapshots/** diff --git a/.prettierrc.json b/.prettierrc.json deleted file mode 100644 index ba9a3dc2c246..000000000000 --- a/.prettierrc.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "arrowParens": "avoid", - "printWidth": 120, - "proseWrap": "always", - "singleQuote": true, - "trailingComma": "all" -} diff --git a/dev-packages/cloudflare-integration-tests/tsconfig.json b/dev-packages/cloudflare-integration-tests/tsconfig.json index 38816b36116e..07f106daf370 100644 --- a/dev-packages/cloudflare-integration-tests/tsconfig.json +++ b/dev-packages/cloudflare-integration-tests/tsconfig.json @@ -7,6 +7,6 @@ // Although this seems wrong to include `DOM` here, it's necessary to make // global fetch available in tests in lower Node versions. "lib": ["ES2020"], - "esModuleInterop": true, + "esModuleInterop": true } } diff --git a/dev-packages/e2e-tests/test-applications/angular-17/angular.json b/dev-packages/e2e-tests/test-applications/angular-17/angular.json index 387a7eefce16..e687f8228810 100644 --- a/dev-packages/e2e-tests/test-applications/angular-17/angular.json +++ b/dev-packages/e2e-tests/test-applications/angular-17/angular.json @@ -16,17 +16,10 @@ "outputPath": "dist/angular-17", "index": "src/index.html", "browser": "src/main.ts", - "polyfills": [ - "zone.js" - ], + "polyfills": ["zone.js"], "tsConfig": "tsconfig.app.json", - "assets": [ - "src/favicon.ico", - "src/assets" - ], - "styles": [ - "src/styles.css" - ], + "assets": ["src/favicon.ico", "src/assets"], + "styles": ["src/styles.css"], "scripts": [] }, "configurations": { @@ -74,18 +67,10 @@ "test": { "builder": "@angular-devkit/build-angular:karma", "options": { - "polyfills": [ - "zone.js", - "zone.js/testing" - ], + "polyfills": ["zone.js", "zone.js/testing"], "tsConfig": "tsconfig.spec.json", - "assets": [ - "src/favicon.ico", - "src/assets" - ], - "styles": [ - "src/styles.css" - ], + "assets": ["src/favicon.ico", "src/assets"], + "styles": ["src/styles.css"], "scripts": [] } } diff --git a/dev-packages/e2e-tests/test-applications/angular-17/src/app/component-tracking/component-tracking.components.ts b/dev-packages/e2e-tests/test-applications/angular-17/src/app/component-tracking/component-tracking.components.ts index 1e43d5c6c096..8349f666d11d 100644 --- a/dev-packages/e2e-tests/test-applications/angular-17/src/app/component-tracking/component-tracking.components.ts +++ b/dev-packages/e2e-tests/test-applications/angular-17/src/app/component-tracking/component-tracking.components.ts @@ -7,8 +7,8 @@ import { SampleComponent } from '../sample-component/sample-component.components standalone: true, imports: [TraceModule, SampleComponent], template: ` - - + + `, }) @TraceClass({ name: 'ComponentTrackingComponent' }) diff --git a/dev-packages/e2e-tests/test-applications/angular-17/src/app/home/home.component.ts b/dev-packages/e2e-tests/test-applications/angular-17/src/app/home/home.component.ts index 82c3ccb0140f..4dbc9dd59179 100644 --- a/dev-packages/e2e-tests/test-applications/angular-17/src/app/home/home.component.ts +++ b/dev-packages/e2e-tests/test-applications/angular-17/src/app/home/home.component.ts @@ -6,18 +6,18 @@ import { RouterLink } from '@angular/router'; standalone: true, imports: [RouterLink], template: ` -
-

Welcome to Sentry's Angular 17 E2E test app

- - -
-`, +
+

Welcome to Sentry's Angular 17 E2E test app

+ + +
+ `, }) export class HomeComponent { throwError() { diff --git a/dev-packages/e2e-tests/test-applications/angular-17/tsconfig.json b/dev-packages/e2e-tests/test-applications/angular-17/tsconfig.json index f37b67ff0277..fd2d87ac26d9 100644 --- a/dev-packages/e2e-tests/test-applications/angular-17/tsconfig.json +++ b/dev-packages/e2e-tests/test-applications/angular-17/tsconfig.json @@ -19,10 +19,7 @@ "target": "ES2022", "module": "ES2022", "useDefineForClassFields": false, - "lib": [ - "ES2022", - "dom" - ] + "lib": ["ES2022", "dom"] }, "angularCompilerOptions": { "enableI18nLegacyMessageIdFormat": false, diff --git a/dev-packages/e2e-tests/test-applications/angular-18/angular.json b/dev-packages/e2e-tests/test-applications/angular-18/angular.json index cb3c0b70cec6..e24a6bf0e5f9 100644 --- a/dev-packages/e2e-tests/test-applications/angular-18/angular.json +++ b/dev-packages/e2e-tests/test-applications/angular-18/angular.json @@ -16,17 +16,10 @@ "outputPath": "dist/angular-18", "index": "src/index.html", "browser": "src/main.ts", - "polyfills": [ - "zone.js" - ], + "polyfills": ["zone.js"], "tsConfig": "tsconfig.app.json", - "assets": [ - "src/favicon.ico", - "src/assets" - ], - "styles": [ - "src/styles.css" - ], + "assets": ["src/favicon.ico", "src/assets"], + "styles": ["src/styles.css"], "scripts": [] }, "configurations": { @@ -74,18 +67,10 @@ "test": { "builder": "@angular-devkit/build-angular:karma", "options": { - "polyfills": [ - "zone.js", - "zone.js/testing" - ], + "polyfills": ["zone.js", "zone.js/testing"], "tsConfig": "tsconfig.spec.json", - "assets": [ - "src/favicon.ico", - "src/assets" - ], - "styles": [ - "src/styles.css" - ], + "assets": ["src/favicon.ico", "src/assets"], + "styles": ["src/styles.css"], "scripts": [] } } diff --git a/dev-packages/e2e-tests/test-applications/angular-18/src/app/home/home.component.ts b/dev-packages/e2e-tests/test-applications/angular-18/src/app/home/home.component.ts index 9f36814d6c03..e70507b07030 100644 --- a/dev-packages/e2e-tests/test-applications/angular-18/src/app/home/home.component.ts +++ b/dev-packages/e2e-tests/test-applications/angular-18/src/app/home/home.component.ts @@ -6,18 +6,18 @@ import { RouterLink } from '@angular/router'; standalone: true, imports: [RouterLink], template: ` -
-

Welcome to Sentry's Angular 18 E2E test app

- - -
-`, +
+

Welcome to Sentry's Angular 18 E2E test app

+ + +
+ `, }) export class HomeComponent { throwError() { diff --git a/dev-packages/e2e-tests/test-applications/angular-18/tsconfig.json b/dev-packages/e2e-tests/test-applications/angular-18/tsconfig.json index f37b67ff0277..fd2d87ac26d9 100644 --- a/dev-packages/e2e-tests/test-applications/angular-18/tsconfig.json +++ b/dev-packages/e2e-tests/test-applications/angular-18/tsconfig.json @@ -19,10 +19,7 @@ "target": "ES2022", "module": "ES2022", "useDefineForClassFields": false, - "lib": [ - "ES2022", - "dom" - ] + "lib": ["ES2022", "dom"] }, "angularCompilerOptions": { "enableI18nLegacyMessageIdFormat": false, diff --git a/dev-packages/e2e-tests/test-applications/angular-19/angular.json b/dev-packages/e2e-tests/test-applications/angular-19/angular.json index 446b28df1d25..355946a85d15 100644 --- a/dev-packages/e2e-tests/test-applications/angular-19/angular.json +++ b/dev-packages/e2e-tests/test-applications/angular-19/angular.json @@ -16,9 +16,7 @@ "outputPath": "dist/angular-19", "index": "src/index.html", "browser": "src/main.ts", - "polyfills": [ - "zone.js" - ], + "polyfills": ["zone.js"], "tsConfig": "tsconfig.app.json", "assets": [ { @@ -26,9 +24,7 @@ "input": "public" } ], - "styles": [ - "src/styles.css" - ], + "styles": ["src/styles.css"], "scripts": [] }, "configurations": { @@ -73,10 +69,7 @@ "test": { "builder": "@angular-devkit/build-angular:karma", "options": { - "polyfills": [ - "zone.js", - "zone.js/testing" - ], + "polyfills": ["zone.js", "zone.js/testing"], "tsConfig": "tsconfig.spec.json", "assets": [ { @@ -84,9 +77,7 @@ "input": "public" } ], - "styles": [ - "src/styles.css" - ], + "styles": ["src/styles.css"], "scripts": [] } } diff --git a/dev-packages/e2e-tests/test-applications/angular-19/src/app/component-tracking/component-tracking.components.ts b/dev-packages/e2e-tests/test-applications/angular-19/src/app/component-tracking/component-tracking.components.ts index a82e5b1acce6..76bd580ecaf6 100644 --- a/dev-packages/e2e-tests/test-applications/angular-19/src/app/component-tracking/component-tracking.components.ts +++ b/dev-packages/e2e-tests/test-applications/angular-19/src/app/component-tracking/component-tracking.components.ts @@ -9,7 +9,7 @@ import { SampleComponent } from '../sample-component/sample-component.components template: ` - `, + `, }) @TraceClass({ name: 'ComponentTrackingComponent' }) export class ComponentTrackingComponent implements OnInit, AfterViewInit { diff --git a/dev-packages/e2e-tests/test-applications/angular-19/src/app/home/home.component.ts b/dev-packages/e2e-tests/test-applications/angular-19/src/app/home/home.component.ts index fe70dabd687a..91a34a546fb6 100644 --- a/dev-packages/e2e-tests/test-applications/angular-19/src/app/home/home.component.ts +++ b/dev-packages/e2e-tests/test-applications/angular-19/src/app/home/home.component.ts @@ -6,18 +6,18 @@ import { RouterLink } from '@angular/router'; standalone: true, imports: [RouterLink], template: ` -
-

Welcome to Sentry's Angular 19 E2E test app

- - -
-`, +
+

Welcome to Sentry's Angular 19 E2E test app

+ + +
+ `, }) export class HomeComponent { throwError() { diff --git a/dev-packages/e2e-tests/test-applications/angular-20/src/app/component-tracking/component-tracking.components.ts b/dev-packages/e2e-tests/test-applications/angular-20/src/app/component-tracking/component-tracking.components.ts index a82e5b1acce6..76bd580ecaf6 100644 --- a/dev-packages/e2e-tests/test-applications/angular-20/src/app/component-tracking/component-tracking.components.ts +++ b/dev-packages/e2e-tests/test-applications/angular-20/src/app/component-tracking/component-tracking.components.ts @@ -9,7 +9,7 @@ import { SampleComponent } from '../sample-component/sample-component.components template: ` - `, + `, }) @TraceClass({ name: 'ComponentTrackingComponent' }) export class ComponentTrackingComponent implements OnInit, AfterViewInit { diff --git a/dev-packages/e2e-tests/test-applications/astro-4/src/layouts/Layout.astro b/dev-packages/e2e-tests/test-applications/astro-4/src/layouts/Layout.astro index c4e54b834656..c48489538774 100644 --- a/dev-packages/e2e-tests/test-applications/astro-4/src/layouts/Layout.astro +++ b/dev-packages/e2e-tests/test-applications/astro-4/src/layouts/Layout.astro @@ -1,6 +1,6 @@ --- interface Props { - title: string; + title: string; } const { title } = Astro.props; @@ -8,32 +8,27 @@ const { title } = Astro.props; - - - - - - - {title} - - - - + + + + + + + {title} + + + + diff --git a/dev-packages/e2e-tests/test-applications/astro-4/src/pages/catchAll/[...path].astro b/dev-packages/e2e-tests/test-applications/astro-4/src/pages/catchAll/[...path].astro index bb225c166241..9fe2bdab5c15 100644 --- a/dev-packages/e2e-tests/test-applications/astro-4/src/pages/catchAll/[...path].astro +++ b/dev-packages/e2e-tests/test-applications/astro-4/src/pages/catchAll/[...path].astro @@ -4,7 +4,6 @@ import Layout from '../../layouts/Layout.astro'; export const prerender = false; const params = Astro.params; - --- diff --git a/dev-packages/e2e-tests/test-applications/astro-4/src/pages/client-error/index.astro b/dev-packages/e2e-tests/test-applications/astro-4/src/pages/client-error/index.astro index facd6f077a6e..492524e2a713 100644 --- a/dev-packages/e2e-tests/test-applications/astro-4/src/pages/client-error/index.astro +++ b/dev-packages/e2e-tests/test-applications/astro-4/src/pages/client-error/index.astro @@ -1,11 +1,7 @@ --- -import Layout from "../../layouts/Layout.astro"; +import Layout from '../../layouts/Layout.astro'; --- - - - + diff --git a/dev-packages/e2e-tests/test-applications/astro-4/src/pages/endpoint-error/index.astro b/dev-packages/e2e-tests/test-applications/astro-4/src/pages/endpoint-error/index.astro index f025c76f8365..ecfb0641144e 100644 --- a/dev-packages/e2e-tests/test-applications/astro-4/src/pages/endpoint-error/index.astro +++ b/dev-packages/e2e-tests/test-applications/astro-4/src/pages/endpoint-error/index.astro @@ -1,5 +1,5 @@ --- -import Layout from "../../layouts/Layout.astro"; +import Layout from '../../layouts/Layout.astro'; export const prerender = false; --- diff --git a/dev-packages/e2e-tests/test-applications/astro-4/src/pages/index.astro b/dev-packages/e2e-tests/test-applications/astro-4/src/pages/index.astro index deaf37caad12..b31f3f724559 100644 --- a/dev-packages/e2e-tests/test-applications/astro-4/src/pages/index.astro +++ b/dev-packages/e2e-tests/test-applications/astro-4/src/pages/index.astro @@ -3,34 +3,34 @@ import Layout from '../layouts/Layout.astro'; --- -
-

Astro E2E Test App

- -
+
+

Astro E2E Test App

+ +
diff --git a/dev-packages/e2e-tests/test-applications/astro-4/src/pages/ssr-error/index.astro b/dev-packages/e2e-tests/test-applications/astro-4/src/pages/ssr-error/index.astro index 4ecb7466de70..fc42bcbae4f7 100644 --- a/dev-packages/e2e-tests/test-applications/astro-4/src/pages/ssr-error/index.astro +++ b/dev-packages/e2e-tests/test-applications/astro-4/src/pages/ssr-error/index.astro @@ -1,5 +1,5 @@ --- -import Layout from "../../layouts/Layout.astro"; +import Layout from '../../layouts/Layout.astro'; const a = {} as any; console.log(a.foo.x); @@ -7,7 +7,5 @@ export const prerender = false; --- -

Page with SSR error

-
diff --git a/dev-packages/e2e-tests/test-applications/astro-4/src/pages/test-ssr/index.astro b/dev-packages/e2e-tests/test-applications/astro-4/src/pages/test-ssr/index.astro index 58f5d80198d7..4531c20c05ad 100644 --- a/dev-packages/e2e-tests/test-applications/astro-4/src/pages/test-ssr/index.astro +++ b/dev-packages/e2e-tests/test-applications/astro-4/src/pages/test-ssr/index.astro @@ -1,15 +1,11 @@ --- -import Layout from "../../layouts/Layout.astro" +import Layout from '../../layouts/Layout.astro'; -export const prerender = false +export const prerender = false; --- +

This is a server page

-

- This is a server page -

- - - +
diff --git a/dev-packages/e2e-tests/test-applications/astro-4/src/pages/test-static/index.astro b/dev-packages/e2e-tests/test-applications/astro-4/src/pages/test-static/index.astro index f71bf00c9adf..c0fd701d4a2a 100644 --- a/dev-packages/e2e-tests/test-applications/astro-4/src/pages/test-static/index.astro +++ b/dev-packages/e2e-tests/test-applications/astro-4/src/pages/test-static/index.astro @@ -1,15 +1,11 @@ --- -import Layout from "../../layouts/Layout.astro"; +import Layout from '../../layouts/Layout.astro'; export const prerender = true; --- +

This is a static page

-

- This is a static page -

- - - +
diff --git a/dev-packages/e2e-tests/test-applications/astro-4/src/pages/user-page/[userId].astro b/dev-packages/e2e-tests/test-applications/astro-4/src/pages/user-page/[userId].astro index e35bd3a34d97..8050e386a39f 100644 --- a/dev-packages/e2e-tests/test-applications/astro-4/src/pages/user-page/[userId].astro +++ b/dev-packages/e2e-tests/test-applications/astro-4/src/pages/user-page/[userId].astro @@ -5,9 +5,8 @@ export const prerender = false; const { userId } = Astro.params; -const response = await fetch(Astro.url.origin + `/api/user/${userId}.json`) +const response = await fetch(Astro.url.origin + `/api/user/${userId}.json`); const data = await response.json(); - --- diff --git a/dev-packages/e2e-tests/test-applications/astro-4/src/pages/user-page/settings.astro b/dev-packages/e2e-tests/test-applications/astro-4/src/pages/user-page/settings.astro index 5a46ac891a24..f2b767c93351 100644 --- a/dev-packages/e2e-tests/test-applications/astro-4/src/pages/user-page/settings.astro +++ b/dev-packages/e2e-tests/test-applications/astro-4/src/pages/user-page/settings.astro @@ -2,7 +2,6 @@ import Layout from '../../layouts/Layout.astro'; export const prerender = false; - --- diff --git a/dev-packages/e2e-tests/test-applications/astro-4/tsconfig.json b/dev-packages/e2e-tests/test-applications/astro-4/tsconfig.json index 77da9dd00982..bcbf8b50906a 100644 --- a/dev-packages/e2e-tests/test-applications/astro-4/tsconfig.json +++ b/dev-packages/e2e-tests/test-applications/astro-4/tsconfig.json @@ -1,3 +1,3 @@ { "extends": "astro/tsconfigs/strict" -} \ No newline at end of file +} diff --git a/dev-packages/e2e-tests/test-applications/astro-5/src/components/Avatar.astro b/dev-packages/e2e-tests/test-applications/astro-5/src/components/Avatar.astro index 09a539f14e64..5611579efaf1 100644 --- a/dev-packages/e2e-tests/test-applications/astro-5/src/components/Avatar.astro +++ b/dev-packages/e2e-tests/test-applications/astro-5/src/components/Avatar.astro @@ -1,3 +1,5 @@ --- + --- + User avatar diff --git a/dev-packages/e2e-tests/test-applications/astro-5/src/components/Welcome.astro b/dev-packages/e2e-tests/test-applications/astro-5/src/components/Welcome.astro index 6b7b9c70e869..6f862e767574 100644 --- a/dev-packages/e2e-tests/test-applications/astro-5/src/components/Welcome.astro +++ b/dev-packages/e2e-tests/test-applications/astro-5/src/components/Welcome.astro @@ -4,206 +4,202 @@ import background from '../assets/background.svg'; --- diff --git a/dev-packages/e2e-tests/test-applications/astro-5/src/layouts/Layout.astro b/dev-packages/e2e-tests/test-applications/astro-5/src/layouts/Layout.astro index e455c6106729..6105f48ffd35 100644 --- a/dev-packages/e2e-tests/test-applications/astro-5/src/layouts/Layout.astro +++ b/dev-packages/e2e-tests/test-applications/astro-5/src/layouts/Layout.astro @@ -1,22 +1,22 @@ - - - - - - Astro Basics - - - - + + + + + + Astro Basics + + + + diff --git a/dev-packages/e2e-tests/test-applications/astro-5/src/pages/catchAll/[...path].astro b/dev-packages/e2e-tests/test-applications/astro-5/src/pages/catchAll/[...path].astro index bb225c166241..9fe2bdab5c15 100644 --- a/dev-packages/e2e-tests/test-applications/astro-5/src/pages/catchAll/[...path].astro +++ b/dev-packages/e2e-tests/test-applications/astro-5/src/pages/catchAll/[...path].astro @@ -4,7 +4,6 @@ import Layout from '../../layouts/Layout.astro'; export const prerender = false; const params = Astro.params; - --- diff --git a/dev-packages/e2e-tests/test-applications/astro-5/src/pages/client-error/index.astro b/dev-packages/e2e-tests/test-applications/astro-5/src/pages/client-error/index.astro index facd6f077a6e..492524e2a713 100644 --- a/dev-packages/e2e-tests/test-applications/astro-5/src/pages/client-error/index.astro +++ b/dev-packages/e2e-tests/test-applications/astro-5/src/pages/client-error/index.astro @@ -1,11 +1,7 @@ --- -import Layout from "../../layouts/Layout.astro"; +import Layout from '../../layouts/Layout.astro'; --- - - - + diff --git a/dev-packages/e2e-tests/test-applications/astro-5/src/pages/endpoint-error/index.astro b/dev-packages/e2e-tests/test-applications/astro-5/src/pages/endpoint-error/index.astro index f025c76f8365..ecfb0641144e 100644 --- a/dev-packages/e2e-tests/test-applications/astro-5/src/pages/endpoint-error/index.astro +++ b/dev-packages/e2e-tests/test-applications/astro-5/src/pages/endpoint-error/index.astro @@ -1,5 +1,5 @@ --- -import Layout from "../../layouts/Layout.astro"; +import Layout from '../../layouts/Layout.astro'; export const prerender = false; --- diff --git a/dev-packages/e2e-tests/test-applications/astro-5/src/pages/index.astro b/dev-packages/e2e-tests/test-applications/astro-5/src/pages/index.astro index 61bf20bfe31e..e598994f0b8e 100644 --- a/dev-packages/e2e-tests/test-applications/astro-5/src/pages/index.astro +++ b/dev-packages/e2e-tests/test-applications/astro-5/src/pages/index.astro @@ -7,16 +7,16 @@ import Layout from '../layouts/Layout.astro'; --- -
-

Astro E2E Test App

- +
diff --git a/dev-packages/e2e-tests/test-applications/astro-5/src/pages/server-island/index.astro b/dev-packages/e2e-tests/test-applications/astro-5/src/pages/server-island/index.astro index d0544ac4f32f..0e922af4667f 100644 --- a/dev-packages/e2e-tests/test-applications/astro-5/src/pages/server-island/index.astro +++ b/dev-packages/e2e-tests/test-applications/astro-5/src/pages/server-island/index.astro @@ -4,13 +4,11 @@ import Layout from '../../layouts/Layout.astro'; export const prerender = true; --- - +

This page is static, except for the avatar which is loaded dynamically from the server

Fallback

-
- diff --git a/dev-packages/e2e-tests/test-applications/astro-5/src/pages/ssr-error/index.astro b/dev-packages/e2e-tests/test-applications/astro-5/src/pages/ssr-error/index.astro index 4ecb7466de70..fc42bcbae4f7 100644 --- a/dev-packages/e2e-tests/test-applications/astro-5/src/pages/ssr-error/index.astro +++ b/dev-packages/e2e-tests/test-applications/astro-5/src/pages/ssr-error/index.astro @@ -1,5 +1,5 @@ --- -import Layout from "../../layouts/Layout.astro"; +import Layout from '../../layouts/Layout.astro'; const a = {} as any; console.log(a.foo.x); @@ -7,7 +7,5 @@ export const prerender = false; --- -

Page with SSR error

-
diff --git a/dev-packages/e2e-tests/test-applications/astro-5/src/pages/test-ssr/index.astro b/dev-packages/e2e-tests/test-applications/astro-5/src/pages/test-ssr/index.astro index 58f5d80198d7..4531c20c05ad 100644 --- a/dev-packages/e2e-tests/test-applications/astro-5/src/pages/test-ssr/index.astro +++ b/dev-packages/e2e-tests/test-applications/astro-5/src/pages/test-ssr/index.astro @@ -1,15 +1,11 @@ --- -import Layout from "../../layouts/Layout.astro" +import Layout from '../../layouts/Layout.astro'; -export const prerender = false +export const prerender = false; --- +

This is a server page

-

- This is a server page -

- - - +
diff --git a/dev-packages/e2e-tests/test-applications/astro-5/src/pages/test-static/index.astro b/dev-packages/e2e-tests/test-applications/astro-5/src/pages/test-static/index.astro index f71bf00c9adf..c0fd701d4a2a 100644 --- a/dev-packages/e2e-tests/test-applications/astro-5/src/pages/test-static/index.astro +++ b/dev-packages/e2e-tests/test-applications/astro-5/src/pages/test-static/index.astro @@ -1,15 +1,11 @@ --- -import Layout from "../../layouts/Layout.astro"; +import Layout from '../../layouts/Layout.astro'; export const prerender = true; --- +

This is a static page

-

- This is a static page -

- - - +
diff --git a/dev-packages/e2e-tests/test-applications/astro-5/src/pages/user-page/[userId].astro b/dev-packages/e2e-tests/test-applications/astro-5/src/pages/user-page/[userId].astro index e35bd3a34d97..8050e386a39f 100644 --- a/dev-packages/e2e-tests/test-applications/astro-5/src/pages/user-page/[userId].astro +++ b/dev-packages/e2e-tests/test-applications/astro-5/src/pages/user-page/[userId].astro @@ -5,9 +5,8 @@ export const prerender = false; const { userId } = Astro.params; -const response = await fetch(Astro.url.origin + `/api/user/${userId}.json`) +const response = await fetch(Astro.url.origin + `/api/user/${userId}.json`); const data = await response.json(); - --- diff --git a/dev-packages/e2e-tests/test-applications/cloudflare-astro/src/components/Card.astro b/dev-packages/e2e-tests/test-applications/cloudflare-astro/src/components/Card.astro index bd6d5971ebf3..4924058df81b 100644 --- a/dev-packages/e2e-tests/test-applications/cloudflare-astro/src/components/Card.astro +++ b/dev-packages/e2e-tests/test-applications/cloudflare-astro/src/components/Card.astro @@ -1,61 +1,61 @@ --- interface Props { - title: string; - body: string; - href: string; + title: string; + body: string; + href: string; } const { href, title, body } = Astro.props; --- diff --git a/dev-packages/e2e-tests/test-applications/cloudflare-astro/src/layouts/Layout.astro b/dev-packages/e2e-tests/test-applications/cloudflare-astro/src/layouts/Layout.astro index 7b552be19bca..121182ff669f 100644 --- a/dev-packages/e2e-tests/test-applications/cloudflare-astro/src/layouts/Layout.astro +++ b/dev-packages/e2e-tests/test-applications/cloudflare-astro/src/layouts/Layout.astro @@ -1,6 +1,6 @@ --- interface Props { - title: string; + title: string; } const { title } = Astro.props; @@ -8,44 +8,39 @@ const { title } = Astro.props; - - - - - - - {title} - - - - + + + + + + + {title} + + + + diff --git a/dev-packages/e2e-tests/test-applications/cloudflare-astro/src/pages/index.astro b/dev-packages/e2e-tests/test-applications/cloudflare-astro/src/pages/index.astro index fb6262872d0e..0c8795be01ce 100644 --- a/dev-packages/e2e-tests/test-applications/cloudflare-astro/src/pages/index.astro +++ b/dev-packages/e2e-tests/test-applications/cloudflare-astro/src/pages/index.astro @@ -4,120 +4,120 @@ import Card from '../components/Card.astro'; --- -
- -

Welcome to Astro

-

- To get started, open the directory src/pages in your project.
- Code Challenge: Tweak the "Welcome to Astro" message above. -

- -
+
+ +

Welcome to Astro

+

+ To get started, open the directory src/pages in your project.
+ Code Challenge: Tweak the "Welcome to Astro" message above. +

+ +
diff --git a/dev-packages/e2e-tests/test-applications/cloudflare-hono/test/tsconfig.json b/dev-packages/e2e-tests/test-applications/cloudflare-hono/test/tsconfig.json index bc019a7e2bfb..f536f706fa69 100644 --- a/dev-packages/e2e-tests/test-applications/cloudflare-hono/test/tsconfig.json +++ b/dev-packages/e2e-tests/test-applications/cloudflare-hono/test/tsconfig.json @@ -1,8 +1,8 @@ { - "extends": "../tsconfig.json", - "compilerOptions": { - "types": ["@cloudflare/workers-types/experimental", "@cloudflare/vitest-pool-workers"] - }, - "include": ["./**/*.ts", "../src/env.d.ts"], - "exclude": [] + "extends": "../tsconfig.json", + "compilerOptions": { + "types": ["@cloudflare/workers-types/experimental", "@cloudflare/vitest-pool-workers"] + }, + "include": ["./**/*.ts", "../src/env.d.ts"], + "exclude": [] } diff --git a/dev-packages/e2e-tests/test-applications/cloudflare-hono/tsconfig.json b/dev-packages/e2e-tests/test-applications/cloudflare-hono/tsconfig.json index e2025cec5039..e5d6f2b66f33 100644 --- a/dev-packages/e2e-tests/test-applications/cloudflare-hono/tsconfig.json +++ b/dev-packages/e2e-tests/test-applications/cloudflare-hono/tsconfig.json @@ -5,9 +5,7 @@ "moduleResolution": "Bundler", "strict": true, "skipLibCheck": true, - "lib": [ - "ESNext" - ], + "lib": ["ESNext"], "jsx": "react-jsx", "jsxImportSource": "hono/jsx" }, diff --git a/dev-packages/e2e-tests/test-applications/cloudflare-hono/vitest.config.ts b/dev-packages/e2e-tests/test-applications/cloudflare-hono/vitest.config.ts index 4466287fbe5b..60ce2468ff28 100644 --- a/dev-packages/e2e-tests/test-applications/cloudflare-hono/vitest.config.ts +++ b/dev-packages/e2e-tests/test-applications/cloudflare-hono/vitest.config.ts @@ -1,4 +1,4 @@ -import { defineWorkersProject } from '@cloudflare/vitest-pool-workers/config' +import { defineWorkersProject } from '@cloudflare/vitest-pool-workers/config'; export default defineWorkersProject(() => { return { @@ -8,5 +8,5 @@ export default defineWorkersProject(() => { workers: { wrangler: { configPath: './wrangler.toml' } }, }, }, - } -}) + }; +}); diff --git a/dev-packages/e2e-tests/test-applications/cloudflare-workers/.prettierrc b/dev-packages/e2e-tests/test-applications/cloudflare-workers/.prettierrc deleted file mode 100644 index 5c7b5d3c7a75..000000000000 --- a/dev-packages/e2e-tests/test-applications/cloudflare-workers/.prettierrc +++ /dev/null @@ -1,6 +0,0 @@ -{ - "printWidth": 140, - "singleQuote": true, - "semi": true, - "useTabs": true -} diff --git a/dev-packages/e2e-tests/test-applications/cloudflare-workers/src/index.ts b/dev-packages/e2e-tests/test-applications/cloudflare-workers/src/index.ts index 54786fd221cb..ab438432a004 100644 --- a/dev-packages/e2e-tests/test-applications/cloudflare-workers/src/index.ts +++ b/dev-packages/e2e-tests/test-applications/cloudflare-workers/src/index.ts @@ -14,99 +14,99 @@ import * as Sentry from '@sentry/cloudflare'; import { DurableObject } from 'cloudflare:workers'; class MyDurableObjectBase extends DurableObject { - private throwOnExit = new WeakMap(); - async throwException(): Promise { - throw new Error('Should be recorded in Sentry.'); - } + private throwOnExit = new WeakMap(); + async throwException(): Promise { + throw new Error('Should be recorded in Sentry.'); + } - async fetch(request: Request) { - const { pathname } = new URL(request.url); - switch (pathname) { - case '/throwException': { - await this.throwException(); - break; - } - case '/ws': - const webSocketPair = new WebSocketPair(); - const [client, server] = Object.values(webSocketPair); - this.ctx.acceptWebSocket(server); - return new Response(null, { status: 101, webSocket: client }); - } - return new Response('DO is fine'); - } + async fetch(request: Request) { + const { pathname } = new URL(request.url); + switch (pathname) { + case '/throwException': { + await this.throwException(); + break; + } + case '/ws': + const webSocketPair = new WebSocketPair(); + const [client, server] = Object.values(webSocketPair); + this.ctx.acceptWebSocket(server); + return new Response(null, { status: 101, webSocket: client }); + } + return new Response('DO is fine'); + } - webSocketMessage(ws: WebSocket, message: string | ArrayBuffer): void | Promise { - if (message === 'throwException') { - throw new Error('Should be recorded in Sentry: webSocketMessage'); - } else if (message === 'throwOnExit') { - this.throwOnExit.set(ws, new Error('Should be recorded in Sentry: webSocketClose')); - } - } + webSocketMessage(ws: WebSocket, message: string | ArrayBuffer): void | Promise { + if (message === 'throwException') { + throw new Error('Should be recorded in Sentry: webSocketMessage'); + } else if (message === 'throwOnExit') { + this.throwOnExit.set(ws, new Error('Should be recorded in Sentry: webSocketClose')); + } + } - webSocketClose(ws: WebSocket): void | Promise { - if (this.throwOnExit.has(ws)) { - const error = this.throwOnExit.get(ws)!; - this.throwOnExit.delete(ws); - throw error; - } - } + webSocketClose(ws: WebSocket): void | Promise { + if (this.throwOnExit.has(ws)) { + const error = this.throwOnExit.get(ws)!; + this.throwOnExit.delete(ws); + throw error; + } + } } export const MyDurableObject = Sentry.instrumentDurableObjectWithSentry( - (env: Env) => ({ - dsn: env.E2E_TEST_DSN, - environment: 'qa', // dynamic sampling bias to keep transactions - tunnel: `http://localhost:3031/`, // proxy server - tracesSampleRate: 1.0, - sendDefaultPii: true, - transportOptions: { - // We are doing a lot of events at once in this test - bufferSize: 1000, - }, - instrumentPrototypeMethods: true, - }), - MyDurableObjectBase, + (env: Env) => ({ + dsn: env.E2E_TEST_DSN, + environment: 'qa', // dynamic sampling bias to keep transactions + tunnel: `http://localhost:3031/`, // proxy server + tracesSampleRate: 1.0, + sendDefaultPii: true, + transportOptions: { + // We are doing a lot of events at once in this test + bufferSize: 1000, + }, + instrumentPrototypeMethods: true, + }), + MyDurableObjectBase, ); export default Sentry.withSentry( - (env: Env) => ({ - dsn: env.E2E_TEST_DSN, - environment: 'qa', // dynamic sampling bias to keep transactions - tunnel: `http://localhost:3031/`, // proxy server - tracesSampleRate: 1.0, - sendDefaultPii: true, - transportOptions: { - // We are doing a lot of events at once in this test - bufferSize: 1000, - }, - }), - { - async fetch(request, env) { - const url = new URL(request.url); - switch (url.pathname) { - case '/rpc/throwException': - { - const id = env.MY_DURABLE_OBJECT.idFromName('foo'); - const stub = env.MY_DURABLE_OBJECT.get(id) as DurableObjectStub; - try { - await stub.throwException(); - } catch (e) { - //We will catch this to be sure not to log inside withSentry - return new Response(null, { status: 500 }); - } - } - break; - case '/throwException': - throw new Error('To be recorded in Sentry.'); - default: - if (url.pathname.startsWith('/pass-to-object/')) { - const id = env.MY_DURABLE_OBJECT.idFromName('foo'); - const stub = env.MY_DURABLE_OBJECT.get(id) as DurableObjectStub; - url.pathname = url.pathname.replace('/pass-to-object/', ''); - return stub.fetch(new Request(url, request)); - } - } - return new Response('Hello World!'); - }, - } satisfies ExportedHandler, + (env: Env) => ({ + dsn: env.E2E_TEST_DSN, + environment: 'qa', // dynamic sampling bias to keep transactions + tunnel: `http://localhost:3031/`, // proxy server + tracesSampleRate: 1.0, + sendDefaultPii: true, + transportOptions: { + // We are doing a lot of events at once in this test + bufferSize: 1000, + }, + }), + { + async fetch(request, env) { + const url = new URL(request.url); + switch (url.pathname) { + case '/rpc/throwException': + { + const id = env.MY_DURABLE_OBJECT.idFromName('foo'); + const stub = env.MY_DURABLE_OBJECT.get(id) as DurableObjectStub; + try { + await stub.throwException(); + } catch (e) { + //We will catch this to be sure not to log inside withSentry + return new Response(null, { status: 500 }); + } + } + break; + case '/throwException': + throw new Error('To be recorded in Sentry.'); + default: + if (url.pathname.startsWith('/pass-to-object/')) { + const id = env.MY_DURABLE_OBJECT.idFromName('foo'); + const stub = env.MY_DURABLE_OBJECT.get(id) as DurableObjectStub; + url.pathname = url.pathname.replace('/pass-to-object/', ''); + return stub.fetch(new Request(url, request)); + } + } + return new Response('Hello World!'); + }, + } satisfies ExportedHandler, ); diff --git a/dev-packages/e2e-tests/test-applications/cloudflare-workers/start-event-proxy.mjs b/dev-packages/e2e-tests/test-applications/cloudflare-workers/start-event-proxy.mjs index 738ec64293b5..67c76b2f4aaf 100644 --- a/dev-packages/e2e-tests/test-applications/cloudflare-workers/start-event-proxy.mjs +++ b/dev-packages/e2e-tests/test-applications/cloudflare-workers/start-event-proxy.mjs @@ -1,6 +1,6 @@ -import {startEventProxyServer} from '@sentry-internal/test-utils' +import { startEventProxyServer } from '@sentry-internal/test-utils'; startEventProxyServer({ port: 3031, proxyServerName: 'cloudflare-workers', -}) +}); diff --git a/dev-packages/e2e-tests/test-applications/cloudflare-workers/tests/index.test.ts b/dev-packages/e2e-tests/test-applications/cloudflare-workers/tests/index.test.ts index ac8f2e38952e..31cc02b8c5e8 100644 --- a/dev-packages/e2e-tests/test-applications/cloudflare-workers/tests/index.test.ts +++ b/dev-packages/e2e-tests/test-applications/cloudflare-workers/tests/index.test.ts @@ -1,34 +1,34 @@ import { expect, test } from '@playwright/test'; import { waitForError } from '@sentry-internal/test-utils'; -import {WebSocket} from 'ws' +import { WebSocket } from 'ws'; test('Index page', async ({ baseURL }) => { const result = await fetch(baseURL!); expect(result.status).toBe(200); await expect(result.text()).resolves.toBe('Hello World!'); -}) +}); -test('worker\'s withSentry', async ({baseURL}) => { - const eventWaiter = waitForError('cloudflare-workers', (event) => { +test("worker's withSentry", async ({ baseURL }) => { + const eventWaiter = waitForError('cloudflare-workers', event => { return event.exception?.values?.[0]?.mechanism?.type === 'cloudflare'; }); const response = await fetch(`${baseURL}/throwException`); expect(response.status).toBe(500); const event = await eventWaiter; expect(event.exception?.values?.[0]?.value).toBe('To be recorded in Sentry.'); -}) +}); -test('RPC method which throws an exception to be logged to sentry', async ({baseURL}) => { - const eventWaiter = waitForError('cloudflare-workers', (event) => { - return event.exception?.values?.[0]?.mechanism?.type === 'cloudflare_durableobject'; - }); - const response = await fetch(`${baseURL}/rpc/throwException`); - expect(response.status).toBe(500); - const event = await eventWaiter; +test('RPC method which throws an exception to be logged to sentry', async ({ baseURL }) => { + const eventWaiter = waitForError('cloudflare-workers', event => { + return event.exception?.values?.[0]?.mechanism?.type === 'cloudflare_durableobject'; + }); + const response = await fetch(`${baseURL}/rpc/throwException`); + expect(response.status).toBe(500); + const event = await eventWaiter; expect(event.exception?.values?.[0]?.value).toBe('Should be recorded in Sentry.'); }); -test('Request processed by DurableObject\'s fetch is recorded', async ({baseURL}) => { - const eventWaiter = waitForError('cloudflare-workers', (event) => { +test("Request processed by DurableObject's fetch is recorded", async ({ baseURL }) => { + const eventWaiter = waitForError('cloudflare-workers', event => { return event.exception?.values?.[0]?.mechanism?.type === 'cloudflare_durableobject'; }); const response = await fetch(`${baseURL}/pass-to-object/throwException`); @@ -36,32 +36,32 @@ test('Request processed by DurableObject\'s fetch is recorded', async ({baseURL} const event = await eventWaiter; expect(event.exception?.values?.[0]?.value).toBe('Should be recorded in Sentry.'); }); -test('Websocket.webSocketMessage', async ({baseURL}) => { - const eventWaiter = waitForError('cloudflare-workers', (event) => { +test('Websocket.webSocketMessage', async ({ baseURL }) => { + const eventWaiter = waitForError('cloudflare-workers', event => { return event.exception?.values?.[0]?.mechanism?.type === 'cloudflare_durableobject'; }); const url = new URL('/pass-to-object/ws', baseURL); url.protocol = url.protocol.replace('http', 'ws'); const socket = new WebSocket(url.toString()); socket.addEventListener('open', () => { - socket.send('throwException') + socket.send('throwException'); }); const event = await eventWaiter; socket.close(); expect(event.exception?.values?.[0]?.value).toBe('Should be recorded in Sentry: webSocketMessage'); -}) +}); -test('Websocket.webSocketClose', async ({baseURL}) => { - const eventWaiter = waitForError('cloudflare-workers', (event) => { +test('Websocket.webSocketClose', async ({ baseURL }) => { + const eventWaiter = waitForError('cloudflare-workers', event => { return event.exception?.values?.[0]?.mechanism?.type === 'cloudflare_durableobject'; }); const url = new URL('/pass-to-object/ws', baseURL); url.protocol = url.protocol.replace('http', 'ws'); const socket = new WebSocket(url.toString()); socket.addEventListener('open', () => { - socket.send('throwOnExit') - socket.close() + socket.send('throwOnExit'); + socket.close(); }); const event = await eventWaiter; expect(event.exception?.values?.[0]?.value).toBe('Should be recorded in Sentry: webSocketClose'); -}) +}); diff --git a/dev-packages/e2e-tests/test-applications/cloudflare-workers/tests/tsconfig.json b/dev-packages/e2e-tests/test-applications/cloudflare-workers/tests/tsconfig.json index 978ecd87b7ce..9a3b10f6cdc8 100644 --- a/dev-packages/e2e-tests/test-applications/cloudflare-workers/tests/tsconfig.json +++ b/dev-packages/e2e-tests/test-applications/cloudflare-workers/tests/tsconfig.json @@ -1,8 +1,8 @@ { - "extends": "../tsconfig.json", - "compilerOptions": { - "types": ["@cloudflare/vitest-pool-workers"] - }, - "include": ["./**/*.ts", "../worker-configuration.d.ts"], - "exclude": [] + "extends": "../tsconfig.json", + "compilerOptions": { + "types": ["@cloudflare/vitest-pool-workers"] + }, + "include": ["./**/*.ts", "../worker-configuration.d.ts"], + "exclude": [] } diff --git a/dev-packages/e2e-tests/test-applications/cloudflare-workers/tsconfig.json b/dev-packages/e2e-tests/test-applications/cloudflare-workers/tsconfig.json index ca1f83e3bc15..f42019fb0915 100644 --- a/dev-packages/e2e-tests/test-applications/cloudflare-workers/tsconfig.json +++ b/dev-packages/e2e-tests/test-applications/cloudflare-workers/tsconfig.json @@ -1,45 +1,43 @@ { - "compilerOptions": { - /* Visit https://aka.ms/tsconfig.json to read more about this file */ + "compilerOptions": { + /* Visit https://aka.ms/tsconfig.json to read more about this file */ - /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ - "target": "es2021", - /* Specify a set of bundled library declaration files that describe the target runtime environment. */ - "lib": ["es2021"], - /* Specify what JSX code is generated. */ - "jsx": "react-jsx", + /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ + "target": "es2021", + /* Specify a set of bundled library declaration files that describe the target runtime environment. */ + "lib": ["es2021"], + /* Specify what JSX code is generated. */ + "jsx": "react-jsx", - /* Specify what module code is generated. */ - "module": "es2022", - /* Specify how TypeScript looks up a file from a given module specifier. */ - "moduleResolution": "Bundler", - /* Enable importing .json files */ - "resolveJsonModule": true, + /* Specify what module code is generated. */ + "module": "es2022", + /* Specify how TypeScript looks up a file from a given module specifier. */ + "moduleResolution": "Bundler", + /* Enable importing .json files */ + "resolveJsonModule": true, - /* Allow JavaScript files to be a part of your program. Use the `checkJS` option to get errors from these files. */ - "allowJs": true, - /* Enable error reporting in type-checked JavaScript files. */ - "checkJs": false, + /* Allow JavaScript files to be a part of your program. Use the `checkJS` option to get errors from these files. */ + "allowJs": true, + /* Enable error reporting in type-checked JavaScript files. */ + "checkJs": false, - /* Disable emitting files from a compilation. */ - "noEmit": true, + /* Disable emitting files from a compilation. */ + "noEmit": true, - /* Ensure that each file can be safely transpiled without relying on other imports. */ - "isolatedModules": true, - /* Allow 'import x from y' when a module doesn't have a default export. */ - "allowSyntheticDefaultImports": true, - /* Ensure that casing is correct in imports. */ - "forceConsistentCasingInFileNames": true, + /* Ensure that each file can be safely transpiled without relying on other imports. */ + "isolatedModules": true, + /* Allow 'import x from y' when a module doesn't have a default export. */ + "allowSyntheticDefaultImports": true, + /* Ensure that casing is correct in imports. */ + "forceConsistentCasingInFileNames": true, - /* Enable all strict type-checking options. */ - "strict": true, + /* Enable all strict type-checking options. */ + "strict": true, - /* Skip type checking all .d.ts files. */ - "skipLibCheck": true, - "types": [ - "./worker-configuration.d.ts" - ] - }, - "exclude": ["test"], - "include": ["worker-configuration.d.ts", "src/**/*.ts"] + /* Skip type checking all .d.ts files. */ + "skipLibCheck": true, + "types": ["./worker-configuration.d.ts"] + }, + "exclude": ["test"], + "include": ["worker-configuration.d.ts", "src/**/*.ts"] } diff --git a/dev-packages/e2e-tests/test-applications/cloudflare-workers/worker-configuration.d.ts b/dev-packages/e2e-tests/test-applications/cloudflare-workers/worker-configuration.d.ts index 08a92a61d05d..1701ed9f621a 100644 --- a/dev-packages/e2e-tests/test-applications/cloudflare-workers/worker-configuration.d.ts +++ b/dev-packages/e2e-tests/test-applications/cloudflare-workers/worker-configuration.d.ts @@ -3,5 +3,5 @@ interface Env { E2E_TEST_DSN: ''; - MY_DURABLE_OBJECT: DurableObjectNamespace + MY_DURABLE_OBJECT: DurableObjectNamespace; } diff --git a/dev-packages/e2e-tests/test-applications/create-remix-app-express-vite-dev/tests/server-transactions.test.ts b/dev-packages/e2e-tests/test-applications/create-remix-app-express-vite-dev/tests/server-transactions.test.ts index 58e81eeee529..3a896e17ad38 100644 --- a/dev-packages/e2e-tests/test-applications/create-remix-app-express-vite-dev/tests/server-transactions.test.ts +++ b/dev-packages/e2e-tests/test-applications/create-remix-app-express-vite-dev/tests/server-transactions.test.ts @@ -39,9 +39,8 @@ test('Sends two linked transactions (server & client) to Sentry', async ({ page const httpServerTraceId = httpServerTransaction.contexts?.trace?.trace_id; const httpServerSpanId = httpServerTransaction.contexts?.trace?.span_id; - const loaderSpanId = httpServerTransaction?.spans?.find( - span => span.data && span.data['code.function'] === 'loader', - )?.span_id; + const loaderSpanId = httpServerTransaction?.spans?.find(span => span.data && span.data['code.function'] === 'loader') + ?.span_id; const pageLoadTraceId = pageloadTransaction.contexts?.trace?.trace_id; const pageLoadSpanId = pageloadTransaction.contexts?.trace?.span_id; diff --git a/dev-packages/e2e-tests/test-applications/create-remix-app-express/tsconfig.json b/dev-packages/e2e-tests/test-applications/create-remix-app-express/tsconfig.json index 909c40f4d950..0c6c558ce578 100644 --- a/dev-packages/e2e-tests/test-applications/create-remix-app-express/tsconfig.json +++ b/dev-packages/e2e-tests/test-applications/create-remix-app-express/tsconfig.json @@ -17,6 +17,6 @@ "~/*": ["./app/*"] }, // Remix takes care of building everything in `remix build`. - "noEmit": true, - }, + "noEmit": true + } } diff --git a/dev-packages/e2e-tests/test-applications/ember-classic/tsconfig.app.json b/dev-packages/e2e-tests/test-applications/ember-classic/tsconfig.app.json index 55663457968a..f87679196bb3 100644 --- a/dev-packages/e2e-tests/test-applications/ember-classic/tsconfig.app.json +++ b/dev-packages/e2e-tests/test-applications/ember-classic/tsconfig.app.json @@ -10,12 +10,8 @@ // work with TypeScript. "baseUrl": ".", "paths": { - "ember-classic/*": [ - "app/*" - ], - "*": [ - "types/*" - ], + "ember-classic/*": ["app/*"], + "*": ["types/*"] } }, "include": ["app/**/*", "types/**/*"], diff --git a/dev-packages/e2e-tests/test-applications/ember-classic/tsconfig.json b/dev-packages/e2e-tests/test-applications/ember-classic/tsconfig.json index 78f134a16dca..66b5e5703e83 100644 --- a/dev-packages/e2e-tests/test-applications/ember-classic/tsconfig.json +++ b/dev-packages/e2e-tests/test-applications/ember-classic/tsconfig.json @@ -7,5 +7,5 @@ { "path": "./tsconfig.app.json" } - ], + ] } diff --git a/dev-packages/e2e-tests/test-applications/ember-embroider/tsconfig.app.json b/dev-packages/e2e-tests/test-applications/ember-embroider/tsconfig.app.json index bdfe8763ecc2..35f5e9b7f3c3 100644 --- a/dev-packages/e2e-tests/test-applications/ember-embroider/tsconfig.app.json +++ b/dev-packages/e2e-tests/test-applications/ember-embroider/tsconfig.app.json @@ -10,12 +10,8 @@ // work with TypeScript. "baseUrl": ".", "paths": { - "ember-embroider/*": [ - "app/*" - ], - "*": [ - "types/*" - ], + "ember-embroider/*": ["app/*"], + "*": ["types/*"] } }, "include": ["app/**/*", "types/**/*"], diff --git a/dev-packages/e2e-tests/test-applications/ember-embroider/tsconfig.json b/dev-packages/e2e-tests/test-applications/ember-embroider/tsconfig.json index 78f134a16dca..66b5e5703e83 100644 --- a/dev-packages/e2e-tests/test-applications/ember-embroider/tsconfig.json +++ b/dev-packages/e2e-tests/test-applications/ember-embroider/tsconfig.json @@ -7,5 +7,5 @@ { "path": "./tsconfig.app.json" } - ], + ] } diff --git a/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/app/entry.server.tsx b/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/app/entry.server.tsx index c2410fe87b26..acf5b4782b20 100644 --- a/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/app/entry.server.tsx +++ b/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/app/entry.server.tsx @@ -18,15 +18,17 @@ async function handleRequest( ], }); - const body = Sentry.injectTraceMetaTags(await renderToReadableStream( - - - , - { - nonce, - signal: request.signal, - }, - )); + const body = Sentry.injectTraceMetaTags( + await renderToReadableStream( + + + , + { + nonce, + signal: request.signal, + }, + ), + ); responseHeaders.set('Content-Type', 'text/html'); responseHeaders.set('Content-Security-Policy', header); @@ -50,5 +52,4 @@ export const handleError: HandleErrorFunction = (error, { request }) => { } }; - export default Sentry.wrapSentryHandleRequest(handleRequest); diff --git a/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/app/root.tsx b/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/app/root.tsx index e38f97bd3f06..afa85270e045 100644 --- a/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/app/root.tsx +++ b/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/app/root.tsx @@ -1,5 +1,5 @@ import * as Sentry from '@sentry/react-router/cloudflare'; -import {type LoaderFunctionArgs} from '@shopify/remix-oxygen'; +import { type LoaderFunctionArgs } from '@shopify/remix-oxygen'; import { Outlet, isRouteErrorResponse, @@ -9,20 +9,16 @@ import { Scripts, ScrollRestoration, } from 'react-router'; -import {FOOTER_QUERY, HEADER_QUERY} from '~/lib/fragments'; +import { FOOTER_QUERY, HEADER_QUERY } from '~/lib/fragments'; -import {useNonce} from '@shopify/hydrogen'; +import { useNonce } from '@shopify/hydrogen'; export type RootLoader = typeof loader; /** * This is important to avoid re-fetching root queries on sub-navigations */ -export const shouldRevalidate: ShouldRevalidateFunction = ({ - formMethod, - currentUrl, - nextUrl, -}) => { +export const shouldRevalidate: ShouldRevalidateFunction = ({ formMethod, currentUrl, nextUrl }) => { // revalidate when a mutation is performed e.g add to cart, login... if (formMethod && formMethod !== 'GET') return true; @@ -67,7 +63,7 @@ export async function loader(args: LoaderFunctionArgs) { // Await the critical data required to render initial state of the page const criticalData = await loadCriticalData(args); - const {env} = args.context; + const { env } = args.context; return { ...deferredData, @@ -92,8 +88,8 @@ export async function loader(args: LoaderFunctionArgs) { * Load data necessary for rendering content above the fold. This is the critical data * needed to render the page. If it's unavailable, the whole page should 400 or 500 error. */ -async function loadCriticalData({context}: LoaderFunctionArgs) { - const {storefront} = context; +async function loadCriticalData({ context }: LoaderFunctionArgs) { + const { storefront } = context; const [header] = await Promise.all([ storefront.query(HEADER_QUERY, { @@ -105,7 +101,7 @@ async function loadCriticalData({context}: LoaderFunctionArgs) { // Add other queries here, so that they are loaded in parallel ]); - return {header}; + return { header }; } /** @@ -113,8 +109,8 @@ async function loadCriticalData({context}: LoaderFunctionArgs) { * fetched after the initial page load. If it's unavailable, the page should still 200. * Make sure to not throw any errors here, as it will cause the page to 500. */ -function loadDeferredData({context}: LoaderFunctionArgs) { - const {storefront, customerAccount, cart} = context; +function loadDeferredData({ context }: LoaderFunctionArgs) { + const { storefront, customerAccount, cart } = context; // defer the footer query (below the fold) const footer = storefront @@ -136,7 +132,7 @@ function loadDeferredData({context}: LoaderFunctionArgs) { }; } -export function Layout({children}: {children?: React.ReactNode}) { +export function Layout({ children }: { children?: React.ReactNode }) { const nonce = useNonce(); return ( @@ -160,11 +156,7 @@ export default function App() { return ; } -export function ErrorBoundary({ - error -}: { - error: unknown -}) { +export function ErrorBoundary({ error }: { error: unknown }) { let errorMessage = 'Unknown error'; let errorStatus = 500; diff --git a/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/app/routes.ts b/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/app/routes.ts index f717956345d0..e5b3547b37f3 100644 --- a/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/app/routes.ts +++ b/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/app/routes.ts @@ -1,6 +1,6 @@ -import {flatRoutes} from '@react-router/fs-routes'; -import {type RouteConfig} from '@react-router/dev/routes'; -import {hydrogenRoutes} from '@shopify/hydrogen'; +import { flatRoutes } from '@react-router/fs-routes'; +import { type RouteConfig } from '@react-router/dev/routes'; +import { hydrogenRoutes } from '@shopify/hydrogen'; export default hydrogenRoutes([ ...(await flatRoutes()), diff --git a/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/instrument.server.mjs b/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/instrument.server.mjs index 044e50e1b86c..adab0b0b3d32 100644 --- a/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/instrument.server.mjs +++ b/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/instrument.server.mjs @@ -1,6 +1,6 @@ -import * as Sentry from "@sentry/react-router"; +import * as Sentry from '@sentry/react-router'; Sentry.init({ - dsn: "https://examplePublicKey@o0.ingest.sentry.io/0", + dsn: 'https://examplePublicKey@o0.ingest.sentry.io/0', // Adds request headers and IP for users, for more info visit: // https://docs.sentry.io/platforms/javascript/guides/react-router/configuration/options/#sendDefaultPii sendDefaultPii: true, diff --git a/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/package.json b/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/package.json index 75b4f35ae507..503ad2758767 100644 --- a/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/package.json +++ b/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/package.json @@ -13,7 +13,6 @@ "test:build": "pnpm install && npx playwright install && pnpm build", "test:assert": "pnpm playwright test" }, - "prettier": "@shopify/prettier-config", "dependencies": { "@sentry/cloudflare": "latest || *", "@sentry/react-router": "latest || *", @@ -38,7 +37,6 @@ "@shopify/hydrogen-codegen": "^0.3.3", "@shopify/mini-oxygen": "3.2.1", "@shopify/oxygen-workers-types": "^4.1.6", - "@shopify/prettier-config": "^1.1.2", "@tailwindcss/vite": "4.0.0-alpha.17", "@total-typescript/ts-reset": "^0.4.2", "@types/eslint": "^8.4.10", @@ -47,7 +45,6 @@ "esbuild": "0.25.0", "eslint": "^9.18.0", "eslint-plugin-hydrogen": "0.12.2", - "prettier": "^3.4.2", "typescript": "^5.2.2", "vite": "^6.2.4", "vite-tsconfig-paths": "^4.3.1" diff --git a/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/react-router.config.ts b/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/react-router.config.ts index 5c25f23ad404..09071780e0e5 100644 --- a/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/react-router.config.ts +++ b/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/react-router.config.ts @@ -1,4 +1,4 @@ -import type {Config} from '@react-router/dev/config'; +import type { Config } from '@react-router/dev/config'; import { sentryOnBuildEnd } from '@sentry/react-router'; export default { @@ -8,7 +8,6 @@ export default { buildEnd: async ({ viteConfig, reactRouterConfig, buildManifest }) => { // ... // Call this at the end of the hook - (await sentryOnBuildEnd({ viteConfig, reactRouterConfig, buildManifest })); - } + await sentryOnBuildEnd({ viteConfig, reactRouterConfig, buildManifest }); + }, } satisfies Config; - diff --git a/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/server.ts b/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/server.ts index 07638d967cf7..d28fab88135f 100644 --- a/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/server.ts +++ b/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/server.ts @@ -39,7 +39,7 @@ export default { request: request as any, context: executionContext, }, - async () => { + async () => { try { /** * Open a cache instance in the worker and a custom session instance. diff --git a/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/tsconfig.json b/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/tsconfig.json index af4a50ee6f5a..0d4c4dc2e4de 100644 --- a/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/tsconfig.json +++ b/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/tsconfig.json @@ -1,11 +1,5 @@ { - "include": [ - "server.ts", - "./app/**/*.d.ts", - "./app/**/*.ts", - "./app/**/*.tsx", - ".react-router/types/**/*" - ], + "include": ["server.ts", "./app/**/*.d.ts", "./app/**/*.ts", "./app/**/*.tsx", ".react-router/types/**/*"], "compilerOptions": { "lib": ["DOM", "DOM.Iterable", "ES2022"], "isolatedModules": true, diff --git a/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/vite.config.ts b/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/vite.config.ts index fbce6e7c8463..fbff797eddfa 100644 --- a/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/vite.config.ts +++ b/dev-packages/e2e-tests/test-applications/hydrogen-react-router-7/vite.config.ts @@ -6,15 +6,14 @@ import tsconfigPaths from 'vite-tsconfig-paths'; import { sentryReactRouter, type SentryReactRouterBuildOptions } from '@sentry/react-router'; const sentryConfig: SentryReactRouterBuildOptions = { - org: "example-org", - project: "example-project", + org: 'example-org', + project: 'example-project', // An auth token is required for uploading source maps; // store it in an environment variable to keep it secure. authToken: process.env.SENTRY_AUTH_TOKEN, // ... }; - export default defineConfig(config => ({ plugins: [ hydrogen(), diff --git a/dev-packages/e2e-tests/test-applications/nestjs-11/package.json b/dev-packages/e2e-tests/test-applications/nestjs-11/package.json index ed1784ccee8e..50ef252865be 100644 --- a/dev-packages/e2e-tests/test-applications/nestjs-11/package.json +++ b/dev-packages/e2e-tests/test-applications/nestjs-11/package.json @@ -4,7 +4,6 @@ "private": true, "scripts": { "build": "nest build", - "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"", "start": "nest start", "start:dev": "nest start --watch", "start:debug": "nest start --debug --watch", @@ -36,9 +35,6 @@ "@typescript-eslint/eslint-plugin": "^6.0.0", "@typescript-eslint/parser": "^6.0.0", "eslint": "^8.42.0", - "eslint-config-prettier": "^9.0.0", - "eslint-plugin-prettier": "^5.0.0", - "prettier": "^3.0.0", "source-map-support": "^0.5.21", "supertest": "^6.3.3", "ts-loader": "^9.4.3", diff --git a/dev-packages/e2e-tests/test-applications/nestjs-8/package.json b/dev-packages/e2e-tests/test-applications/nestjs-8/package.json index bbf2946f4c33..aa17d718c01d 100644 --- a/dev-packages/e2e-tests/test-applications/nestjs-8/package.json +++ b/dev-packages/e2e-tests/test-applications/nestjs-8/package.json @@ -4,7 +4,6 @@ "private": true, "scripts": { "build": "nest build", - "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"", "start": "nest start", "start:dev": "nest start --watch", "start:debug": "nest start --debug --watch", @@ -36,9 +35,6 @@ "@typescript-eslint/eslint-plugin": "^6.0.0", "@typescript-eslint/parser": "^6.0.0", "eslint": "^8.42.0", - "eslint-config-prettier": "^9.0.0", - "eslint-plugin-prettier": "^5.0.0", - "prettier": "^3.0.0", "source-map-support": "^0.5.21", "supertest": "^6.3.3", "ts-loader": "^9.4.3", diff --git a/dev-packages/e2e-tests/test-applications/nestjs-basic-with-graphql/package.json b/dev-packages/e2e-tests/test-applications/nestjs-basic-with-graphql/package.json index c6d95a42113f..f11ff272b072 100644 --- a/dev-packages/e2e-tests/test-applications/nestjs-basic-with-graphql/package.json +++ b/dev-packages/e2e-tests/test-applications/nestjs-basic-with-graphql/package.json @@ -4,7 +4,6 @@ "private": true, "scripts": { "build": "nest build", - "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"", "start": "nest start", "start:dev": "nest start --watch", "start:debug": "nest start --debug --watch", @@ -38,9 +37,6 @@ "@typescript-eslint/eslint-plugin": "^6.0.0", "@typescript-eslint/parser": "^6.0.0", "eslint": "^8.42.0", - "eslint-config-prettier": "^9.0.0", - "eslint-plugin-prettier": "^5.0.0", - "prettier": "^3.0.0", "source-map-support": "^0.5.21", "supertest": "^6.3.3", "ts-loader": "^9.4.3", diff --git a/dev-packages/e2e-tests/test-applications/nestjs-basic/package.json b/dev-packages/e2e-tests/test-applications/nestjs-basic/package.json index a91e7db8abf4..ba3535042af8 100644 --- a/dev-packages/e2e-tests/test-applications/nestjs-basic/package.json +++ b/dev-packages/e2e-tests/test-applications/nestjs-basic/package.json @@ -4,7 +4,6 @@ "private": true, "scripts": { "build": "nest build", - "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"", "start": "nest start", "start:dev": "nest start --watch", "start:debug": "nest start --debug --watch", @@ -36,9 +35,6 @@ "@typescript-eslint/eslint-plugin": "^6.0.0", "@typescript-eslint/parser": "^6.0.0", "eslint": "^8.42.0", - "eslint-config-prettier": "^9.0.0", - "eslint-plugin-prettier": "^5.0.0", - "prettier": "^3.0.0", "source-map-support": "^0.5.21", "supertest": "^6.3.3", "ts-loader": "^9.4.3", diff --git a/dev-packages/e2e-tests/test-applications/nestjs-distributed-tracing/package.json b/dev-packages/e2e-tests/test-applications/nestjs-distributed-tracing/package.json index b1153afee84b..8ed28dd45430 100644 --- a/dev-packages/e2e-tests/test-applications/nestjs-distributed-tracing/package.json +++ b/dev-packages/e2e-tests/test-applications/nestjs-distributed-tracing/package.json @@ -4,7 +4,6 @@ "private": true, "scripts": { "build": "nest build", - "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"", "start": "nest start", "start:dev": "nest start --watch", "start:debug": "nest start --debug --watch", @@ -35,9 +34,6 @@ "@typescript-eslint/eslint-plugin": "^6.0.0", "@typescript-eslint/parser": "^6.0.0", "eslint": "^8.42.0", - "eslint-config-prettier": "^9.0.0", - "eslint-plugin-prettier": "^5.0.0", - "prettier": "^3.0.0", "source-map-support": "^0.5.21", "supertest": "^6.3.3", "ts-loader": "^9.4.3", diff --git a/dev-packages/e2e-tests/test-applications/nestjs-fastify/package.json b/dev-packages/e2e-tests/test-applications/nestjs-fastify/package.json index f36c427e2e8a..9553a3b4e115 100644 --- a/dev-packages/e2e-tests/test-applications/nestjs-fastify/package.json +++ b/dev-packages/e2e-tests/test-applications/nestjs-fastify/package.json @@ -4,7 +4,6 @@ "private": true, "scripts": { "build": "nest build", - "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"", "start": "nest start", "start:dev": "nest start --watch", "start:debug": "nest start --debug --watch", @@ -36,9 +35,6 @@ "@typescript-eslint/eslint-plugin": "^6.0.0", "@typescript-eslint/parser": "^6.0.0", "eslint": "^8.42.0", - "eslint-config-prettier": "^9.0.0", - "eslint-plugin-prettier": "^5.0.0", - "prettier": "^3.0.0", "source-map-support": "^0.5.21", "supertest": "^6.3.3", "ts-loader": "^9.4.3", diff --git a/dev-packages/e2e-tests/test-applications/nestjs-fastify/tsconfig.json b/dev-packages/e2e-tests/test-applications/nestjs-fastify/tsconfig.json index 797d8abe0ead..15a7fce7f4b2 100644 --- a/dev-packages/e2e-tests/test-applications/nestjs-fastify/tsconfig.json +++ b/dev-packages/e2e-tests/test-applications/nestjs-fastify/tsconfig.json @@ -16,6 +16,6 @@ "noImplicitAny": false, "strictBindCallApply": false, "forceConsistentCasingInFileNames": false, - "noFallthroughCasesInSwitch": false, + "noFallthroughCasesInSwitch": false } } diff --git a/dev-packages/e2e-tests/test-applications/nestjs-graphql/package.json b/dev-packages/e2e-tests/test-applications/nestjs-graphql/package.json index 21fcd6e3fdf6..d6a501596b35 100644 --- a/dev-packages/e2e-tests/test-applications/nestjs-graphql/package.json +++ b/dev-packages/e2e-tests/test-applications/nestjs-graphql/package.json @@ -4,7 +4,6 @@ "private": true, "scripts": { "build": "nest build", - "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"", "start": "nest start", "start:dev": "nest start --watch", "start:debug": "nest start --debug --watch", @@ -38,9 +37,6 @@ "@typescript-eslint/eslint-plugin": "^6.0.0", "@typescript-eslint/parser": "^6.0.0", "eslint": "^8.42.0", - "eslint-config-prettier": "^9.0.0", - "eslint-plugin-prettier": "^5.0.0", - "prettier": "^3.0.0", "source-map-support": "^0.5.21", "supertest": "^6.3.3", "ts-loader": "^9.4.3", diff --git a/dev-packages/e2e-tests/test-applications/nestjs-with-submodules-decorator/package.json b/dev-packages/e2e-tests/test-applications/nestjs-with-submodules-decorator/package.json index 41722a6adc32..1b8fd5b69c7f 100644 --- a/dev-packages/e2e-tests/test-applications/nestjs-with-submodules-decorator/package.json +++ b/dev-packages/e2e-tests/test-applications/nestjs-with-submodules-decorator/package.json @@ -4,7 +4,6 @@ "private": true, "scripts": { "build": "nest build", - "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"", "start": "nest start", "start:dev": "nest start --watch", "start:debug": "nest start --debug --watch", @@ -34,9 +33,6 @@ "@typescript-eslint/eslint-plugin": "^6.0.0", "@typescript-eslint/parser": "^6.0.0", "eslint": "^8.42.0", - "eslint-config-prettier": "^9.0.0", - "eslint-plugin-prettier": "^5.0.0", - "prettier": "^3.0.0", "source-map-support": "^0.5.21", "supertest": "^6.3.3", "ts-loader": "^9.4.3", diff --git a/dev-packages/e2e-tests/test-applications/nestjs-with-submodules/package.json b/dev-packages/e2e-tests/test-applications/nestjs-with-submodules/package.json index 08e02f4077e6..e17b1d3a5cbd 100644 --- a/dev-packages/e2e-tests/test-applications/nestjs-with-submodules/package.json +++ b/dev-packages/e2e-tests/test-applications/nestjs-with-submodules/package.json @@ -4,7 +4,6 @@ "private": true, "scripts": { "build": "nest build", - "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"", "start": "nest start", "start:dev": "nest start --watch", "start:debug": "nest start --debug --watch", @@ -34,9 +33,6 @@ "@typescript-eslint/eslint-plugin": "^6.0.0", "@typescript-eslint/parser": "^6.0.0", "eslint": "^8.42.0", - "eslint-config-prettier": "^9.0.0", - "eslint-plugin-prettier": "^5.0.0", - "prettier": "^3.0.0", "source-map-support": "^0.5.21", "supertest": "^6.3.3", "ts-loader": "^9.4.3", diff --git a/dev-packages/e2e-tests/test-applications/nextjs-13/app/parameterized/static/page.tsx b/dev-packages/e2e-tests/test-applications/nextjs-13/app/parameterized/static/page.tsx index 080e09fe6df2..16ef0482d53b 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-13/app/parameterized/static/page.tsx +++ b/dev-packages/e2e-tests/test-applications/nextjs-13/app/parameterized/static/page.tsx @@ -1,7 +1,3 @@ export default function StaticPage() { - return ( -
- Static page -
- ); + return
Static page
; } diff --git a/dev-packages/e2e-tests/test-applications/nextjs-14/app/parameterized/static/page.tsx b/dev-packages/e2e-tests/test-applications/nextjs-14/app/parameterized/static/page.tsx index 080e09fe6df2..16ef0482d53b 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-14/app/parameterized/static/page.tsx +++ b/dev-packages/e2e-tests/test-applications/nextjs-14/app/parameterized/static/page.tsx @@ -1,7 +1,3 @@ export default function StaticPage() { - return ( -
- Static page -
- ); + return
Static page
; } diff --git a/dev-packages/e2e-tests/test-applications/nextjs-15/app/ai-test/page.tsx b/dev-packages/e2e-tests/test-applications/nextjs-15/app/ai-test/page.tsx index 828e92baf62a..d28a147eb88d 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-15/app/ai-test/page.tsx +++ b/dev-packages/e2e-tests/test-applications/nextjs-15/app/ai-test/page.tsx @@ -54,7 +54,7 @@ async function runAITest() { tools: { getWeather: { parameters: z.object({ location: z.string() }), - execute: async (args) => { + execute: async args => { return `Weather in ${args.location}: Sunny, 72°F`; }, }, @@ -85,12 +85,9 @@ async function runAITest() { } export default async function Page() { - const results = await Sentry.startSpan( - { op: 'function', name: 'ai-test' }, - async () => { - return await runAITest(); - } - ); + const results = await Sentry.startSpan({ op: 'function', name: 'ai-test' }, async () => { + return await runAITest(); + }); return (
diff --git a/dev-packages/e2e-tests/test-applications/nextjs-15/app/parameterized/static/page.tsx b/dev-packages/e2e-tests/test-applications/nextjs-15/app/parameterized/static/page.tsx index 080e09fe6df2..16ef0482d53b 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-15/app/parameterized/static/page.tsx +++ b/dev-packages/e2e-tests/test-applications/nextjs-15/app/parameterized/static/page.tsx @@ -1,7 +1,3 @@ export default function StaticPage() { - return ( -
- Static page -
- ); + return
Static page
; } diff --git a/dev-packages/e2e-tests/test-applications/nextjs-15/app/ppr-error/[param]/page.tsx b/dev-packages/e2e-tests/test-applications/nextjs-15/app/ppr-error/[param]/page.tsx index c67513e0e4fd..f2e096164d04 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-15/app/ppr-error/[param]/page.tsx +++ b/dev-packages/e2e-tests/test-applications/nextjs-15/app/ppr-error/[param]/page.tsx @@ -1,10 +1,6 @@ import * as Sentry from '@sentry/nextjs'; -export default async function Page({ - searchParams, -}: { - searchParams: any; -}) { +export default async function Page({ searchParams }: { searchParams: any }) { // We need to dynamically check for this because Next.js made the API async for Next.js 15 and we use this test in canary tests const normalizedSearchParams = await searchParams; diff --git a/dev-packages/e2e-tests/test-applications/nextjs-15/sentry.server.config.ts b/dev-packages/e2e-tests/test-applications/nextjs-15/sentry.server.config.ts index 947e8bb7f819..270c7244ad17 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-15/sentry.server.config.ts +++ b/dev-packages/e2e-tests/test-applications/nextjs-15/sentry.server.config.ts @@ -10,7 +10,5 @@ Sentry.init({ // We are doing a lot of events at once in this test bufferSize: 1000, }, - integrations: [ - Sentry.vercelAIIntegration(), - ], + integrations: [Sentry.vercelAIIntegration()], }); diff --git a/dev-packages/e2e-tests/test-applications/nextjs-orpc/package.json b/dev-packages/e2e-tests/test-applications/nextjs-orpc/package.json index cd1697890ced..f8c9e58f06d1 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-orpc/package.json +++ b/dev-packages/e2e-tests/test-applications/nextjs-orpc/package.json @@ -36,7 +36,6 @@ "eslint": "^8.57.0", "eslint-config-next": "^14.2.4", "postcss": "^8.4.39", - "prettier": "^3.3.2", "typescript": "^5.5.3", "zod": "^3.24.2" }, diff --git a/dev-packages/e2e-tests/test-applications/nextjs-orpc/src/app/global-error.tsx b/dev-packages/e2e-tests/test-applications/nextjs-orpc/src/app/global-error.tsx index 912ad3606a61..20c175015b03 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-orpc/src/app/global-error.tsx +++ b/dev-packages/e2e-tests/test-applications/nextjs-orpc/src/app/global-error.tsx @@ -4,11 +4,7 @@ import * as Sentry from '@sentry/nextjs'; import NextError from 'next/error'; import { useEffect } from 'react'; -export default function GlobalError({ - error, -}: { - error: Error & { digest?: string }; -}) { +export default function GlobalError({ error }: { error: Error & { digest?: string } }) { useEffect(() => { Sentry.captureException(error); }, [error]); diff --git a/dev-packages/e2e-tests/test-applications/nextjs-orpc/tsconfig.json b/dev-packages/e2e-tests/test-applications/nextjs-orpc/tsconfig.json index 905062ded60c..246178da2b5e 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-orpc/tsconfig.json +++ b/dev-packages/e2e-tests/test-applications/nextjs-orpc/tsconfig.json @@ -29,14 +29,6 @@ "~/*": ["./src/*"] } }, - "include": [ - ".eslintrc.cjs", - "next-env.d.ts", - "**/*.ts", - "**/*.tsx", - "**/*.cjs", - "**/*.js", - ".next/types/**/*.ts" - ], + "include": [".eslintrc.cjs", "next-env.d.ts", "**/*.ts", "**/*.tsx", "**/*.cjs", "**/*.js", ".next/types/**/*.ts"], "exclude": ["node_modules"] } diff --git a/dev-packages/e2e-tests/test-applications/nextjs-t3/package.json b/dev-packages/e2e-tests/test-applications/nextjs-t3/package.json index e9a7ae6a232d..467d47c69c68 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-t3/package.json +++ b/dev-packages/e2e-tests/test-applications/nextjs-t3/package.json @@ -40,8 +40,6 @@ "eslint": "^8.57.0", "eslint-config-next": "^14.2.4", "postcss": "^8.4.39", - "prettier": "^3.3.2", - "prettier-plugin-tailwindcss": "^0.6.5", "tailwindcss": "^3.4.3", "typescript": "^5.5.3" }, diff --git a/dev-packages/e2e-tests/test-applications/nextjs-t3/src/app/global-error.tsx b/dev-packages/e2e-tests/test-applications/nextjs-t3/src/app/global-error.tsx index 912ad3606a61..20c175015b03 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-t3/src/app/global-error.tsx +++ b/dev-packages/e2e-tests/test-applications/nextjs-t3/src/app/global-error.tsx @@ -4,11 +4,7 @@ import * as Sentry from '@sentry/nextjs'; import NextError from 'next/error'; import { useEffect } from 'react'; -export default function GlobalError({ - error, -}: { - error: Error & { digest?: string }; -}) { +export default function GlobalError({ error }: { error: Error & { digest?: string } }) { useEffect(() => { Sentry.captureException(error); }, [error]); diff --git a/dev-packages/e2e-tests/test-applications/nextjs-t3/tsconfig.json b/dev-packages/e2e-tests/test-applications/nextjs-t3/tsconfig.json index 905062ded60c..246178da2b5e 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-t3/tsconfig.json +++ b/dev-packages/e2e-tests/test-applications/nextjs-t3/tsconfig.json @@ -29,14 +29,6 @@ "~/*": ["./src/*"] } }, - "include": [ - ".eslintrc.cjs", - "next-env.d.ts", - "**/*.ts", - "**/*.tsx", - "**/*.cjs", - "**/*.js", - ".next/types/**/*.ts" - ], + "include": [".eslintrc.cjs", "next-env.d.ts", "**/*.ts", "**/*.tsx", "**/*.cjs", "**/*.js", ".next/types/**/*.ts"], "exclude": ["node_modules"] } diff --git a/dev-packages/e2e-tests/test-applications/nextjs-turbo/app/global-error.tsx b/dev-packages/e2e-tests/test-applications/nextjs-turbo/app/global-error.tsx index 912ad3606a61..20c175015b03 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-turbo/app/global-error.tsx +++ b/dev-packages/e2e-tests/test-applications/nextjs-turbo/app/global-error.tsx @@ -4,11 +4,7 @@ import * as Sentry from '@sentry/nextjs'; import NextError from 'next/error'; import { useEffect } from 'react'; -export default function GlobalError({ - error, -}: { - error: Error & { digest?: string }; -}) { +export default function GlobalError({ error }: { error: Error & { digest?: string } }) { useEffect(() => { Sentry.captureException(error); }, [error]); diff --git a/dev-packages/e2e-tests/test-applications/nextjs-turbo/app/parameterized/static/page.tsx b/dev-packages/e2e-tests/test-applications/nextjs-turbo/app/parameterized/static/page.tsx index 080e09fe6df2..16ef0482d53b 100644 --- a/dev-packages/e2e-tests/test-applications/nextjs-turbo/app/parameterized/static/page.tsx +++ b/dev-packages/e2e-tests/test-applications/nextjs-turbo/app/parameterized/static/page.tsx @@ -1,7 +1,3 @@ export default function StaticPage() { - return ( -
- Static page -
- ); + return
Static page
; } diff --git a/dev-packages/e2e-tests/test-applications/node-express-v5/tests/errors.test.ts b/dev-packages/e2e-tests/test-applications/node-express-v5/tests/errors.test.ts index 2b810615039a..56b4f51d228d 100644 --- a/dev-packages/e2e-tests/test-applications/node-express-v5/tests/errors.test.ts +++ b/dev-packages/e2e-tests/test-applications/node-express-v5/tests/errors.test.ts @@ -43,11 +43,11 @@ test('Should record caught exceptions with local variable', async ({ baseURL }) test('To not crash app from withMonitor', async ({ baseURL }) => { const doRequest = async (id: number) => { - const response = await fetch(`${baseURL}/crash-in-with-monitor/${id}`) + const response = await fetch(`${baseURL}/crash-in-with-monitor/${id}`); return response.json(); - } - const [response1, response2] = await Promise.all([doRequest(1), doRequest(2)]) - expect(response1.message).toBe('This is an exception withMonitor: 1') - expect(response2.message).toBe('This is an exception withMonitor: 2') - expect(response1.pid).toBe(response2.pid) //Just to double-check, TBS + }; + const [response1, response2] = await Promise.all([doRequest(1), doRequest(2)]); + expect(response1.message).toBe('This is an exception withMonitor: 1'); + expect(response2.message).toBe('This is an exception withMonitor: 2'); + expect(response1.pid).toBe(response2.pid); //Just to double-check, TBS }); diff --git a/dev-packages/e2e-tests/test-applications/node-firebase/src/init.ts b/dev-packages/e2e-tests/test-applications/node-firebase/src/init.ts index 23c3d2fa5974..c3b4a642375a 100644 --- a/dev-packages/e2e-tests/test-applications/node-firebase/src/init.ts +++ b/dev-packages/e2e-tests/test-applications/node-firebase/src/init.ts @@ -1,6 +1,5 @@ import * as Sentry from '@sentry/node'; - Sentry.init({ dsn: 'https://public@dsn.ingest.sentry.io/1337', release: '1.0', diff --git a/dev-packages/e2e-tests/test-applications/nuxt-3-dynamic-import/app.vue b/dev-packages/e2e-tests/test-applications/nuxt-3-dynamic-import/app.vue index 23283a522546..17a9e263bd72 100644 --- a/dev-packages/e2e-tests/test-applications/nuxt-3-dynamic-import/app.vue +++ b/dev-packages/e2e-tests/test-applications/nuxt-3-dynamic-import/app.vue @@ -13,5 +13,4 @@ - + diff --git a/dev-packages/e2e-tests/test-applications/nuxt-3-dynamic-import/components/ErrorButton.vue b/dev-packages/e2e-tests/test-applications/nuxt-3-dynamic-import/components/ErrorButton.vue index 92ea714ae489..b686436bee17 100644 --- a/dev-packages/e2e-tests/test-applications/nuxt-3-dynamic-import/components/ErrorButton.vue +++ b/dev-packages/e2e-tests/test-applications/nuxt-3-dynamic-import/components/ErrorButton.vue @@ -4,13 +4,13 @@ import { defineProps } from 'vue'; const props = defineProps({ errorText: { type: String, - required: true + required: true, }, id: { type: String, - required: true - } -}) + required: true, + }, +}); const triggerError = () => { throw new Error(props.errorText); diff --git a/dev-packages/e2e-tests/test-applications/nuxt-3-dynamic-import/pages/client-error.vue b/dev-packages/e2e-tests/test-applications/nuxt-3-dynamic-import/pages/client-error.vue index 5e1a14931f84..6911dff7c2ee 100644 --- a/dev-packages/e2e-tests/test-applications/nuxt-3-dynamic-import/pages/client-error.vue +++ b/dev-packages/e2e-tests/test-applications/nuxt-3-dynamic-import/pages/client-error.vue @@ -3,9 +3,6 @@ import ErrorButton from '../components/ErrorButton.vue'; - - - diff --git a/dev-packages/e2e-tests/test-applications/nuxt-3-dynamic-import/pages/index.vue b/dev-packages/e2e-tests/test-applications/nuxt-3-dynamic-import/pages/index.vue index 74513c5697f3..a3741b5111d0 100644 --- a/dev-packages/e2e-tests/test-applications/nuxt-3-dynamic-import/pages/index.vue +++ b/dev-packages/e2e-tests/test-applications/nuxt-3-dynamic-import/pages/index.vue @@ -1,3 +1,3 @@ diff --git a/dev-packages/e2e-tests/test-applications/nuxt-3-min/app.vue b/dev-packages/e2e-tests/test-applications/nuxt-3-min/app.vue index 23283a522546..17a9e263bd72 100644 --- a/dev-packages/e2e-tests/test-applications/nuxt-3-min/app.vue +++ b/dev-packages/e2e-tests/test-applications/nuxt-3-min/app.vue @@ -13,5 +13,4 @@ - + diff --git a/dev-packages/e2e-tests/test-applications/nuxt-3-min/components/ErrorButton.vue b/dev-packages/e2e-tests/test-applications/nuxt-3-min/components/ErrorButton.vue index 92ea714ae489..b686436bee17 100644 --- a/dev-packages/e2e-tests/test-applications/nuxt-3-min/components/ErrorButton.vue +++ b/dev-packages/e2e-tests/test-applications/nuxt-3-min/components/ErrorButton.vue @@ -4,13 +4,13 @@ import { defineProps } from 'vue'; const props = defineProps({ errorText: { type: String, - required: true + required: true, }, id: { type: String, - required: true - } -}) + required: true, + }, +}); const triggerError = () => { throw new Error(props.errorText); diff --git a/dev-packages/e2e-tests/test-applications/nuxt-3-min/package.json b/dev-packages/e2e-tests/test-applications/nuxt-3-min/package.json index 92e21b103eeb..77a0459542be 100644 --- a/dev-packages/e2e-tests/test-applications/nuxt-3-min/package.json +++ b/dev-packages/e2e-tests/test-applications/nuxt-3-min/package.json @@ -31,7 +31,7 @@ "ofetch": "1.4.0", "@vercel/nft": "0.29.4" } -}, + }, "volta": { "extends": "../../package.json" } diff --git a/dev-packages/e2e-tests/test-applications/nuxt-3-min/pages/client-error.vue b/dev-packages/e2e-tests/test-applications/nuxt-3-min/pages/client-error.vue index d244ef773140..2bc7f00c866b 100644 --- a/dev-packages/e2e-tests/test-applications/nuxt-3-min/pages/client-error.vue +++ b/dev-packages/e2e-tests/test-applications/nuxt-3-min/pages/client-error.vue @@ -3,9 +3,6 @@ import ErrorButton from '../components/ErrorButton.vue'; - - - diff --git a/dev-packages/e2e-tests/test-applications/nuxt-3-min/pages/index.vue b/dev-packages/e2e-tests/test-applications/nuxt-3-min/pages/index.vue index 74513c5697f3..a3741b5111d0 100644 --- a/dev-packages/e2e-tests/test-applications/nuxt-3-min/pages/index.vue +++ b/dev-packages/e2e-tests/test-applications/nuxt-3-min/pages/index.vue @@ -1,3 +1,3 @@ diff --git a/dev-packages/e2e-tests/test-applications/nuxt-3-top-level-import/app.vue b/dev-packages/e2e-tests/test-applications/nuxt-3-top-level-import/app.vue index 23283a522546..17a9e263bd72 100644 --- a/dev-packages/e2e-tests/test-applications/nuxt-3-top-level-import/app.vue +++ b/dev-packages/e2e-tests/test-applications/nuxt-3-top-level-import/app.vue @@ -13,5 +13,4 @@ - + diff --git a/dev-packages/e2e-tests/test-applications/nuxt-3-top-level-import/components/ErrorButton.vue b/dev-packages/e2e-tests/test-applications/nuxt-3-top-level-import/components/ErrorButton.vue index 92ea714ae489..b686436bee17 100644 --- a/dev-packages/e2e-tests/test-applications/nuxt-3-top-level-import/components/ErrorButton.vue +++ b/dev-packages/e2e-tests/test-applications/nuxt-3-top-level-import/components/ErrorButton.vue @@ -4,13 +4,13 @@ import { defineProps } from 'vue'; const props = defineProps({ errorText: { type: String, - required: true + required: true, }, id: { type: String, - required: true - } -}) + required: true, + }, +}); const triggerError = () => { throw new Error(props.errorText); diff --git a/dev-packages/e2e-tests/test-applications/nuxt-3-top-level-import/pages/client-error.vue b/dev-packages/e2e-tests/test-applications/nuxt-3-top-level-import/pages/client-error.vue index 5e1a14931f84..6911dff7c2ee 100644 --- a/dev-packages/e2e-tests/test-applications/nuxt-3-top-level-import/pages/client-error.vue +++ b/dev-packages/e2e-tests/test-applications/nuxt-3-top-level-import/pages/client-error.vue @@ -3,9 +3,6 @@ import ErrorButton from '../components/ErrorButton.vue'; - - - diff --git a/dev-packages/e2e-tests/test-applications/nuxt-3-top-level-import/pages/index.vue b/dev-packages/e2e-tests/test-applications/nuxt-3-top-level-import/pages/index.vue index 74513c5697f3..a3741b5111d0 100644 --- a/dev-packages/e2e-tests/test-applications/nuxt-3-top-level-import/pages/index.vue +++ b/dev-packages/e2e-tests/test-applications/nuxt-3-top-level-import/pages/index.vue @@ -1,3 +1,3 @@ diff --git a/dev-packages/e2e-tests/test-applications/nuxt-3/app.vue b/dev-packages/e2e-tests/test-applications/nuxt-3/app.vue index 23283a522546..17a9e263bd72 100644 --- a/dev-packages/e2e-tests/test-applications/nuxt-3/app.vue +++ b/dev-packages/e2e-tests/test-applications/nuxt-3/app.vue @@ -13,5 +13,4 @@ - + diff --git a/dev-packages/e2e-tests/test-applications/nuxt-3/components/ErrorButton.vue b/dev-packages/e2e-tests/test-applications/nuxt-3/components/ErrorButton.vue index 92ea714ae489..b686436bee17 100644 --- a/dev-packages/e2e-tests/test-applications/nuxt-3/components/ErrorButton.vue +++ b/dev-packages/e2e-tests/test-applications/nuxt-3/components/ErrorButton.vue @@ -4,13 +4,13 @@ import { defineProps } from 'vue'; const props = defineProps({ errorText: { type: String, - required: true + required: true, }, id: { type: String, - required: true - } -}) + required: true, + }, +}); const triggerError = () => { throw new Error(props.errorText); diff --git a/dev-packages/e2e-tests/test-applications/nuxt-3/pages/client-error.vue b/dev-packages/e2e-tests/test-applications/nuxt-3/pages/client-error.vue index ea353639a3f4..649917c16f83 100644 --- a/dev-packages/e2e-tests/test-applications/nuxt-3/pages/client-error.vue +++ b/dev-packages/e2e-tests/test-applications/nuxt-3/pages/client-error.vue @@ -3,14 +3,14 @@ import ErrorButton from '../components/ErrorButton.vue'; const catchErr = () => { console.log('Additional functionality in NuxtErrorBoundary'); -} +}; diff --git a/dev-packages/e2e-tests/test-applications/nuxt-3/pages/index.vue b/dev-packages/e2e-tests/test-applications/nuxt-3/pages/index.vue index 74513c5697f3..a3741b5111d0 100644 --- a/dev-packages/e2e-tests/test-applications/nuxt-3/pages/index.vue +++ b/dev-packages/e2e-tests/test-applications/nuxt-3/pages/index.vue @@ -1,3 +1,3 @@ diff --git a/dev-packages/e2e-tests/test-applications/nuxt-4/app/components/ErrorButton.vue b/dev-packages/e2e-tests/test-applications/nuxt-4/app/components/ErrorButton.vue index 92ea714ae489..b686436bee17 100644 --- a/dev-packages/e2e-tests/test-applications/nuxt-4/app/components/ErrorButton.vue +++ b/dev-packages/e2e-tests/test-applications/nuxt-4/app/components/ErrorButton.vue @@ -4,13 +4,13 @@ import { defineProps } from 'vue'; const props = defineProps({ errorText: { type: String, - required: true + required: true, }, id: { type: String, - required: true - } -}) + required: true, + }, +}); const triggerError = () => { throw new Error(props.errorText); diff --git a/dev-packages/e2e-tests/test-applications/nuxt-4/app/pages/client-error.vue b/dev-packages/e2e-tests/test-applications/nuxt-4/app/pages/client-error.vue index 9ec99d1e7471..97f8abf00fb9 100644 --- a/dev-packages/e2e-tests/test-applications/nuxt-4/app/pages/client-error.vue +++ b/dev-packages/e2e-tests/test-applications/nuxt-4/app/pages/client-error.vue @@ -3,14 +3,14 @@ import ErrorButton from '../components/ErrorButton.vue'; const catchErr = () => { console.log('Additional functionality in NuxtErrorBoundary'); -} +}; diff --git a/dev-packages/e2e-tests/test-applications/nuxt-4/app/pages/index.vue b/dev-packages/e2e-tests/test-applications/nuxt-4/app/pages/index.vue index 74513c5697f3..a3741b5111d0 100644 --- a/dev-packages/e2e-tests/test-applications/nuxt-4/app/pages/index.vue +++ b/dev-packages/e2e-tests/test-applications/nuxt-4/app/pages/index.vue @@ -1,3 +1,3 @@ diff --git a/dev-packages/e2e-tests/test-applications/nuxt-4/app/pages/pinia-cart.vue b/dev-packages/e2e-tests/test-applications/nuxt-4/app/pages/pinia-cart.vue index 3d210cf459de..07464aa28ca3 100644 --- a/dev-packages/e2e-tests/test-applications/nuxt-4/app/pages/pinia-cart.vue +++ b/dev-packages/e2e-tests/test-applications/nuxt-4/app/pages/pinia-cart.vue @@ -1,24 +1,24 @@ @@ -26,7 +26,7 @@ function clearCart() { - -