Skip to content

Commit f2fc091

Browse files
committed
chore: address formatting
1 parent 57b0fc3 commit f2fc091

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

packages/babel-plugin-component-annotate/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ function functionBodyPushAttributes(
193193
// Handle the case of a function body returning a ternary operation.
194194
// `return (maybeTrue ? '' : (<SubComponent />))`
195195
if (arg.isConditionalExpression()) {
196-
const consequent = arg.get('consequent');
196+
const consequent = arg.get("consequent");
197197
if (consequent.isJSXFragment() || consequent.isJSXElement()) {
198198
processJSX(
199199
annotateFragments,
@@ -205,7 +205,7 @@ function functionBodyPushAttributes(
205205
ignoredComponents
206206
);
207207
}
208-
const alternate = arg.get('alternate');
208+
const alternate = arg.get("alternate");
209209
if (alternate.isJSXFragment() || alternate.isJSXElement()) {
210210
processJSX(
211211
annotateFragments,

packages/babel-plugin-component-annotate/test/test-plugin.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2238,7 +2238,8 @@ it("Bananas incompatible plugin @react-navigation source snapshot matches", () =
22382238
});
22392239

22402240
it("handles ternary operation returned by function body", () => {
2241-
const result = transform(`const maybeTrue = Math.random() > 0.5;
2241+
const result = transform(
2242+
`const maybeTrue = Math.random() > 0.5;
22422243
export default function componentName() {
22432244
return (maybeTrue ? '' : (<SubComponent />))
22442245
}`,

0 commit comments

Comments
 (0)