Skip to content

Commit 9d978a4

Browse files
committed
[prettier] Run prettier
ghstack-source-id: 80f1247 Pull Request resolved: #30022
1 parent 7c79ae7 commit 9d978a4

File tree

4 files changed

+15
-7
lines changed

4 files changed

+15
-7
lines changed

compiler/apps/playground/components/TabbedWindow.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ function TabbedWindowItem({
7878
title="Minimize tab"
7979
aria-label="Minimize tab"
8080
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`}
8284
>
8385
- {name}
8486
</h2>
@@ -91,7 +93,9 @@ function TabbedWindowItem({
9193
aria-label={`Expand compiler tab: ${name}`}
9294
style={{ transform: "rotate(90deg) translate(-50%)" }}
9395
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`}
9599
>
96100
{name}
97101
</button>

compiler/packages/babel-plugin-react-compiler/src/HIR/PrintHIR.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -282,9 +282,9 @@ export function printTerminal(terminal: Terminal): Array<string> | string {
282282
break;
283283
}
284284
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}`;
288288
break;
289289
}
290290
case "try": {

compiler/packages/babel-plugin-react-compiler/src/Optimization/InstructionReordering.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,9 @@ function print(
283283
print(env, locals, shared, seen, dep, depth + 1);
284284
}
285285
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(", ")}]`
287289
);
288290
}
289291

compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/CodegenReactiveFunction.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,9 @@ function codegenReactiveScope(
565565

566566
CompilerError.invariant(identifier.name != null, {
567567
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}`,
569571
loc: null,
570572
suggestions: null,
571573
});

0 commit comments

Comments
 (0)