typescript-formatter
typescript-formatter copied to clipboard
insertSpaceAfterOpeningAndBeforeClosingEmptyBraces setting not observed
trafficstars
Repo
- Create
tsfmt.json:
{
"insertSpaceAfterOpeningAndBeforeClosingEmptyBraces": true,
}
- Using the latest TS 4.5-nighty, try formatting:
1 || {}
Bug No space is added between the braces
After debugging, it looks like the insertSpaceAfterOpeningAndBeforeClosingEmptyBraces option is dropped