* Generate * Generate * Add TS4.6 changelog * Regenerate * Add changelog to switch to esbuild * Add category * Update changelog_unreleased/blog-post-intro.md Co-authored-by: Jed Fox <git@jedfox.com> * Address review * Regenerate * Highlight TS 4.6 * Update changelog_unreleased/blog-post-intro.md Co-authored-by: Jed Fox <git@jedfox.com> * Regenerate * Update changelog_unreleased/typescript/12390.md Co-authored-by: Jed Fox <git@jedfox.com> * Add thanks message for sponsors * Address review! * Update cspell.json * Fix link of Ubie * Generate * Add `Thanks to our sponsors!` * Update cspell * Address review * Update changelog_unreleased/blog-post-intro.md Co-authored-by: Alexander Kachkaev <alexander@kachkaev.ru> * Regenerate * Add `--print-truncate` option * Address review * Generate Co-authored-by: Jed Fox <git@jedfox.com> Co-authored-by: Alexander Kachkaev <alexander@kachkaev.ru>
541 B
541 B
Preserve end-of-line comments after if statements without blocks (#12017 by @sosukesuzuki)
// Input
if (condition1) expression1; // comment A
else if (condition2) expression2; // comment B
else expression3; // comment C
// Prettier stable
if (condition1) expression1;
// comment A
else if (condition2) expression2;
// comment B
else expression3; // comment C
// Prettier main
if (condition1) expression1; // comment A
else if (condition2) expression2; // comment B
else expression3; // comment C