Input
const x = (
<>
{x ? (
<div />
) : // xxx
x ? null : (
<div />
)}
</>
);
Config
Oxfmt output
Oxfmt version: 42e9dcc7d
const x = (
<>
{x ? (
<div /> // xxx
) : x ? null : (
<div />
)}
</>
);
Oxfmt playground link
No response
Prettier output
Prettier version: 3.7.1
const x = (
<>
{x ? (
<div />
) : // xxx
x ? null : (
<div />
)}
</>
);
Prettier playground link
No response
Additional notes
No response
{ "printWidth": 100, "tabWidth": 2, "useTabs": false, "semi": true, "singleQuote": true, "quoteProps": "as-needed", "jsxSingleQuote": false, "trailingComma": "all", "bracketSpacing": true, "bracketSameLine": false, "arrowParens": "always" }