[prettier] Run prettier
ghstack-source-id: 80f1247d5d1daf1422b1ba8e87cf8ad18e8a8c70 Pull Request resolved: https://github.com/facebook/react/pull/30022
Lauren Tan committed
Jun 21, 2024 at 11:41 UTC
3776e98f9030cc1d1269827dbfc1a5f68b16101c
4 files changed
+15
-7
compiler/apps/playground/components/TabbedWindow.tsx
+6
-2
@@ -78,7 +78,9 @@ function TabbedWindowItem({
78
title="Minimize tab"
79
aria-label="Minimize tab"
80
onClick={toggleTabs}
81
- className={`p-4 duration-150 ease-in border-b cursor-pointer border-grey-200 ${hasChanged ? "font-bold" : "font-light"} text-secondary hover:text-link`}
81
+ className={`p-4 duration-150 ease-in border-b cursor-pointer border-grey-200 ${
82
+ hasChanged ? "font-bold" : "font-light"
83
+ } text-secondary hover:text-link`}
84
>
85
- {name}
86
</h2>
@@ -91,7 +93,9 @@ function TabbedWindowItem({
93
aria-label={`Expand compiler tab: ${name}`}
94
style={{ transform: "rotate(90deg) translate(-50%)" }}
95
onClick={toggleTabs}
94
- className={`flex-grow-0 w-5 transition-colors duration-150 ease-in ${hasChanged ? "font-bold" : "font-light"} text-secondary hover:text-link`}
96
+ className={`flex-grow-0 w-5 transition-colors duration-150 ease-in ${
97
+ hasChanged ? "font-bold" : "font-light"
98
+ } text-secondary hover:text-link`}
99
>
100
{name}
101
</button>
compiler/packages/babel-plugin-react-compiler/src/HIR/PrintHIR.ts
+3
-3
@@ -282,9 +282,9 @@ export function printTerminal(terminal: Terminal): Array<string> | string {
282
break;
283
}
284
case "pruned-scope": {
285
- value = `<pruned> Scope ${printReactiveScopeSummary(terminal.scope)} block=bb${
286
- terminal.block
287
- } fallthrough=bb${terminal.fallthrough}`;
285
+ value = `<pruned> Scope ${printReactiveScopeSummary(
286
+ terminal.scope
287
+ )} block=bb${terminal.block} fallthrough=bb${terminal.fallthrough}`;
288
break;
289
}
290
case "try": {
compiler/packages/babel-plugin-react-compiler/src/Optimization/InstructionReordering.ts
+3
-1
@@ -283,7 +283,9 @@ function print(
283
print(env, locals, shared, seen, dep, depth + 1);
284
}
285
console.log(
286
- `${"| ".repeat(depth)}$${id} ${printNode(node)} deps=[${deps.map((x) => `$${x}`).join(", ")}]`
286
+ `${"| ".repeat(depth)}$${id} ${printNode(node)} deps=[${deps
287
+ .map((x) => `$${x}`)
288
+ .join(", ")}]`
289
);
290
}
291
compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/CodegenReactiveFunction.ts
+3
-1
@@ -565,7 +565,9 @@ function codegenReactiveScope(
565
566
CompilerError.invariant(identifier.name != null, {
567
reason: `Expected scope declaration identifier to be named`,
568
- description: `Declaration \`${printIdentifier(identifier)}\` is unnamed in scope @${scope.id}`,
568
+ description: `Declaration \`${printIdentifier(
569
+ identifier
570
+ )}\` is unnamed in scope @${scope.id}`,
571
loc: null,
572
suggestions: null,
573
});