--- source: crates/rome_formatter_test/src/snapshot_builder.rs info: test_file: js/template-literals/css-prop.js --- # Input ```js function SomeComponent (props) { // Create styles as if you're calling css and the class will be applied to the component return (
This will be blue until hovered.
This font size will be 20px
) } const TestComponent = ({ children, ...props }) => (
{children}
); ``` # Prettier differences ```diff --- Prettier +++ Rome @@ -3,17 +3,17 @@ return (
This will be blue until hovered.
This font size will be 20px
@@ -22,12 +22,5 @@ } const TestComponent = ({ children, ...props }) => ( -
- {children} -
+
{children}
); ``` # Output ```js function SomeComponent(props) { // Create styles as if you're calling css and the class will be applied to the component return (
This will be blue until hovered.
This font size will be 20px
); } const TestComponent = ({ children, ...props }) => (
{children}
); ``` # Lines exceeding max width of 80 characters ``` 2: // Create styles as if you're calling css and the class will be applied to the component ```