Closed hoschi closed 8 years ago
@hoschi I added 2 new settings SwitchCaseBlockStart
and SwitchCaseBlockEnd
; the default behavior should match your expectation. thanks a lot for the bug report!
PS: CatchOpeningBrace
is actually used to set the behavior of try { } catch(err) { }
I try to fix no-case-declarations violations, but esformatter adds line breaks around the braces for the case block.
Input (es5 instead of es6):
Expected: output stays the same, because Catch* fields are configured with '-1'. Current output:
My
.esformatter
file (esformatter version 0.9.3):How to configure esformatter to keep the braces where they are? (If this is no bug)