This repository has been archived by the owner on Oct 28, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
77 lines (77 loc) · 2.38 KB
/
.eslintrc.json
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
65
66
67
68
69
70
71
72
73
74
75
76
77
{
"env": {
"amd": true,
"browser": true,
"jasmine": true,
"node": true,
"cypress/globals": true
},
"extends": [
"eslint:recommended",
"plugin:vue/recommended"
],
"parserOptions": {
"sourceType": "module"
},
"plugins": [
"cypress"
],
"rules": {
"comma-dangle": ["error", "always-multiline"],
"indent": ["error", 4, {
"SwitchCase": 1
}],
"linebreak-style": ["error", "unix"],
"max-len": ["error", 80],
"no-console": ["error", {
"allow": ["error"]
}],
"no-trailing-spaces": "error",
"no-unneeded-ternary": "error",
"no-unused-vars": ["error", {
"args": "none",
"varsIgnorePattern": "^_"
}],
"quotes": ["error", "single"],
"semi": "error",
"vue/html-indent": ["error", 4],
"vue/html-quotes": "error",
"vue/html-self-closing": "error",
// if it fits within max-len, it's fine, but if it's multiline,
// check that it's max one per line.
"vue/max-attributes-per-line": ["error", {
"singleline": 1000
}],
"vue/no-async-in-computed-properties": "error",
"vue/no-dupe-keys": "error",
"vue/no-duplicate-attributes": "error",
"vue/no-reserved-keys": "error",
"vue/no-shared-component-data": "error",
"vue/no-side-effects-in-computed-properties": "error",
// "vue/no-unused-vars": "error",
"vue/order-in-components": ["error", {
"order": [
"name",
["parent", "mixins", "extends", "provide", "inject"],
"props",
"propsData",
["el", "template", "render", "renderError"],
"components",
"data",
"constants",
"LIFECYCLE_HOOKS",
["directives", "filters"],
"computed",
"watch",
"methods",
["delimiters", "functional", "model"]
]
}],
"vue/require-prop-types": "error",
"vue/require-render-return": "error",
"vue/require-valid-default-prop": "error",
"vue/return-in-computed-property": "error",
"vue/v-bind-style": "error",
"vue/v-on-style": "error"
}
}