From 85aec5fef611e2af8c52ae4da77ae759e12636d1 Mon Sep 17 00:00:00 2001 From: sapphi-red <49056869+sapphi-red@users.noreply.github.com> Date: Thu, 10 Jul 2025 21:46:43 +0900 Subject: [PATCH] chore(deps): update prettier --- CONTRIBUTING.md | 2 -- package.json | 2 +- packages/plugin-react/src/index.ts | 2 +- packages/plugin-rsc/examples/basic/wrangler.jsonc | 4 ++-- .../plugin-rsc/examples/react-router/app/paper.css | 4 ++-- .../examples/react-router/cf/wrangler.rsc.jsonc | 2 +- .../examples/react-router/cf/wrangler.ssr.jsonc | 2 +- .../examples/starter-cf-single/wrangler.jsonc | 2 +- pnpm-lock.yaml | 11 +++++++++-- 9 files changed, 18 insertions(+), 13 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f1a4e84dc..d912057d8 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -13,12 +13,10 @@ This repo is a monorepo using pnpm workspaces. The package manager used to insta - Checkout a topic branch from a base branch (e.g. `main`), and merge back against that branch. - If adding a new feature: - - Add accompanying test case. - Provide a convincing reason to add this feature. Ideally, you should open a suggestion issue first, and have it approved before working on it. - If fixing a bug: - - If you are resolving a special issue, add `(fix #xxxx[,#xxxx])` (#xxxx is the issue id) in your PR title for a better release log (e.g. `fix: update entities encoding/decoding (fix #3899)`). - Provide a detailed description of the bug in the PR. Live demo preferred. - Add appropriate test coverage if applicable. diff --git a/package.json b/package.json index efc3ce13d..54f33e1d2 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "lint-staged": "^15.5.2", "picocolors": "^1.1.1", "playwright-chromium": "^1.53.2", - "prettier": "^3.0.3", + "prettier": "^3.6.2", "simple-git-hooks": "^2.13.0", "tsx": "^4.20.3", "typescript": "^5.8.3", diff --git a/packages/plugin-react/src/index.ts b/packages/plugin-react/src/index.ts index ed5756531..9234eae9c 100644 --- a/packages/plugin-react/src/index.ts +++ b/packages/plugin-react/src/index.ts @@ -351,7 +351,7 @@ export default function viteReact(opts: Options = {}): Plugin[] { jsxImportRuntime, ] const staticBabelPlugins = - typeof opts.babel === 'object' ? opts.babel?.plugins ?? [] : [] + typeof opts.babel === 'object' ? (opts.babel?.plugins ?? []) : [] const reactCompilerPlugin = getReactCompilerPlugin(staticBabelPlugins) if (reactCompilerPlugin != null) { const reactCompilerRuntimeModule = diff --git a/packages/plugin-rsc/examples/basic/wrangler.jsonc b/packages/plugin-rsc/examples/basic/wrangler.jsonc index d5cb469b8..0d5ead71e 100644 --- a/packages/plugin-rsc/examples/basic/wrangler.jsonc +++ b/packages/plugin-rsc/examples/basic/wrangler.jsonc @@ -3,9 +3,9 @@ "name": "vite-rsc-basic", "main": "dist/rsc/cloudflare.js", "assets": { - "directory": "dist/client" + "directory": "dist/client", }, "workers_dev": true, "compatibility_date": "2025-04-01", - "compatibility_flags": ["nodejs_als"] + "compatibility_flags": ["nodejs_als"], } diff --git a/packages/plugin-rsc/examples/react-router/app/paper.css b/packages/plugin-rsc/examples/react-router/app/paper.css index a4087ac5a..761e51864 100644 --- a/packages/plugin-rsc/examples/react-router/app/paper.css +++ b/packages/plugin-rsc/examples/react-router/app/paper.css @@ -87,8 +87,8 @@ } @utility btn-* { - border-color: --value(--btn-color- *); - color: --value(--btn-color- *); + border-color: --value(--btn-color-*); + color: --value(--btn-color-*); } @utility btn-sm { diff --git a/packages/plugin-rsc/examples/react-router/cf/wrangler.rsc.jsonc b/packages/plugin-rsc/examples/react-router/cf/wrangler.rsc.jsonc index 68270a8be..67cdb5435 100644 --- a/packages/plugin-rsc/examples/react-router/cf/wrangler.rsc.jsonc +++ b/packages/plugin-rsc/examples/react-router/cf/wrangler.rsc.jsonc @@ -4,5 +4,5 @@ "main": "./entry.rsc.tsx", "workers_dev": true, "compatibility_date": "2025-04-01", - "compatibility_flags": ["nodejs_als"] + "compatibility_flags": ["nodejs_als"], } diff --git a/packages/plugin-rsc/examples/react-router/cf/wrangler.ssr.jsonc b/packages/plugin-rsc/examples/react-router/cf/wrangler.ssr.jsonc index bfc7066b0..22b718b03 100644 --- a/packages/plugin-rsc/examples/react-router/cf/wrangler.ssr.jsonc +++ b/packages/plugin-rsc/examples/react-router/cf/wrangler.ssr.jsonc @@ -5,5 +5,5 @@ "workers_dev": true, "services": [{ "binding": "RSC", "service": "vite-rsc-react-router-rsc" }], "compatibility_date": "2025-04-01", - "compatibility_flags": ["nodejs_als"] + "compatibility_flags": ["nodejs_als"], } diff --git a/packages/plugin-rsc/examples/starter-cf-single/wrangler.jsonc b/packages/plugin-rsc/examples/starter-cf-single/wrangler.jsonc index bbd479cbb..c098e4362 100644 --- a/packages/plugin-rsc/examples/starter-cf-single/wrangler.jsonc +++ b/packages/plugin-rsc/examples/starter-cf-single/wrangler.jsonc @@ -4,5 +4,5 @@ "main": "./src/framework/entry.rsc.tsx", "workers_dev": true, "compatibility_date": "2025-04-01", - "compatibility_flags": ["nodejs_als"] + "compatibility_flags": ["nodejs_als"], } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 19c01e53d..d5f145142 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -54,8 +54,8 @@ importers: specifier: ^1.53.2 version: 1.53.2 prettier: - specifier: ^3.0.3 - version: 3.1.0 + specifier: ^3.6.2 + version: 3.6.2 simple-git-hooks: specifier: ^2.13.0 version: 2.13.0 @@ -4825,6 +4825,11 @@ packages: engines: {node: '>=14'} hasBin: true + prettier@3.6.2: + resolution: {integrity: sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ==} + engines: {node: '>=14'} + hasBin: true + pretty-bytes@6.1.1: resolution: {integrity: sha512-mQUvGU6aUFQ+rNvTIAcZuWGRT9a6f6Yrg9bHs4ImKF+HZCEK+plBvnAZYSIQztknZF2qnzNtr6F8s0+IuptdlQ==} engines: {node: ^14.13.1 || >=16.0.0} @@ -9593,6 +9598,8 @@ snapshots: prettier@3.1.0: {} + prettier@3.6.2: {} + pretty-bytes@6.1.1: {} printable-characters@1.0.42: {}