dprint-plugin-typescript icon indicating copy to clipboard operation
dprint-plugin-typescript copied to clipboard

Option `jsxExpressionContainer.spaceSurroundingExpression` adds spaces between multiple braces

Open robertpin opened this issue 2 years ago • 0 comments

When using jsxExpressionContainer.spaceSurroundingExpression: true the formatter adds spaces between multiple braces.

dprint-plugin-typescript version: 0.88.8.wasm

Input Code

<MyComponent myProp={{value: true}} />
<MySecondComponent myProp={[{value: true}]} />

Expected Output

<MyComponent myProp={{ value: true }} />
<MySecondComponent myProp={[{ value: true }]} />

Actual Output

<MyComponent myProp={ { value: true } } />
<MySecondComponent myProp={ [ { value: true } ] } />

robertpin avatar Jan 12 '24 11:01 robertpin