Skip to content

Commit f7fce3e

Browse files
noschifffacebook-github-bot
authored andcommitted
Upgrade to Prettier 3.10.2 (#60573)
Summary: X-link: react/metro#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 <noahschiff@meta.com>
1 parent 01ec383 commit f7fce3e

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124
"nullthrows": "^1.1.1",
125125
"pixelmatch": "5.3.0",
126126
"pngjs": "7.0.0",
127-
"prettier": "3.10.0",
127+
"prettier": "3.10.2",
128128
"react": "19.3.0",
129129
"react-test-renderer": "19.3.0",
130130
"rimraf": "^3.0.2",

‎packages/eslint-config-react-native/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,6 @@
4444
},
4545
"devDependencies": {
4646
"eslint": "^8.57.0",
47-
"prettier": "3.10.0"
47+
"prettier": "3.10.2"
4848
}
4949
}

‎packages/react-native-codegen/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"@babel/preset-env": "^7.25.3",
4848
"flow-estree": "0.340.0",
4949
"micromatch": "^4.0.4",
50-
"prettier": "3.10.0",
50+
"prettier": "3.10.2",
5151
"rimraf": "^3.0.2"
5252
},
5353
"peerDependencies": {

‎yarn.lock‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7858,10 +7858,10 @@ prelude-ls@^1.2.1:
78587858
resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396"
78597859
integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==
78607860

7861-
prettier@3.10.0:
7862-
version "3.10.0"
7863-
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.10.0.tgz#b546ab979f85b850be17ed5e41ea6719e3be8681"
7864-
integrity sha512-mBi4765LgjO1PFjlEs7pUeK0nb1bw71c+N4/ItfeUWNdY5cV2pRKaFpbbFRYmDJMO+5ZwzGxHRqHxFZna7iv5w==
7861+
prettier@3.10.2:
7862+
version "3.10.2"
7863+
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.10.2.tgz#b5cecbafb490b54f749723ca735ee3407a5834c9"
7864+
integrity sha512-VQGIFOC0JNYLvfT57+Tre9wvgpc1Njx0JcnTDwRD6IFQGPTfPMghvi2A7gSwa/I0emKTK4KpBIN4mWYHyCDNDQ==
78657865

78667866
pretty-format@^29.0.0, pretty-format@^29.7.0:
78677867
version "29.7.0"

0 commit comments

Comments
 (0)