-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvue.js
64 lines (64 loc) · 2.05 KB
/
vue.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
module.exports = {
extends: [
'./js',
'plugin:vue/recommended',
],
parser: 'vue-eslint-parser',
rules: {
'vue/no-dupe-keys': 'error',
'vue/no-reserved-keys': 'error',
'vue/no-shared-component-data': 'error',
'vue/require-valid-default-prop': 'error',
'vue/require-default-prop': 'error',
'vue/require-prop-types': 'error',
'vue/this-in-template': 'error',
'vue/return-in-computed-property': 'error',
'vue/html-quotes': 'error',
'vue/order-in-components': [2, {
'order': [
['name', 'delimiters', 'functional', 'extends'],
'el',
'template',
['components', 'directives', 'filters'],
['parent', 'mixins', 'provide', 'inject'],
'model',
'props',
'propsData',
'data',
'chill',
'computed',
'watch',
'methods',
'LIFECYCLE_HOOKS',
'render',
'renderError',
],
}],
'vue/max-attributes-per-line': [2, {
'singleline': 2,
'multiline': {
'max': 1,
'allowFirstLine': false,
},
}],
'vue/html-self-closing': ['error', {
'html': {
'void': 'never',
'normal': 'never',
'component': 'never',
},
}],
'vue/html-closing-bracket-newline': ['error', {
'singleline': 'never',
'multiline': 'always',
}],
'vue/html-indent': ['error', 4],
'vue/no-side-effects-in-computed-properties': ['off'],
'vue/attributes-order': ['off'],
'vue/prop-name-casing': ['error', 'camelCase'],
'vue/multiline-html-element-content-newline': ['off'],
'vue/singleline-html-element-content-newline': ['off'],
'vue/no-v-html': ['off'],
'vue/require-component-is': ['off'],
},
};