Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 435 Bytes

File metadata and controls

21 lines (17 loc) · 435 Bytes

Fix unstable formatting of labeled statements with comments (#6984 by @clement26695)

// Input
loop1:
//test
const i = 3;

// Prettier stable (first output)
loop1: //test
const i = 3;

// Prettier stable (second output)
//test
loop1: const i = 3;

// Prettier master (first output)
//test
loop1: const i = 3;