eslint - Have case and break on same indentation level with ES-lint -
i'm trying configure es-lint in way case , break statements on same indentation level switch statements.
with "indent": [2, "tab", { "switchcase": 1, "variabledeclarator": 1 }] expects break on 1 indentation further case.
with "indent": [2, "tab", { "switchcase": 0, "variabledeclarator": 1 }] reason expects both case , break on same level switch not want.
is possible create indent rule in following?
switch (type) { case insert_person: /* stuff */ break; // ... }
Comments
Post a Comment