-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
40 lines (40 loc) · 999 Bytes
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
module.exports = {
root: true,
env: {
node: true
},
globals: {
CONFIG: true
},
extends: ['plugin:vue/recommended', '@vue/standard'],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-var': 1,
'object-curly-spacing': 1,
'prefer-const': 1,
'space-before-function-paren': 0,
'prefer-promise-reject-errors': 0,
'vue/singleline-html-element-content-newline': 0,
'vue/arrow-spacing': 1,
'vue/block-spacing': 1,
'vue/v-on-function-call': 1,
'vue/html-self-closing': 0,
'vue/eqeqeq': 1,
'vue/object-curly-spacing': ['warn', 'always'],
'vue/multiline-html-element-content-newline': 0,
'vue/max-attributes-per-line': [
'error',
{
singleline: 5,
multiline: {
max: 1,
allowFirstLine: false
}
}
]
},
parserOptions: {
parser: 'babel-eslint'
}
}