-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
Domain: FormatterThe issue relates to the built-in formatterThe issue relates to the built-in formatterEffort: ModerateRequires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".Requires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".Experience EnhancementNoncontroversial enhancementsNoncontroversial enhancementsHelp WantedYou can do thisYou can do thisSuggestionAn idea for TypeScriptAn idea for TypeScriptVS Code TrackedThere is a VS Code equivalent to this issueThere is a VS Code equivalent to this issue
Milestone
Description
TypeScript Version: 2.5.2
Code
Format the following
switch (foo) {
case 'bar':
break;
}
Expected behavior:
Keep it the same.
Actual behavior:
case
is indented.
switch (foo) {
case 'bar':
break;
}
This becomes more problematic when used with tslint or javascript code with eslint, because on different systems we can see one winning over the other randomly i.e. sometimes the case is indented, sometimes it's not (eslint rule says do not indent).
tobiiasl, gwicksted, flazz, summivox, jeffreymkabot and 53 moresledorze
Metadata
Metadata
Assignees
Labels
Domain: FormatterThe issue relates to the built-in formatterThe issue relates to the built-in formatterEffort: ModerateRequires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".Requires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".Experience EnhancementNoncontroversial enhancementsNoncontroversial enhancementsHelp WantedYou can do thisYou can do thisSuggestionAn idea for TypeScriptAn idea for TypeScriptVS Code TrackedThere is a VS Code equivalent to this issueThere is a VS Code equivalent to this issue