Skip to content

Commit a9dbaee

Browse files
committed
[BE] upgrade prettier to 3.3.3 (#30420)
Mostly just changes in ternary formatting. DiffTrain build for [b7e7f1a](b7e7f1a)
1 parent 32ff1a4 commit a9dbaee

39 files changed

+4820
-4659
lines changed

compiled/facebook-www/JSXDEVRuntime-dev.classic.js

+11-9
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ __DEV__ &&
185185
-1 < x.stack.indexOf("\n at")
186186
? " (<anonymous>)"
187187
: -1 < x.stack.indexOf("@")
188-
? "@unknown:0:0"
189-
: "";
188+
? "@unknown:0:0"
189+
: "";
190190
}
191191
return "\n" + prefix + name + suffix;
192192
}
@@ -598,13 +598,15 @@ __DEV__ &&
598598
null === type
599599
? (isStaticChildren = "null")
600600
: isArrayImpl(type)
601-
? (isStaticChildren = "array")
602-
: void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE
603-
? ((isStaticChildren =
604-
"<" + (getComponentNameFromType(type.type) || "Unknown") + " />"),
605-
(children =
606-
" Did you accidentally export a JSX literal instead of a component?"))
607-
: (isStaticChildren = typeof type);
601+
? (isStaticChildren = "array")
602+
: void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE
603+
? ((isStaticChildren =
604+
"<" +
605+
(getComponentNameFromType(type.type) || "Unknown") +
606+
" />"),
607+
(children =
608+
" Did you accidentally export a JSX literal instead of a component?"))
609+
: (isStaticChildren = typeof type);
608610
error(
609611
"React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
610612
isStaticChildren,

compiled/facebook-www/JSXDEVRuntime-dev.modern.js

+11-9
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ __DEV__ &&
185185
-1 < x.stack.indexOf("\n at")
186186
? " (<anonymous>)"
187187
: -1 < x.stack.indexOf("@")
188-
? "@unknown:0:0"
189-
: "";
188+
? "@unknown:0:0"
189+
: "";
190190
}
191191
return "\n" + prefix + name + suffix;
192192
}
@@ -595,13 +595,15 @@ __DEV__ &&
595595
null === type
596596
? (isStaticChildren = "null")
597597
: isArrayImpl(type)
598-
? (isStaticChildren = "array")
599-
: void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE
600-
? ((isStaticChildren =
601-
"<" + (getComponentNameFromType(type.type) || "Unknown") + " />"),
602-
(children =
603-
" Did you accidentally export a JSX literal instead of a component?"))
604-
: (isStaticChildren = typeof type);
598+
? (isStaticChildren = "array")
599+
: void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE
600+
? ((isStaticChildren =
601+
"<" +
602+
(getComponentNameFromType(type.type) || "Unknown") +
603+
" />"),
604+
(children =
605+
" Did you accidentally export a JSX literal instead of a component?"))
606+
: (isStaticChildren = typeof type);
605607
error(
606608
"React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
607609
isStaticChildren,

compiled/facebook-www/REVISION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
d025ddd3b954dfc52ad7e6a036913946a8ca2644
1+
b7e7f1a3fab87e8fc19e86a8088a9e0fe4710973
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
d025ddd3b954dfc52ad7e6a036913946a8ca2644
1+
b7e7f1a3fab87e8fc19e86a8088a9e0fe4710973

compiled/facebook-www/React-dev.classic.js

+31-29
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,8 @@ __DEV__ &&
272272
-1 < x.stack.indexOf("\n at")
273273
? " (<anonymous>)"
274274
: -1 < x.stack.indexOf("@")
275-
? "@unknown:0:0"
276-
: "";
275+
? "@unknown:0:0"
276+
: "";
277277
}
278278
return "\n" + prefix + name + suffix;
279279
}
@@ -660,13 +660,15 @@ __DEV__ &&
660660
null === type
661661
? (isStaticChildren = "null")
662662
: isArrayImpl(type)
663-
? (isStaticChildren = "array")
664-
: void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE
665-
? ((isStaticChildren =
666-
"<" + (getComponentNameFromType(type.type) || "Unknown") + " />"),
667-
(children =
668-
" Did you accidentally export a JSX literal instead of a component?"))
669-
: (isStaticChildren = typeof type);
663+
? (isStaticChildren = "array")
664+
: void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE
665+
? ((isStaticChildren =
666+
"<" +
667+
(getComponentNameFromType(type.type) || "Unknown") +
668+
" />"),
669+
(children =
670+
" Did you accidentally export a JSX literal instead of a component?"))
671+
: (isStaticChildren = typeof type);
670672
error$jscomp$0(
671673
"React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
672674
isStaticChildren,
@@ -1681,13 +1683,13 @@ __DEV__ &&
16811683
isArrayImpl(type)
16821684
? (typeString = "array")
16831685
: void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE
1684-
? ((typeString =
1685-
"<" +
1686-
(getComponentNameFromType(type.type) || "Unknown") +
1687-
" />"),
1688-
(i =
1689-
" Did you accidentally export a JSX literal instead of a component?"))
1690-
: (typeString = typeof type);
1686+
? ((typeString =
1687+
"<" +
1688+
(getComponentNameFromType(type.type) || "Unknown") +
1689+
" />"),
1690+
(i =
1691+
" Did you accidentally export a JSX literal instead of a component?"))
1692+
: (typeString = typeof type);
16911693
error$jscomp$0(
16921694
"React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
16931695
typeString,
@@ -1762,18 +1764,18 @@ __DEV__ &&
17621764
"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
17631765
)
17641766
: "function" !== typeof render
1765-
? error$jscomp$0(
1766-
"forwardRef requires a render function but was given %s.",
1767-
null === render ? "null" : typeof render
1768-
)
1769-
: 0 !== render.length &&
1770-
2 !== render.length &&
1771-
error$jscomp$0(
1772-
"forwardRef render functions accept exactly two parameters: props and ref. %s",
1773-
1 === render.length
1774-
? "Did you forget to use the ref parameter?"
1775-
: "Any additional parameter will be undefined."
1776-
);
1767+
? error$jscomp$0(
1768+
"forwardRef requires a render function but was given %s.",
1769+
null === render ? "null" : typeof render
1770+
)
1771+
: 0 !== render.length &&
1772+
2 !== render.length &&
1773+
error$jscomp$0(
1774+
"forwardRef render functions accept exactly two parameters: props and ref. %s",
1775+
1 === render.length
1776+
? "Did you forget to use the ref parameter?"
1777+
: "Any additional parameter will be undefined."
1778+
);
17771779
null != render &&
17781780
null != render.defaultProps &&
17791781
error$jscomp$0(
@@ -1991,7 +1993,7 @@ __DEV__ &&
19911993
exports.useTransition = function () {
19921994
return resolveDispatcher().useTransition();
19931995
};
1994-
exports.version = "19.0.0-www-classic-d025ddd3-20240722";
1996+
exports.version = "19.0.0-www-classic-b7e7f1a3-20240722";
19951997
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
19961998
"function" ===
19971999
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-dev.modern.js

+31-29
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,8 @@ __DEV__ &&
272272
-1 < x.stack.indexOf("\n at")
273273
? " (<anonymous>)"
274274
: -1 < x.stack.indexOf("@")
275-
? "@unknown:0:0"
276-
: "";
275+
? "@unknown:0:0"
276+
: "";
277277
}
278278
return "\n" + prefix + name + suffix;
279279
}
@@ -657,13 +657,15 @@ __DEV__ &&
657657
null === type
658658
? (isStaticChildren = "null")
659659
: isArrayImpl(type)
660-
? (isStaticChildren = "array")
661-
: void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE
662-
? ((isStaticChildren =
663-
"<" + (getComponentNameFromType(type.type) || "Unknown") + " />"),
664-
(children =
665-
" Did you accidentally export a JSX literal instead of a component?"))
666-
: (isStaticChildren = typeof type);
660+
? (isStaticChildren = "array")
661+
: void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE
662+
? ((isStaticChildren =
663+
"<" +
664+
(getComponentNameFromType(type.type) || "Unknown") +
665+
" />"),
666+
(children =
667+
" Did you accidentally export a JSX literal instead of a component?"))
668+
: (isStaticChildren = typeof type);
667669
error$jscomp$0(
668670
"React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
669671
isStaticChildren,
@@ -1661,13 +1663,13 @@ __DEV__ &&
16611663
isArrayImpl(type)
16621664
? (typeString = "array")
16631665
: void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE
1664-
? ((typeString =
1665-
"<" +
1666-
(getComponentNameFromType(type.type) || "Unknown") +
1667-
" />"),
1668-
(i =
1669-
" Did you accidentally export a JSX literal instead of a component?"))
1670-
: (typeString = typeof type);
1666+
? ((typeString =
1667+
"<" +
1668+
(getComponentNameFromType(type.type) || "Unknown") +
1669+
" />"),
1670+
(i =
1671+
" Did you accidentally export a JSX literal instead of a component?"))
1672+
: (typeString = typeof type);
16711673
error$jscomp$0(
16721674
"React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
16731675
typeString,
@@ -1742,18 +1744,18 @@ __DEV__ &&
17421744
"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
17431745
)
17441746
: "function" !== typeof render
1745-
? error$jscomp$0(
1746-
"forwardRef requires a render function but was given %s.",
1747-
null === render ? "null" : typeof render
1748-
)
1749-
: 0 !== render.length &&
1750-
2 !== render.length &&
1751-
error$jscomp$0(
1752-
"forwardRef render functions accept exactly two parameters: props and ref. %s",
1753-
1 === render.length
1754-
? "Did you forget to use the ref parameter?"
1755-
: "Any additional parameter will be undefined."
1756-
);
1747+
? error$jscomp$0(
1748+
"forwardRef requires a render function but was given %s.",
1749+
null === render ? "null" : typeof render
1750+
)
1751+
: 0 !== render.length &&
1752+
2 !== render.length &&
1753+
error$jscomp$0(
1754+
"forwardRef render functions accept exactly two parameters: props and ref. %s",
1755+
1 === render.length
1756+
? "Did you forget to use the ref parameter?"
1757+
: "Any additional parameter will be undefined."
1758+
);
17571759
null != render &&
17581760
null != render.defaultProps &&
17591761
error$jscomp$0(
@@ -1971,7 +1973,7 @@ __DEV__ &&
19711973
exports.useTransition = function () {
19721974
return resolveDispatcher().useTransition();
19731975
};
1974-
exports.version = "19.0.0-www-modern-d025ddd3-20240722";
1976+
exports.version = "19.0.0-www-modern-b7e7f1a3-20240722";
19751977
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
19761978
"function" ===
19771979
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-prod.classic.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -662,4 +662,4 @@ exports.useSyncExternalStore = function (
662662
exports.useTransition = function () {
663663
return ReactSharedInternals.H.useTransition();
664664
};
665-
exports.version = "19.0.0-www-classic-d025ddd3-20240722";
665+
exports.version = "19.0.0-www-classic-b7e7f1a3-20240722";

compiled/facebook-www/React-prod.modern.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -662,4 +662,4 @@ exports.useSyncExternalStore = function (
662662
exports.useTransition = function () {
663663
return ReactSharedInternals.H.useTransition();
664664
};
665-
exports.version = "19.0.0-www-modern-d025ddd3-20240722";
665+
exports.version = "19.0.0-www-modern-b7e7f1a3-20240722";

compiled/facebook-www/React-profiling.classic.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ exports.useSyncExternalStore = function (
666666
exports.useTransition = function () {
667667
return ReactSharedInternals.H.useTransition();
668668
};
669-
exports.version = "19.0.0-www-classic-d025ddd3-20240722";
669+
exports.version = "19.0.0-www-classic-b7e7f1a3-20240722";
670670
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
671671
"function" ===
672672
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-profiling.modern.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ exports.useSyncExternalStore = function (
666666
exports.useTransition = function () {
667667
return ReactSharedInternals.H.useTransition();
668668
};
669-
exports.version = "19.0.0-www-modern-d025ddd3-20240722";
669+
exports.version = "19.0.0-www-modern-b7e7f1a3-20240722";
670670
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
671671
"function" ===
672672
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

0 commit comments

Comments
 (0)