Skip to content

Commit 869a976

Browse files
SamChou19815facebook-github-bot
authored andcommitted
Bump to prettier v3 across xplat (#52844)
Summary: Pull Request resolved: #52844 Changelog: [Internal] Reviewed By: pieterv Differential Revision: D78787920 fbshipit-source-id: fc2582001ee6775f53b452dd3659e37521ea6387
1 parent 7fe3b2c commit 869a976

File tree

6 files changed

+51
-36
lines changed

6 files changed

+51
-36
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
"micromatch": "^4.0.4",
102102
"node-fetch": "^2.2.0",
103103
"nullthrows": "^1.1.1",
104-
"prettier": "2.8.8",
104+
"prettier": "3.6.2",
105105
"prettier-plugin-hermes-parser": "0.30.0",
106106
"react": "19.1.0",
107107
"react-test-renderer": "19.1.0",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@
3939
},
4040
"devDependencies": {
4141
"eslint": "^8.57.0",
42-
"prettier": "2.8.8"
42+
"prettier": "3.6.2"
4343
}
4444
}

packages/react-native-codegen/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"@babel/preset-env": "^7.25.3",
4646
"hermes-estree": "0.30.0",
4747
"micromatch": "^4.0.4",
48-
"prettier": "2.8.8",
48+
"prettier": "3.6.2",
4949
"rimraf": "^3.0.2"
5050
},
5151
"peerDependencies": {

packages/react-native/ReactNativeApi.d.ts

Lines changed: 30 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*
7-
* @generated SignedSource<<421f4cd1a35a7be6057a22dbd76d8e2f>>
7+
* @generated SignedSource<<56f048751e6094736be604305b9c6f02>>
88
*
99
* This file was generated by scripts/js-api/build-types/index.js.
1010
*/
@@ -618,18 +618,19 @@ declare type ____FlattenStyleProp_Helper<
618618
> = Depth extends 0
619619
? never
620620
: TStyleProp extends "" | false | null | void
621-
? never
622-
: TStyleProp extends ReadonlyArray<infer V>
623-
? ____FlattenStyleProp_Helper<
624-
V,
625-
Depth extends number ? FlattenDepthLimiter[Depth] : 0
626-
>
627-
: TStyleProp
621+
? never
622+
: TStyleProp extends ReadonlyArray<infer V>
623+
? ____FlattenStyleProp_Helper<
624+
V,
625+
Depth extends number ? FlattenDepthLimiter[Depth] : 0
626+
>
627+
: TStyleProp
628628
declare type ____FlattenStyleProp_Internal<
629629
TStyleProp extends StyleProp<unknown>,
630-
> = ____FlattenStyleProp_Helper<TStyleProp> extends never
631-
? any
632-
: ____FlattenStyleProp_Helper<TStyleProp>
630+
> =
631+
____FlattenStyleProp_Helper<TStyleProp> extends never
632+
? any
633+
: ____FlattenStyleProp_Helper<TStyleProp>
633634
declare type ____FontVariant_Internal =
634635
| "common-ligatures"
635636
| "contextual"
@@ -5887,24 +5888,24 @@ declare type WindowsPlatform = {
58875888
declare type WithAnimatedValue<T> = T extends Builtin | Nullable
58885889
? T
58895890
: T extends Primitive
5890-
?
5891-
| AnimatedAddition_default
5892-
| AnimatedDiffClamp_default
5893-
| AnimatedDivision_default
5894-
| AnimatedInterpolation_default<number | string>
5895-
| AnimatedInterpolation_default<number>
5896-
| AnimatedInterpolation_default<string>
5897-
| AnimatedModulo_default
5898-
| AnimatedMultiplication_default
5899-
| AnimatedNode_default
5900-
| AnimatedSubtraction_default
5901-
| AnimatedValue_default
5902-
| T
5903-
: T extends ReadonlyArray<infer P>
5904-
? ReadonlyArray<WithAnimatedValue<P>>
5905-
: T extends {}
5906-
? { readonly [K in keyof T]: WithAnimatedValue<T[K]> }
5907-
: T
5891+
?
5892+
| AnimatedAddition_default
5893+
| AnimatedDiffClamp_default
5894+
| AnimatedDivision_default
5895+
| AnimatedInterpolation_default<number | string>
5896+
| AnimatedInterpolation_default<number>
5897+
| AnimatedInterpolation_default<string>
5898+
| AnimatedModulo_default
5899+
| AnimatedMultiplication_default
5900+
| AnimatedNode_default
5901+
| AnimatedSubtraction_default
5902+
| AnimatedValue_default
5903+
| T
5904+
: T extends ReadonlyArray<infer P>
5905+
? ReadonlyArray<WithAnimatedValue<P>>
5906+
: T extends {}
5907+
? { readonly [K in keyof T]: WithAnimatedValue<T[K]> }
5908+
: T
59085909
declare type WithDefault<
59095910
Type extends DefaultTypes,
59105911
Value extends (null | Type | undefined) | string,
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/**
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
3+
*
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*
7+
* @flow strict
8+
* @format
9+
*/
10+
11+
// $FlowFixMe[unsupported-syntax]
12+
declare module 'prettier' {
13+
declare module.exports: $FlowFixMe;
14+
}

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8005,10 +8005,10 @@ prettier-plugin-hermes-parser@0.30.0:
80058005
hermes-parser "0.30.0"
80068006
prettier-plugin-hermes-parser "0.30.0"
80078007

8008-
prettier@2.8.8:
8009-
version "2.8.8"
8010-
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.8.tgz#e8c5d7e98a4305ffe3de2e1fc4aca1a71c28b1da"
8011-
integrity sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==
8008+
prettier@3.6.2:
8009+
version "3.6.2"
8010+
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.6.2.tgz#ccda02a1003ebbb2bfda6f83a074978f608b9393"
8011+
integrity sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ==
80128012

80138013
pretty-format@^24.9.0:
80148014
version "24.9.0"

0 commit comments

Comments
 (0)