-
Notifications
You must be signed in to change notification settings - Fork 7
/
.eslintrc.js
45 lines (45 loc) · 1.12 KB
/
.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
41
42
43
44
45
module.exports = {
root: true,
env: {
node: true
},
extends: [
'plugin:vue/essential',
'@vue/standard'
],
parser: '@babel/eslint-parser',
plugins: [
'vuetify',
'only-warn'
],
rules: {
'no-console': ['error', { allow: ['info', 'warn', 'error'] }],
'no-debugger': 'error',
'quote-props': [1, 'consistent'],
'camelcase': 'off',
'vue/script-indent': ['error', 4, { baseIndent: 1, switchCase: 1 }],
'vue/html-indent': ['error', 4, { attribute: 2 }],
'vue/order-in-components': 'error',
'vue/this-in-template': 'error',
'vue/no-spaces-around-equal-signs-in-attribute': 'error',
'vue/no-multi-spaces': 'error',
'vue/multiline-html-element-content-newline': 'error',
'vue/html-end-tags': 'error',
'vue/html-closing-bracket-spacing': 'error',
'vue/mustache-interpolation-spacing': 'error',
'vue/component-definition-name-casing': 'error',
'vue/prop-name-casing': 'error',
'vue/attribute-hyphenation': 'error'
},
overrides: [
{
files: ['*.vue'],
rules: {
'indent': 'off'
}
}
],
globals: {
'_': false
}
}