--- source: crates/rome_formatter_test/src/snapshot_builder.rs info: test_file: js/comments/jsx.js --- # Input ```js
{ /* comment */ }
;
{/* comment */ }
;
{/* comment */ }
;
{a/* comment */ }
;
{/* comment */ a }
;
{/* comment */ }
;
{/* comment */}
;
{ // single line comment }
;
{ // multiple line comments 1 // multiple line comments 2 }
;
{ // multiple mixed comments 1 /* multiple mixed comments 2 */ /* multiple mixed comments 3 */ // multiple mixed comments 4 }
;
{ // Some very v ery very very merry (xmas) very very long line to break line width limit }
;
{/*
Some very v ery very very long line to break line width limit
*/}
;
{/** * JSDoc-y comment in JSX. I wonder what will happen to it? */}
;
{ /** * Another JSDoc comment in JSX. */ }
;
{}}>
;
{foo}
;
{foo}
;
{foo}
;
{children}
; {} ``` # Prettier differences ```diff --- Prettier +++ Rome @@ -9,8 +9,7 @@
{ - a - /* comment + a /* comment */ }
; ``` # Output ```js
{/* comment */}
;
{/* comment */}
;
{/* comment */}
;
{ a /* comment */ }
;
{ /* comment */ a }
;
{/* comment */}
;
{/* comment */}
;
{ // single line comment }
;
{ // multiple line comments 1 // multiple line comments 2 }
;
{ // multiple mixed comments 1 /* multiple mixed comments 2 */ /* multiple mixed comments 3 */ // multiple mixed comments 4 }
;
{ // Some very v ery very very merry (xmas) very very long line to break line width limit }
;
{/*
Some very v ery very very long line to break line width limit
*/}
;
{/** * JSDoc-y comment in JSX. I wonder what will happen to it? */}
;
{/** * Another JSDoc comment in JSX. */}
;
{}} >
;
{foo}
;
{foo}
;
{foo}
;
{children}
; {} ; ``` # Lines exceeding max width of 80 characters ``` 53: // Some very v ery very very merry (xmas) very very long line to break line width limit 58: {/*
Some very v ery very very long line to break line width limit
*/} ```