From f7fce3ec6636db2539debc8a9222c41cd99e60b6 Mon Sep 17 00:00:00 2001 From: Noah Schiff Date: Sat, 5 Dec 2026 10:28:58 -0800 Subject: [PATCH] Upgrade to Prettier 3.10.2 (#60573) Summary: X-link: https://github.com/react/metro/pull/2336 Upgrade the Prettier dev dependency from 3.10.0 to 3.10.2. 3.10.2 adds a semicolon after a `// prettier-ignore` class field, in front of any comment after it. Two Metro worker fields keep their Flow type in such a comment, so the result (`#plugins; /*: ... */`) doesn't parse. They now have an initializer (`= []`, `= undefined`), which keeps the comment inside the field and changes no behavior: an uninitialized field is already `undefined`, and the constructor always replaces `#plugins`. Changelog: [Internal] Reviewed By: SamChou19815 Differential Revision: D136322615 Signed-off-by: Noah Schiff --- package.json | 2 +- packages/eslint-config-react-native/package.json | 2 +- packages/react-native-codegen/package.json | 2 +- yarn.lock | 8 ++++---- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 57f08dc71d92..57c59bb81a4c 100644 --- a/package.json +++ b/package.json @@ -124,7 +124,7 @@ "nullthrows": "^1.1.1", "pixelmatch": "5.3.0", "pngjs": "7.0.0", - "prettier": "3.10.0", + "prettier": "3.10.2", "react": "19.3.0", "react-test-renderer": "19.3.0", "rimraf": "^3.0.2", diff --git a/packages/eslint-config-react-native/package.json b/packages/eslint-config-react-native/package.json index b1e0b52f82b4..fa1a4478e0e8 100644 --- a/packages/eslint-config-react-native/package.json +++ b/packages/eslint-config-react-native/package.json @@ -44,6 +44,6 @@ }, "devDependencies": { "eslint": "^8.57.0", - "prettier": "3.10.0" + "prettier": "3.10.2" } } diff --git a/packages/react-native-codegen/package.json b/packages/react-native-codegen/package.json index dd58899d4b22..c816e335833e 100644 --- a/packages/react-native-codegen/package.json +++ b/packages/react-native-codegen/package.json @@ -47,7 +47,7 @@ "@babel/preset-env": "^7.25.3", "flow-estree": "0.340.0", "micromatch": "^4.0.4", - "prettier": "3.10.0", + "prettier": "3.10.2", "rimraf": "^3.0.2" }, "peerDependencies": { diff --git a/yarn.lock b/yarn.lock index 2275584a49fb..1cba9961bdf0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7858,10 +7858,10 @@ prelude-ls@^1.2.1: resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396" integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g== -prettier@3.10.0: - version "3.10.0" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.10.0.tgz#b546ab979f85b850be17ed5e41ea6719e3be8681" - integrity sha512-mBi4765LgjO1PFjlEs7pUeK0nb1bw71c+N4/ItfeUWNdY5cV2pRKaFpbbFRYmDJMO+5ZwzGxHRqHxFZna7iv5w== +prettier@3.10.2: + version "3.10.2" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.10.2.tgz#b5cecbafb490b54f749723ca735ee3407a5834c9" + integrity sha512-VQGIFOC0JNYLvfT57+Tre9wvgpc1Njx0JcnTDwRD6IFQGPTfPMghvi2A7gSwa/I0emKTK4KpBIN4mWYHyCDNDQ== pretty-format@^29.0.0, pretty-format@^29.7.0: version "29.7.0"