Skip to content

Commit

Permalink
[BE] upgrade prettier to 3.3.3 (#30420)
Browse files Browse the repository at this point in the history
Mostly just changes in ternary formatting.

DiffTrain build for [b7e7f1a](b7e7f1a)
  • Loading branch information
kassens committed Jul 22, 2024
1 parent 32ff1a4 commit a9dbaee
Show file tree
Hide file tree
Showing 39 changed files with 4,820 additions and 4,659 deletions.
20 changes: 11 additions & 9 deletions compiled/facebook-www/JSXDEVRuntime-dev.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@ __DEV__ &&
-1 < x.stack.indexOf("\n at")
? " (<anonymous>)"
: -1 < x.stack.indexOf("@")
? "@unknown:0:0"
: "";
? "@unknown:0:0"
: "";
}
return "\n" + prefix + name + suffix;
}
Expand Down Expand Up @@ -598,13 +598,15 @@ __DEV__ &&
null === type
? (isStaticChildren = "null")
: isArrayImpl(type)
? (isStaticChildren = "array")
: void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE
? ((isStaticChildren =
"<" + (getComponentNameFromType(type.type) || "Unknown") + " />"),
(children =
" Did you accidentally export a JSX literal instead of a component?"))
: (isStaticChildren = typeof type);
? (isStaticChildren = "array")
: void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE
? ((isStaticChildren =
"<" +
(getComponentNameFromType(type.type) || "Unknown") +
" />"),
(children =
" Did you accidentally export a JSX literal instead of a component?"))
: (isStaticChildren = typeof type);
error(
"React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
isStaticChildren,
Expand Down
20 changes: 11 additions & 9 deletions compiled/facebook-www/JSXDEVRuntime-dev.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@ __DEV__ &&
-1 < x.stack.indexOf("\n at")
? " (<anonymous>)"
: -1 < x.stack.indexOf("@")
? "@unknown:0:0"
: "";
? "@unknown:0:0"
: "";
}
return "\n" + prefix + name + suffix;
}
Expand Down Expand Up @@ -595,13 +595,15 @@ __DEV__ &&
null === type
? (isStaticChildren = "null")
: isArrayImpl(type)
? (isStaticChildren = "array")
: void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE
? ((isStaticChildren =
"<" + (getComponentNameFromType(type.type) || "Unknown") + " />"),
(children =
" Did you accidentally export a JSX literal instead of a component?"))
: (isStaticChildren = typeof type);
? (isStaticChildren = "array")
: void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE
? ((isStaticChildren =
"<" +
(getComponentNameFromType(type.type) || "Unknown") +
" />"),
(children =
" Did you accidentally export a JSX literal instead of a component?"))
: (isStaticChildren = typeof type);
error(
"React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
isStaticChildren,
Expand Down
2 changes: 1 addition & 1 deletion compiled/facebook-www/REVISION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
d025ddd3b954dfc52ad7e6a036913946a8ca2644
b7e7f1a3fab87e8fc19e86a8088a9e0fe4710973
2 changes: 1 addition & 1 deletion compiled/facebook-www/REVISION_TRANSFORMS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
d025ddd3b954dfc52ad7e6a036913946a8ca2644
b7e7f1a3fab87e8fc19e86a8088a9e0fe4710973
60 changes: 31 additions & 29 deletions compiled/facebook-www/React-dev.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,8 @@ __DEV__ &&
-1 < x.stack.indexOf("\n at")
? " (<anonymous>)"
: -1 < x.stack.indexOf("@")
? "@unknown:0:0"
: "";
? "@unknown:0:0"
: "";
}
return "\n" + prefix + name + suffix;
}
Expand Down Expand Up @@ -660,13 +660,15 @@ __DEV__ &&
null === type
? (isStaticChildren = "null")
: isArrayImpl(type)
? (isStaticChildren = "array")
: void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE
? ((isStaticChildren =
"<" + (getComponentNameFromType(type.type) || "Unknown") + " />"),
(children =
" Did you accidentally export a JSX literal instead of a component?"))
: (isStaticChildren = typeof type);
? (isStaticChildren = "array")
: void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE
? ((isStaticChildren =
"<" +
(getComponentNameFromType(type.type) || "Unknown") +
" />"),
(children =
" Did you accidentally export a JSX literal instead of a component?"))
: (isStaticChildren = typeof type);
error$jscomp$0(
"React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
isStaticChildren,
Expand Down Expand Up @@ -1681,13 +1683,13 @@ __DEV__ &&
isArrayImpl(type)
? (typeString = "array")
: void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE
? ((typeString =
"<" +
(getComponentNameFromType(type.type) || "Unknown") +
" />"),
(i =
" Did you accidentally export a JSX literal instead of a component?"))
: (typeString = typeof type);
? ((typeString =
"<" +
(getComponentNameFromType(type.type) || "Unknown") +
" />"),
(i =
" Did you accidentally export a JSX literal instead of a component?"))
: (typeString = typeof type);
error$jscomp$0(
"React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
typeString,
Expand Down Expand Up @@ -1762,18 +1764,18 @@ __DEV__ &&
"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
)
: "function" !== typeof render
? error$jscomp$0(
"forwardRef requires a render function but was given %s.",
null === render ? "null" : typeof render
)
: 0 !== render.length &&
2 !== render.length &&
error$jscomp$0(
"forwardRef render functions accept exactly two parameters: props and ref. %s",
1 === render.length
? "Did you forget to use the ref parameter?"
: "Any additional parameter will be undefined."
);
? error$jscomp$0(
"forwardRef requires a render function but was given %s.",
null === render ? "null" : typeof render
)
: 0 !== render.length &&
2 !== render.length &&
error$jscomp$0(
"forwardRef render functions accept exactly two parameters: props and ref. %s",
1 === render.length
? "Did you forget to use the ref parameter?"
: "Any additional parameter will be undefined."
);
null != render &&
null != render.defaultProps &&
error$jscomp$0(
Expand Down Expand Up @@ -1991,7 +1993,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.0.0-www-classic-d025ddd3-20240722";
exports.version = "19.0.0-www-classic-b7e7f1a3-20240722";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
60 changes: 31 additions & 29 deletions compiled/facebook-www/React-dev.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,8 @@ __DEV__ &&
-1 < x.stack.indexOf("\n at")
? " (<anonymous>)"
: -1 < x.stack.indexOf("@")
? "@unknown:0:0"
: "";
? "@unknown:0:0"
: "";
}
return "\n" + prefix + name + suffix;
}
Expand Down Expand Up @@ -657,13 +657,15 @@ __DEV__ &&
null === type
? (isStaticChildren = "null")
: isArrayImpl(type)
? (isStaticChildren = "array")
: void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE
? ((isStaticChildren =
"<" + (getComponentNameFromType(type.type) || "Unknown") + " />"),
(children =
" Did you accidentally export a JSX literal instead of a component?"))
: (isStaticChildren = typeof type);
? (isStaticChildren = "array")
: void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE
? ((isStaticChildren =
"<" +
(getComponentNameFromType(type.type) || "Unknown") +
" />"),
(children =
" Did you accidentally export a JSX literal instead of a component?"))
: (isStaticChildren = typeof type);
error$jscomp$0(
"React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
isStaticChildren,
Expand Down Expand Up @@ -1661,13 +1663,13 @@ __DEV__ &&
isArrayImpl(type)
? (typeString = "array")
: void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE
? ((typeString =
"<" +
(getComponentNameFromType(type.type) || "Unknown") +
" />"),
(i =
" Did you accidentally export a JSX literal instead of a component?"))
: (typeString = typeof type);
? ((typeString =
"<" +
(getComponentNameFromType(type.type) || "Unknown") +
" />"),
(i =
" Did you accidentally export a JSX literal instead of a component?"))
: (typeString = typeof type);
error$jscomp$0(
"React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
typeString,
Expand Down Expand Up @@ -1742,18 +1744,18 @@ __DEV__ &&
"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
)
: "function" !== typeof render
? error$jscomp$0(
"forwardRef requires a render function but was given %s.",
null === render ? "null" : typeof render
)
: 0 !== render.length &&
2 !== render.length &&
error$jscomp$0(
"forwardRef render functions accept exactly two parameters: props and ref. %s",
1 === render.length
? "Did you forget to use the ref parameter?"
: "Any additional parameter will be undefined."
);
? error$jscomp$0(
"forwardRef requires a render function but was given %s.",
null === render ? "null" : typeof render
)
: 0 !== render.length &&
2 !== render.length &&
error$jscomp$0(
"forwardRef render functions accept exactly two parameters: props and ref. %s",
1 === render.length
? "Did you forget to use the ref parameter?"
: "Any additional parameter will be undefined."
);
null != render &&
null != render.defaultProps &&
error$jscomp$0(
Expand Down Expand Up @@ -1971,7 +1973,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.0.0-www-modern-d025ddd3-20240722";
exports.version = "19.0.0-www-modern-b7e7f1a3-20240722";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
2 changes: 1 addition & 1 deletion compiled/facebook-www/React-prod.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -662,4 +662,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.0.0-www-classic-d025ddd3-20240722";
exports.version = "19.0.0-www-classic-b7e7f1a3-20240722";
2 changes: 1 addition & 1 deletion compiled/facebook-www/React-prod.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -662,4 +662,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.0.0-www-modern-d025ddd3-20240722";
exports.version = "19.0.0-www-modern-b7e7f1a3-20240722";
2 changes: 1 addition & 1 deletion compiled/facebook-www/React-profiling.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.0.0-www-classic-d025ddd3-20240722";
exports.version = "19.0.0-www-classic-b7e7f1a3-20240722";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
2 changes: 1 addition & 1 deletion compiled/facebook-www/React-profiling.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.0.0-www-modern-d025ddd3-20240722";
exports.version = "19.0.0-www-modern-b7e7f1a3-20240722";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
Loading

0 comments on commit a9dbaee

Please sign in to comment.