Indent case labels in switch

EditorConfig key: js-indent-switch-labels

Indent case labels in switch

js-indent-switch-labels

If true, case labels are indented inside the switch block.

Default value:

true

Possible values:

  • true
  • false

Examples

true
switch (x) {
  case 1:
    break;
}
false
switch (x) {
case 1:
  break;
}