-
Notifications
You must be signed in to change notification settings - Fork 72
Open
Description
Describe the bug
dprint-plugin-typescript version: 0.95.11
I get unexpected formatting with both preferSingleLine and memberExpression.linePerExpression set to true.
Configuration
{
"preferSingleLine": true,
"memberExpression.linePerExpression": true
}Input Code
{
screen.setColors({
text: `#${Math.floor(Math.random() * 16777215).toString(16).padStart(6, '0')}`,
progress: `#${Math.floor(Math.random() * 16777215).toString(16).padStart(6, '0')}`,
background: `#${Math.floor(Math.random() * 16777215).toString(16).padStart(6, '0')}`,
})
}Expected Output
{
screen.setColors({
text: `#${
Math.floor(Math.random() * 16777215).toString(16).padStart(6, "0")
}`,
progress: `#${
Math.floor(Math.random() * 16777215).toString(16).padStart(6, "0")
}`,
background: `#${
Math.floor(Math.random() * 16777215).toString(16).padStart(6, "0")
}`,
});
}Actual Output
{
screen.setColors({
text: `#${
Math
.floor(Math.random() * 16777215)
.toString(16)
.padStart(6, "0")
}`,
progress: `#${
Math.floor(Math.random() * 16777215).toString(16).padStart(6, "0")
}`,
background: `#${
Math.floor(Math.random() * 16777215).toString(16).padStart(6, "0")
}`,
});
}Metadata
Metadata
Assignees
Labels
No labels