;
// this group fit one line and hide jsx whitespace
b2 =
<>
123
{' '}
1
>;
// this group break group and show jsx whitespace
b3 =
<>
{`
123`}
{' '}
1
>;
const b4 =
The films of Wong Kar-Wai exemplify the synthesis of French New Wave cinema—specifically the unrelenting
experimental technique and fascination with American/western culture—with more conventional melodramatic, romantic narratives.
);
let a = (
*comment3*/Test
// comment before attribute
/*comment1*/prop/*comment2*/=/*comment3*/{/*comment4*/value /*comment5*/}/*comment6*/
// comment after attribute
>
);
function Component() {
return (
{fn(data)}{' '}
);
}
// jsx whitespace {' '} adds meaningful jsx text
function Component() {
return (
);
}
```
=============================
# Outputs
## Output 1
-----
Indent style: Tab
Line width: 80
Quote style: Double Quotes
Quote properties: As needed
Trailing comma: All
Semicolons: Always
-----
```jsx
// Single string attribute
;
// Not single string because of the new line
a = (
);
// Inline
a = (
);
// IndentAttributes
a = (
);
// Empty
a = ;
<>>;
// Not empty
a =
;
// Template
a = (
{`A Long Tempalte String That uses ${
5 + 4
} that will eventually break across multiple lines ${(40 / 3) * 45}`}
);
// Meaningful text after self closing element adds a hard line break
a = (
adefg
);
// Meaningful text after a non-self closing element should add a soft line break
b = a = (
a
abcd
);
// A word right before a self-closing element inserts a hard line break
a = (
ab
);
// A Word not right before a self-closing element inserts a soft line break.
a = (
ab
text
);
// whitespaces
c =
a b
;
c2 = (
a content{" "}
);
// this group should fit one line jsx whitespaces are hidden
b = (
1
);
// this group should break first tag and show only first jsx whitespace
b1 = (
);
// this group fit one line and hide jsx whitespace
b2 = (
<>
123 1
>
);
// this group break group and show jsx whitespace
b3 = (
<>
{`
123`}
{" "}
1
>
);
const b4 = (
The films of Wong Kar-Wai exemplify the synthesis of French New Wave
cinema—specifically the unrelenting experimental technique and fascination
with American/western culture—with more conventional melodramatic, romantic
narratives.
);
let a = (
*comment3*/ Test
// comment before attribute
/*comment1*/ prop /*comment2*/=/*comment3*/ {
/*comment4*/ value /*comment5*/
} /*comment6*/
// comment after attribute
>
);
function Component() {
return (
{fn(data)}
);
}
// jsx whitespace {' '} adds meaningful jsx text
function Component() {
return (
);
}
```
# Lines exceeding max width of 80 characters
```
2: ;
7: tooltip="A very long tooltip text that would otherwise make the attribute break
14:
179: "ui-monospace,SFMono-Regular,SF Mono,Consolas,Liberation Mono,Menlo,monospace",
200: "ui-monospace,SFMono-Regular,SF Mono,Consolas,Liberation Mono,Menlo,monospace",
213: "ui-monospace,SFMono-Regular,SF Mono,Consolas,Liberation Mono,Menlo,monospace",
238:
287: Uncle Boonmee Who Can Recall His Past Lives dir. Apichatpong Weerasethakul{" "}
```