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

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -