Skip to content

Upgrade to Prettier 3.10.2 (#60573) - #60573

Merged
meta-codesync[bot] merged 1 commit into
react:mainfrom
noschiff:export-D136322615
Dec 5, 2026
Merged

meta-codesync[bot] merged 1 commit into
react:mainfrom
noschiff:export-D136322615

Conversation

@noschiff

@noschiff noschiff commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

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

@meta-codesync

meta-codesync Bot commented Dec 4, 2026

Copy link
Copy Markdown

@noschiff has exported this pull request. If you are a Meta employee, you can view the originating Diff in D136322615.

meta-codesync Bot pushed a commit to react/metro that referenced this pull request Dec 5, 2026
Summary:
X-link: react/react-native#60573


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>
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>
@meta-codesync meta-codesync Bot changed the title Upgrade to Prettier 3.10.2 Upgrade to Prettier 3.10.2 (#60573) Dec 5, 2026
@meta-codesync
meta-codesync Bot merged commit 40cead4 into react:main Dec 5, 2026
100 of 101 checks passed
meta-codesync Bot pushed a commit to react/metro that referenced this pull request Dec 5, 2026
Summary:
X-link: react/react-native#60573


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

Pull Request resolved: #2336
@react-native-bot

Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @noschiff in 40cead4

When will my fix make it into a release? | How to file a pick request?

@react-native-bot react-native-bot added the Merged This PR has been merged. label Dec 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Merged This PR has been merged. meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants