From 4be728802ff34db94446ca92ac4f53723b2aa0f6 Mon Sep 17 00:00:00 2001 From: hrmny <8845940+ForsakenHarmony@users.noreply.github.com> Date: Fri, 26 Apr 2024 20:07:09 +0200 Subject: [PATCH] chore: update prettier to 3.2.5 --- .../next-integration-stat/src/index.ts | 41 +- .../next-stats-action/src/add-comment.js | 4 +- .../src/prepare/load-stats-config.js | 8 +- .prettierignore | 9 +- .prettierignore_staged | 17 - .../next-minimal-server/bin/minimal-server.js | 8 +- examples/app-dir-mdx/app/page.module.css | 4 +- examples/basic-css/styles.module.css | 5 +- examples/blog/styles/main.css | 28 +- examples/cms-buttercms/css/lineicons.css | 3 +- .../cms-buttercms/css/tiny-slider.min.css | 12 +- examples/cms-contentful/lib/api.ts | 8 +- .../cms-kontent-ai/pages/posts/[slug].tsx | 2 +- .../cms-plasmic/pages/[[...catchall]].tsx | 4 +- examples/cms-plasmic/styles/globals.css | 14 +- .../assets/sass/base/typehead/_typehead.scss | 4 +- .../src/lib/page-props-factory/index.ts | 13 +- examples/cms-wordpress/lib/api.ts | 5 +- examples/markdoc/public/globals.css | 18 +- .../components/paragraph.tsx | 4 +- .../nested-components/components/post.tsx | 4 +- .../styles/Home.module.css | 15 +- .../progressive-web-app/styles/globals.css | 14 +- examples/with-ably/styles/globals.css | 14 +- .../styles/global.css | 14 +- examples/with-apivideo/style/index.css | 14 +- .../with-apollo-and-redux/components/Clock.js | 5 +- examples/with-azure-cosmos/pages/index.tsx | 17 +- examples/with-clerk/styles/Home.module.css | 27 +- examples/with-contentlayer/styles/globals.css | 14 +- .../with-couchbase/styles/Home.module.css | 15 +- examples/with-couchbase/styles/globals.css | 14 +- .../cypress/support/component-index.html | 2 +- examples/with-cypress/styles/Home.module.css | 15 +- examples/with-cypress/styles/globals.css | 14 +- .../next-app/src/styles/Home.module.css | 15 +- .../next-app/src/styles/globals.css | 14 +- .../styles/Home.module.css | 15 +- .../with-docker-multi-env/styles/globals.css | 14 +- examples/with-docker/styles/Home.module.css | 15 +- examples/with-docker/styles/globals.css | 14 +- .../with-elasticsearch/styles/Home.module.css | 4 +- examples/with-emotion/shared/styles.tsx | 4 +- examples/with-fauna/app/guestbook-page.tsx | 4 +- .../components/VisitorDataPresenter.tsx | 4 +- examples/with-firebase/pages/index.js | 28 +- .../with-formspree/styles/Home.module.css | 15 +- examples/with-formspree/styles/globals.css | 14 +- .../styles/Home.module.css | 15 +- .../with-graphql-gateway/styles/globals.css | 14 +- examples/with-hls-js/pages/index.js | 24 +- .../with-jest-babel/pages/index.module.css | 4 +- examples/with-jest-babel/styles/global.css | 25 +- examples/with-jest/pages/index.module.css | 4 +- examples/with-jest/styles/global.css | 25 +- examples/with-jotai/styles/Home.module.css | 15 +- examples/with-jotai/styles/globals.css | 14 +- examples/with-knex/pages/index.js | 28 +- examples/with-magic/components/layout.js | 16 +- examples/with-mantine/styles/globals.css | 14 +- examples/with-mdbreact/styles/globals.css | 14 +- examples/with-mobx/components/Clock.js | 5 +- examples/with-mongodb/pages/index.tsx | 28 +- examples/with-neo4j/styles/global.js | 14 +- .../with-next-page-transitions/pages/_app.js | 4 +- examples/with-next-translate/app/style.css | 29 +- examples/with-next-ui/styles/globals.css | 14 +- .../with-particles/styles/Home.module.css | 15 +- examples/with-particles/styles/globals.css | 14 +- .../with-passport-and-next-connect/styles.css | 16 +- examples/with-passport/components/layout.js | 16 +- .../with-playwright/styles/Home.module.css | 15 +- examples/with-playwright/styles/globals.css | 14 +- examples/with-postgres/styles/globals.css | 5 +- examples/with-react-jss/pages/_document.tsx | 11 +- examples/with-react-toolbox/public/theme.css | 71 +- .../app/components/counter/Counter.module.css | 4 +- examples/with-sentry/styles/Home.module.css | 4 +- examples/with-sitemap/pages/contact.js | 13 +- examples/with-sitemap/pages/index.js | 28 +- .../packages/test-component/src/index.html | 2 +- .../styles/Home.module.css | 15 +- .../styles/globals.css | 14 +- examples/with-storybook/app/page.module.css | 4 +- examples/with-strict-csp/middleware.js | 4 +- examples/with-stripe-typescript/styles.css | 16 +- .../components/cards.tsx | 4 +- .../components/sharedstyles.tsx | 11 +- .../with-styled-jsx-plugins/pages/index.tsx | 5 +- examples/with-styled-jsx/pages/index.tsx | 5 +- examples/with-styletron/pages/_document.js | 11 +- examples/with-supertokens/app/page.module.css | 8 +- examples/with-three-js/pages/birds.js | 4 +- examples/with-tigris/styles/Home.module.css | 4 +- examples/with-unsplash/styles/global.css | 14 +- examples/with-unstated/components/Clock.js | 5 +- examples/with-vitest/styles/Home.module.css | 15 +- examples/with-vitest/styles/globals.css | 14 +- examples/with-windicss/styles/globals.css | 14 +- .../with-zustand/src/components/clock.css | 5 +- lint-staged.config.js | 4 +- package.json | 2 +- packages/create-next-app/create-app.ts | 4 +- packages/create-next-app/index.ts | 20 +- .../templates/app/js/app/page.module.css | 4 +- .../templates/app/ts/app/page.module.css | 4 +- .../default/js/styles/Home.module.css | 4 +- .../default/ts/styles/Home.module.css | 4 +- packages/create-next-app/templates/index.ts | 15 +- .../src/utils/node-attributes.ts | 4 +- packages/font/src/google/index.ts | 3276 ++++++++--------- packages/font/src/local/index.ts | 2 +- .../pick-font-file-for-fallback-generation.ts | 6 +- .../next-codemod/transforms/cra-to-next.ts | 53 +- packages/next-mdx/mdx-rs-loader.js | 10 +- .../navigation-types/compat/navigation.d.ts | 2 +- packages/next/src/bin/next.ts | 4 +- .../src/build/babel/plugins/jsx-pragma.ts | 6 +- .../build/babel/plugins/next-ssg-transform.ts | 16 +- packages/next/src/build/compiler.ts | 2 +- .../next/src/build/create-compiler-aliases.ts | 10 +- packages/next/src/build/entries.ts | 16 +- packages/next/src/build/index.ts | 24 +- packages/next/src/build/swc/index.ts | 8 +- packages/next/src/build/utils.ts | 12 +- .../next/src/build/webpack-build/index.ts | 4 +- packages/next/src/build/webpack-config.ts | 213 +- .../src/build/webpack/config/blocks/base.ts | 4 +- .../build/webpack/config/blocks/css/index.ts | 10 +- .../webpack/loaders/css-loader/src/utils.ts | 10 +- .../loaders/lightningcss-loader/src/utils.ts | 80 +- .../build/webpack/loaders/metadata/types.ts | 2 +- .../build/webpack/loaders/next-app-loader.ts | 14 +- .../webpack/loaders/next-barrel-loader.ts | 2 +- .../loaders/next-metadata-route-loader.ts | 4 +- .../loaders/next-style-loader/index.ts | 4 +- .../runtime/injectStylesIntoStyleTag.ts | 4 +- .../resolve-url-loader/lib/join-function.ts | 3 +- .../webpack/plugins/define-env-plugin.ts | 4 +- .../plugins/flight-client-entry-plugin.ts | 2 +- .../plugins/next-types-plugin/index.ts | 4 +- .../terser-webpack-plugin/src/index.ts | 4 +- .../terser-webpack-plugin/src/minify.ts | 4 +- .../client/components/async-local-storage.ts | 2 +- .../components/CodeFrame/CodeFrame.tsx | 4 +- .../components/Overlay/maintain--tab-focus.ts | 14 +- .../internal/components/Terminal/Terminal.tsx | 4 +- .../pages/ReactDevOverlay.tsx | 4 +- .../router-reducer/fetch-server-response.ts | 2 +- .../router-reducer/should-hard-navigate.ts | 2 +- .../next/src/client/dev/dev-build-watcher.ts | 2 +- packages/next/src/client/head-manager.ts | 8 +- packages/next/src/client/link.tsx | 6 +- packages/next/src/client/page-loader.ts | 4 +- packages/next/src/client/script.tsx | 4 +- packages/next/src/client/with-router.tsx | 2 +- packages/next/src/export/index.ts | 24 +- packages/next/src/lib/eslint/runLintCheck.ts | 19 +- .../next/src/lib/metadata/resolve-metadata.ts | 2 +- .../next/src/lib/metadata/types/resolvers.ts | 4 +- .../next/src/lib/patch-incorrect-lockfile.ts | 4 +- .../src/lib/typescript/diagnosticFormatter.ts | 4 +- .../lib/typescript/missingDependencyError.ts | 4 +- .../typescript/writeConfigurationDefaults.ts | 4 +- .../next/src/lib/verify-partytown-setup.ts | 4 +- packages/next/src/pages/_document.tsx | 8 +- packages/next/src/server/api-utils/index.ts | 4 +- .../src/server/api-utils/node/api-resolver.ts | 8 +- .../src/server/app-render/action-handler.ts | 10 +- .../next/src/server/app-render/app-render.tsx | 9 +- .../server/app-render/required-scripts.tsx | 2 +- .../app-render/static/static-renderer.ts | 6 +- packages/next/src/server/app-render/types.ts | 8 +- packages/next/src/server/base-http/index.ts | 6 +- packages/next/src/server/base-server.ts | 24 +- .../next/src/server/dev/hot-reloader-types.ts | 2 +- .../src/server/dev/hot-reloader-webpack.ts | 4 +- .../next/src/server/dev/next-dev-server.ts | 12 +- .../src/server/dev/on-demand-entry-handler.ts | 4 +- .../src/server/dev/parse-version-info.test.ts | 2 +- .../server/dev/turbopack/manifest-loader.ts | 4 +- .../dev/file-cache-route-matcher-provider.ts | 2 +- .../helpers/cached-route-matcher-provider.ts | 2 +- .../manifest-route-matcher-provider.ts | 2 +- .../route-matchers/locale-route-matcher.ts | 2 +- .../future/route-modules/route-module.ts | 4 +- .../next/src/server/lib/app-dir-module.ts | 2 +- .../lib/incremental-cache/fetch-cache.ts | 5 +- packages/next/src/server/lib/patch-fetch.ts | 9 +- .../next/src/server/lib/patch-set-header.ts | 4 +- packages/next/src/server/lib/router-server.ts | 5 +- .../server/lib/router-utils/resolve-routes.ts | 13 +- packages/next/src/server/lib/start-server.ts | 4 +- packages/next/src/server/lib/trace/tracer.ts | 2 +- packages/next/src/server/next-server.ts | 4 +- packages/next/src/server/next.ts | 8 +- packages/next/src/server/render-result.ts | 4 +- packages/next/src/server/render.tsx | 4 +- packages/next/src/server/send-payload.ts | 8 +- packages/next/src/server/web-server.ts | 8 +- packages/next/src/shared/lib/deep-readonly.ts | 8 +- .../next/src/shared/lib/image-blur-svg.ts | 8 +- .../lib/modern-browserslist-target.d.ts | 2 +- .../lib/page-path/denormalize-page-path.ts | 4 +- .../lib/page-path/normalize-page-path.ts | 4 +- packages/next/src/shared/lib/router/router.ts | 5 +- .../router/utils/get-asset-path-from-route.ts | 4 +- .../lib/router/utils/parse-relative-url.ts | 6 +- .../shared/lib/router/utils/route-matcher.ts | 4 +- packages/next/src/shared/lib/utils.ts | 6 +- packages/next/src/types.ts | 12 +- packages/next/taskfile.js | 14 +- pnpm-lock.yaml | 16 +- scripts/minimal-server.js | 8 +- .../emotion-swc/fixture/shared/styles.js | 4 +- test/development/basic/hmr.test.ts | 10 +- test/development/basic/next-rs-api.test.ts | 5 +- .../basic/project-directory-rename.test.ts | 14 +- .../pages-dir/client-navigation/index.test.ts | 25 +- .../app-client-cache/client-cache.test.ts | 15 +- .../chunk-loading/components/SuperShared.tsx | 8 +- .../dynamic/dynamic-imports/dynamic-server.js | 8 +- test/e2e/app-dir/next-font/next-font.test.ts | 10 +- .../dynamic-route-interpolation/index.test.ts | 5 +- test/e2e/esm-externals/esm-externals.test.ts | 8 +- .../new-link-behavior/material-ui/src/Link.js | 21 +- test/e2e/yarn-pnp/test/utils.ts | 15 +- .../absolute-assetprefix/test/index.test.js | 5 +- .../app-document/pages/_document.js | 26 +- test/integration/babel/pages/index.js | 1 + .../critical-css/styles/index.module.css | 5 +- test/integration/custom-server/server.js | 6 +- .../pages/api/route.js | 16 +- test/integration/image-optimizer/test/util.ts | 4 +- .../repeated-slashes/test/index.test.js | 4 +- .../styled-jsx-plugin/app/pages/index.js | 5 +- .../pages-dir/production/test/index.test.ts | 9 +- .../required-server-files-app.test.ts | 7 +- .../required-server-files-i18n.test.ts | 7 +- .../required-server-files-ppr.test.ts | 7 +- .../required-server-files.test.ts | 14 +- 241 files changed, 3279 insertions(+), 2577 deletions(-) delete mode 100644 .prettierignore_staged diff --git a/.github/actions/next-integration-stat/src/index.ts b/.github/actions/next-integration-stat/src/index.ts index e4a16f4b66c36..ba7c7eda34438 100644 --- a/.github/actions/next-integration-stat/src/index.ts +++ b/.github/actions/next-integration-stat/src/index.ts @@ -447,29 +447,32 @@ async function getTestResultDiffBase( // Find the latest test result tree, iterate results file names to find out the latest one. // Filename follow ${yyyyMMddHHmm}-${sha}.json format. - const actualTestResultTree = testResultJsonTree.reduce((acc, value) => { - const dateStr = value.path?.split('-')[0].match(/(....)(..)(..)(..)(..)/) + const actualTestResultTree = testResultJsonTree.reduce( + (acc, value) => { + const dateStr = value.path?.split('-')[0].match(/(....)(..)(..)(..)(..)/) - if (!dateStr || dateStr.length < 5) { - return acc - } + if (!dateStr || dateStr.length < 5) { + return acc + } - const date = new Date( - dateStr![1] as any, - (dateStr![2] as any) - 1, - dateStr![3] as any, - dateStr![4] as any, - dateStr![5] as any - ) - if (!acc) { - return { - date, - value, + const date = new Date( + dateStr![1] as any, + (dateStr![2] as any) - 1, + dateStr![3] as any, + dateStr![4] as any, + dateStr![5] as any + ) + if (!acc) { + return { + date, + value, + } } - } - return acc.date >= date ? acc : { date, value } - }, null as any as { date: Date; value: (typeof testResultJsonTree)[0] }) + return acc.date >= date ? acc : { date, value } + }, + null as any as { date: Date; value: (typeof testResultJsonTree)[0] } + ) if (!actualTestResultTree || !actualTestResultTree?.value?.sha) { console.log('There is no test results json stored in the base yet') diff --git a/.github/actions/next-stats-action/src/add-comment.js b/.github/actions/next-stats-action/src/add-comment.js index c65e54236e44d..5001ff558e033 100644 --- a/.github/actions/next-stats-action/src/add-comment.js +++ b/.github/actions/next-stats-action/src/add-comment.js @@ -106,8 +106,8 @@ module.exports = async function addComment( ? '⚠️ ' : '' : change > 0 - ? '⚠️ ' - : '' + ? '⚠️ ' + : '' change = `${warn}${change < 0 ? '-' : '+'}${ useRawValue ? absChange : prettify(absChange, prettyType) }` diff --git a/.github/actions/next-stats-action/src/prepare/load-stats-config.js b/.github/actions/next-stats-action/src/prepare/load-stats-config.js index 55cecb54faad3..54bc3efe6f395 100644 --- a/.github/actions/next-stats-action/src/prepare/load-stats-config.js +++ b/.github/actions/next-stats-action/src/prepare/load-stats-config.js @@ -10,11 +10,9 @@ function loadStatsConfig() { for (const configPath of allowedConfigLocations) { try { relativeStatsAppDir = configPath - statsConfig = require(path.join( - diffRepoDir, - configPath, - 'stats-config.js' - )) + statsConfig = require( + path.join(diffRepoDir, configPath, 'stats-config.js') + ) break } catch (err) { if (err.code !== 'MODULE_NOT_FOUND') { diff --git a/.prettierignore b/.prettierignore index a297d08637c34..e89841d37cce1 100644 --- a/.prettierignore +++ b/.prettierignore @@ -4,7 +4,6 @@ _next/ __tmp__/ dist/ -node_modules/ target/ compiled/ @@ -19,6 +18,14 @@ packages/next/src/bundles/webpack/packages/lazy-compilation-*.js packages/next-swc/crates/**/tests/**/output* packages/next-swc/crates/core/tests/loader/issue-32553/input.js +# prettier destroys the directives here +packages/next-swc/crates/next-custom-transforms/tests/errors/react-server-components/client-graph/use-client/input.js +packages/next-swc/crates/next-custom-transforms/tests/errors/react-server-components/server-graph/fake-client-entry/input.js +packages/next-swc/crates/next-custom-transforms/tests/errors/server-actions/server-graph/8/input.js +packages/next-swc/crates/next-custom-transforms/tests/errors/server-actions/server-graph/9/input.js +packages/next-swc/crates/next-custom-transforms/tests/fixture/optimize-barrel/normal/4/input.js +packages/next-swc/crates/next-custom-transforms/tests/fixture/react-server-components/client-graph/client-entry/input.js +packages/next-swc/crates/next-custom-transforms/tests/fixture/react-server-components/server-graph/client-entry/input.js packages/next-swc/native/**/* packages/next-swc/docs/assets/**/* diff --git a/.prettierignore_staged b/.prettierignore_staged deleted file mode 100644 index f1c268594d2f3..0000000000000 --- a/.prettierignore_staged +++ /dev/null @@ -1,17 +0,0 @@ -**/.next/** -**/_next/** -**/dist/** -packages/next-swc/crates/** -packages/next/src/compiled/**/* -packages/next/bundles/webpack/packages/*.runtime.js -lerna.json -packages/next-codemod/transforms/__testfixtures__/**/* -packages/next-codemod/transforms/__tests__/**/* -test/development/basic/hmr/components/parse-error.js -pnpm-lock.yaml -.github/actions/validate-docs-links/lib/index.js -.github/actions/needs-triage/index.js -.github/actions/*/index.mjs -**/convex/_generated/** -test/lib/amp-validator-wasm.js -test/production/pages-dir/production/fixture/amp-validator-wasm.js diff --git a/bench/next-minimal-server/bin/minimal-server.js b/bench/next-minimal-server/bin/minimal-server.js index 44861262aee06..332e53d0b727e 100755 --- a/bench/next-minimal-server/bin/minimal-server.js +++ b/bench/next-minimal-server/bin/minimal-server.js @@ -10,11 +10,9 @@ const path = require('path') const appDir = process.cwd() const distDir = '.next' -const compiledConfig = require(path.join( - appDir, - distDir, - 'required-server-files.json' -)).config +const compiledConfig = require( + path.join(appDir, distDir, 'required-server-files.json') +).config process.chdir(appDir) diff --git a/examples/app-dir-mdx/app/page.module.css b/examples/app-dir-mdx/app/page.module.css index 87f36d6d8565b..2182ce1cacb40 100644 --- a/examples/app-dir-mdx/app/page.module.css +++ b/examples/app-dir-mdx/app/page.module.css @@ -51,7 +51,9 @@ border-radius: var(--border-radius); background: rgba(var(--card-rgb), 0); border: 1px solid rgba(var(--card-border-rgb), 0); - transition: background 200ms, border 200ms; + transition: + background 200ms, + border 200ms; } .card span { diff --git a/examples/basic-css/styles.module.css b/examples/basic-css/styles.module.css index b841ef4cfaddb..7c8b0abdf8371 100644 --- a/examples/basic-css/styles.module.css +++ b/examples/basic-css/styles.module.css @@ -1,5 +1,8 @@ .hello { - font: 15px Helvetica, Arial, sans-serif; + font: + 15px Helvetica, + Arial, + sans-serif; background: #eee; padding: 100px; text-align: center; diff --git a/examples/blog/styles/main.css b/examples/blog/styles/main.css index 326b847a94042..b12ceb0ba74f3 100644 --- a/examples/blog/styles/main.css +++ b/examples/blog/styles/main.css @@ -15,12 +15,30 @@ } body { - font-family: "Inter var", system-ui, -apple-system, BlinkMacSystemFont, - "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, - "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; + font-family: + "Inter var", + system-ui, + -apple-system, + BlinkMacSystemFont, + "Segoe UI", + Roboto, + "Helvetica Neue", + Arial, + "Noto Sans", + sans-serif, + "Apple Color Emoji", + "Segoe UI Emoji", + "Segoe UI Symbol", + "Noto Color Emoji"; -webkit-font-smoothing: subpixel-antialiased; - font-feature-settings: "case" 1, "cpsp" 1, "dlig" 1, "cv01" 1, "cv02", - "cv03" 1, "cv04" 1; + font-feature-settings: + "case" 1, + "cpsp" 1, + "dlig" 1, + "cv01" 1, + "cv02", + "cv03" 1, + "cv04" 1; font-variation-settings: "wght" 450; font-variant: common-ligatures contextual; letter-spacing: -0.02em; diff --git a/examples/cms-buttercms/css/lineicons.css b/examples/cms-buttercms/css/lineicons.css index 6ec975873914b..92267341185bc 100644 --- a/examples/cms-buttercms/css/lineicons.css +++ b/examples/cms-buttercms/css/lineicons.css @@ -7,7 +7,8 @@ Author: lineicons.com @font-face { font-family: "LineIcons"; src: url("fonts/LineIcons.eot"); - src: url("fonts/LineIcons.eot") format("embedded-opentype"), + src: + url("fonts/LineIcons.eot") format("embedded-opentype"), url("fonts/LineIcons.woff2") format("woff2"), url("fonts/LineIcons.woff") format("woff"), url("fonts/LineIcons.ttf") format("truetype"), diff --git a/examples/cms-buttercms/css/tiny-slider.min.css b/examples/cms-buttercms/css/tiny-slider.min.css index 89689dde2b99e..d1c1047edbb82 100644 --- a/examples/cms-buttercms/css/tiny-slider.min.css +++ b/examples/cms-buttercms/css/tiny-slider.min.css @@ -49,9 +49,15 @@ .tns-gallery > .tns-item { position: absolute; left: -100%; - -webkit-transition: transform 0s, opacity 0s; - -moz-transition: transform 0s, opacity 0s; - transition: transform 0s, opacity 0s; + -webkit-transition: + transform 0s, + opacity 0s; + -moz-transition: + transform 0s, + opacity 0s; + transition: + transform 0s, + opacity 0s; } .tns-gallery > .tns-slide-active { position: relative; diff --git a/examples/cms-contentful/lib/api.ts b/examples/cms-contentful/lib/api.ts index 9c4249c319dbe..4983a8c191bea 100644 --- a/examples/cms-contentful/lib/api.ts +++ b/examples/cms-contentful/lib/api.ts @@ -92,8 +92,8 @@ export async function getPostAndMorePosts( const entry = await fetchGraphQL( `query { postCollection(where: { slug: "${slug}" }, preview: ${ - preview ? "true" : "false" - }, limit: 1) { + preview ? "true" : "false" + }, limit: 1) { items { ${POST_GRAPHQL_FIELDS} } @@ -104,8 +104,8 @@ export async function getPostAndMorePosts( const entries = await fetchGraphQL( `query { postCollection(where: { slug_not_in: "${slug}" }, order: date_DESC, preview: ${ - preview ? "true" : "false" - }, limit: 2) { + preview ? "true" : "false" + }, limit: 2) { items { ${POST_GRAPHQL_FIELDS} } diff --git a/examples/cms-kontent-ai/pages/posts/[slug].tsx b/examples/cms-kontent-ai/pages/posts/[slug].tsx index 81f100b4ad00d..cf7452731a2fb 100644 --- a/examples/cms-kontent-ai/pages/posts/[slug].tsx +++ b/examples/cms-kontent-ai/pages/posts/[slug].tsx @@ -89,7 +89,7 @@ export async function getStaticPaths() { params: { slug, }, - } || []), + }) || [], ), fallback: false, }; diff --git a/examples/cms-plasmic/pages/[[...catchall]].tsx b/examples/cms-plasmic/pages/[[...catchall]].tsx index 081359a7a8944..601dd525c4e29 100644 --- a/examples/cms-plasmic/pages/[[...catchall]].tsx +++ b/examples/cms-plasmic/pages/[[...catchall]].tsx @@ -32,8 +32,8 @@ export const getStaticProps: GetStaticProps = async (context) => { typeof catchall === "string" ? catchall : Array.isArray(catchall) - ? `/${catchall.join("/")}` - : "/"; + ? `/${catchall.join("/")}` + : "/"; const plasmicData = await PLASMIC.maybeFetchComponentData(plasmicPath); if (!plasmicData) { // This is some non-Plasmic catch-all page diff --git a/examples/cms-plasmic/styles/globals.css b/examples/cms-plasmic/styles/globals.css index e5e2dcc23baf1..51a2a4eaacd86 100644 --- a/examples/cms-plasmic/styles/globals.css +++ b/examples/cms-plasmic/styles/globals.css @@ -2,8 +2,18 @@ html, body { padding: 0; margin: 0; - font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, - Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif; + font-family: + -apple-system, + BlinkMacSystemFont, + Segoe UI, + Roboto, + Oxygen, + Ubuntu, + Cantarell, + Fira Sans, + Droid Sans, + Helvetica Neue, + sans-serif; } a { diff --git a/examples/cms-sitecore-xmcloud/src/assets/sass/base/typehead/_typehead.scss b/examples/cms-sitecore-xmcloud/src/assets/sass/base/typehead/_typehead.scss index 32bc1aaaae49e..eca0feb45233f 100644 --- a/examples/cms-sitecore-xmcloud/src/assets/sass/base/typehead/_typehead.scss +++ b/examples/cms-sitecore-xmcloud/src/assets/sass/base/typehead/_typehead.scss @@ -22,7 +22,9 @@ border: 1px solid $tt-dropdown-border; max-height: 300px; overflow-y: auto; - box-shadow: 0 3px 8px 0 rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.08); + box-shadow: + 0 3px 8px 0 rgba(0, 0, 0, 0.2), + 0 0 0 1px rgba(0, 0, 0, 0.08); } .tt-suggestion { padding: 4px 10px; diff --git a/examples/cms-sitecore-xmcloud/src/lib/page-props-factory/index.ts b/examples/cms-sitecore-xmcloud/src/lib/page-props-factory/index.ts index 292d54702ac8c..3733970c00b1d 100644 --- a/examples/cms-sitecore-xmcloud/src/lib/page-props-factory/index.ts +++ b/examples/cms-sitecore-xmcloud/src/lib/page-props-factory/index.ts @@ -37,11 +37,14 @@ export class SitecorePagePropsFactory { ): Promise { const extendedProps = await (Object.values(plugins) as Plugin[]) .sort((p1, p2) => p1.order - p2.order) - .reduce(async (result, plugin) => { - const props = await result; - const newProps = await plugin.exec(props, context); - return newProps; - }, Promise.resolve({} as SitecorePageProps)); + .reduce( + async (result, plugin) => { + const props = await result; + const newProps = await plugin.exec(props, context); + return newProps; + }, + Promise.resolve({} as SitecorePageProps), + ); return extendedProps; } diff --git a/examples/cms-wordpress/lib/api.ts b/examples/cms-wordpress/lib/api.ts index c42d8c5ed782a..2d77b5f3bcb4f 100644 --- a/examples/cms-wordpress/lib/api.ts +++ b/examples/cms-wordpress/lib/api.ts @@ -4,9 +4,8 @@ async function fetchAPI(query = "", { variables }: Record = {}) { const headers = { "Content-Type": "application/json" }; if (process.env.WORDPRESS_AUTH_REFRESH_TOKEN) { - headers[ - "Authorization" - ] = `Bearer ${process.env.WORDPRESS_AUTH_REFRESH_TOKEN}`; + headers["Authorization"] = + `Bearer ${process.env.WORDPRESS_AUTH_REFRESH_TOKEN}`; } // WPGraphQL Plugin must be enabled diff --git a/examples/markdoc/public/globals.css b/examples/markdoc/public/globals.css index d97aabc5a0042..ed5a46bd05606 100644 --- a/examples/markdoc/public/globals.css +++ b/examples/markdoc/public/globals.css @@ -1,7 +1,19 @@ body { - font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, - "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, - "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; + font-family: + ui-sans-serif, + system-ui, + -apple-system, + BlinkMacSystemFont, + "Segoe UI", + Roboto, + "Helvetica Neue", + Arial, + "Noto Sans", + sans-serif, + "Apple Color Emoji", + "Segoe UI Emoji", + "Segoe UI Symbol", + "Noto Color Emoji"; color: rgba(60, 66, 87, 1); margin: 0; } diff --git a/examples/nested-components/components/paragraph.tsx b/examples/nested-components/components/paragraph.tsx index f92085a6f121f..815587f4bfb6c 100644 --- a/examples/nested-components/components/paragraph.tsx +++ b/examples/nested-components/components/paragraph.tsx @@ -8,7 +8,9 @@ export default function Paragraph({ children }: ParagraphProps) { {children} diff --git a/examples/nested-components/components/post.tsx b/examples/nested-components/components/post.tsx index 7a4388408cc7f..7e93d63ba95d3 100644 --- a/examples/nested-components/components/post.tsx +++ b/examples/nested-components/components/post.tsx @@ -10,7 +10,9 @@ export default function Post({ title, children }: PostProps) { {children}