Skip to content
Permalink
Browse files

Define the indent rule for switch-case blocks

  • Loading branch information
dhruvkb committed Jul 2, 2019
1 parent 4dfe39c commit 8ed575bac8227446a1de7a911e10c39c06c4d065
Showing with 1 addition and 0 deletions.
  1. +1 −0 .eslintrc.js
@@ -11,6 +11,7 @@ module.exports = {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'vue/script-indent': ['error', 2, {
switchCase: 1,
baseIndent: 1
}] // Supersedes the normal indent rule
},

0 comments on commit 8ed575b

Please sign in to comment.
You can’t perform that action at this time.