Add ESLint rule "indent"

This commit is contained in:
Pig Fang 2018-08-16 14:21:35 +08:00
parent 733e694ba0
commit c3f8044743
2 changed files with 6 additions and 2 deletions

View File

@ -38,6 +38,10 @@ rules:
prefer-const: warn
no-var: error
eqeqeq: error
indent:
- error
- 4
- SwitchCase: 1
vue/html-closing-bracket-newline:
- error
- singleline: never

View File

@ -129,7 +129,7 @@ const config = {
minimizer: [
new UglifyJsWebpackPlugin({
parallel: true,
cache: true,
cache: true,
sourceMap: false,
extractComments: {
filename: 'LICENSES'
@ -139,7 +139,7 @@ const config = {
comments: /^\**!|@preserve|@license|@cc_on/
}
}
})
})
]
},
resolve: {