Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

Commit

Permalink
fix(rome_js_formatter): jsx punctuation
Browse files Browse the repository at this point in the history
  • Loading branch information
denbezrukov committed Nov 24, 2022
1 parent 8afc475 commit 2e14f31
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ third = (
+ <fbt:param>First</fbt:param>,<fbt:param>Second</fbt:param>
</fbt>
);

x = (
<fbt>
- <fbt:param>First</fbt:param>
Expand All @@ -147,9 +147,9 @@ third = (
+ <fbt:param>First</fbt:param>,<fbt:param>Second</fbt:param>
</fbt>
);

@@ -62,33 +59,35 @@

x = (
<fbt>
- {hour}
Expand All @@ -160,7 +160,7 @@ third = (
+ {hour}:{minute}:{second}
</fbt>
);

x = (
<fbt>
- {hour}:
Expand All @@ -169,7 +169,7 @@ third = (
+ {hour}:{minute}:{second}
</fbt>
);

first = (
<fbt>
- Text<br />
Expand All @@ -183,7 +183,7 @@ third = (
+ <br />
</fbt>
);

second = (
<fbt>
- Text<br />More text<br />And more<br />
Expand All @@ -195,7 +195,7 @@ third = (
+ <br />
</fbt>
);

```

# Output
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ x = <div>
</div>

x = <div><span/>bar</div>

x = <div>
<span>
<strong>{name}</strong>’s{' '}
Expand All @@ -441,15 +441,15 @@ x = <div>
x = <HelpBlock>
{parameter.Description}: {errorMsg}
</HelpBlock>

x = <label>
{value} solution{plural}
</label>

x = <span>Copy &quot;{name}&quot;</span>

x = <BasicText light>(avg. {value}/5)</BasicText>

x = <p>
Use the <code>Button</code>'s
</p>;
Expand All @@ -474,7 +474,7 @@ let myDiv = ReactTestUtils.renderIntoDocument(
--- Prettier
+++ Rome
@@ -318,7 +318,11 @@
line_after_br_2 = (
<div>
- A<br />B<br />C
Expand All @@ -485,7 +485,7 @@ let myDiv = ReactTestUtils.renderIntoDocument(
+ C
</div>
);
@@ -331,6 +335,7 @@
dont_preserve_blank_lines_when_jsx_contains_text = (
<div>
Expand Down

0 comments on commit 2e14f31

Please sign in to comment.