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

multiple single-line comments before a semi is split

Open joscha opened this issue 4 years ago • 0 comments

Describe the bug

dprint-plugin-typescript version: 0.55.0

Input Code

const earlyExit =
    !yesNo() // foo
             // bar
             // baz
;

Expected Output

const earlyExit =
    !yesNo() // foo
             // bar
             // baz
	;

or maybe

const earlyExit =
    !yesNo() // foo
    // bar
    // baz
	;

or maybe

const earlyExit =
    !yesNo(); // foo
    		  // bar
    		  // baz

Actual Output

const earlyExit = !yesNo() // foo
; // bar
// baz

The ; is interleaved with the rest of the comments

joscha avatar Sep 17 '21 05:09 joscha