Repository navigation
Upgrade to Prettier 3.10.2 (#60573) - #60573
Merged
Merged
Conversation
|
@noschiff has exported this pull request. If you are a Meta employee, you can view the originating Diff in D136322615. |
panagosg7
approved these changes
Dec 4, 2026
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>
noschiff
force-pushed
the
export-D136322615
branch
from
December 5, 2026 18:29
1eead27 to
f7fce3e
Compare
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
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? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-ignoreclass 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 alreadyundefined, and the constructor always replaces#plugins.Changelog: [Internal]
Reviewed By: SamChou19815
Differential Revision: D136322615