-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
96 lines (96 loc) · 2.74 KB
/
.eslintrc
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
{
"env": {
"es6": true,
"browser": true
},
"parserOptions": {
"ecmaVersion": 2020
},
"extends": ["airbnb-base", "plugin:vue/recommended"],
"rules": {
// "func-names": "off",
// "no-plusplus": "off",
// "no-console": "off",
"linebreak-style": "off",
"indent": [
"error",
4,
{
"SwitchCase": 1
}
],
"quotes": ["error", "double"],
"max-len": "off",
// "no-continue": "off",
// "no-multi-assign": "off",
// "no-param-reassign": "off",
"import/extensions": [
"error",
"always",
{
"js": "never",
"vue": "never"
}
],
"object-curly-newline": ["error", { "multiline": true, "minProperties": 6, "consistent": true }],
// "no-new": "off",
// "vue/html-closing-bracket-newline": [
// "error",
// {
// "multiline": "always"
// }
// ],
// "vue/html-closing-bracket-spacing": "error",
"vue/html-indent": ["error", 4],
"vue/html-self-closing": "off",
"vue/max-attributes-per-line": [
"error",
{
"multiline": {
"max": 1
},
"singleline": 10
}
],
"vue/order-in-components": [
"error",
{
"order": ["el", "name", "parent", "functional", ["delimiters", "comments"], ["props", "propsData"], ["components", "directives", "filters"], "extends", "mixins", "inheritAttrs", "model", "fetch", "asyncData", "data", "computed", "watch", "methods", "LIFECYCLE_HOOKS", "head", ["template", "render"], "renderError"]
}
],
// "vue/singleline-html-element-content-newline": [
// "warn",
// {
// "ignores": [
// "pre",
// "textarea",
// "router-link",
// "strong",
// "label",
// "option",
// "a",
// "button",
// "span"
// ]
// }
// ],
// "vue/no-v-html": "off",
// "vue/require-default-prop": "off",
"vue/require-prop-types": "off"
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".vue"]
}
},
"emitWarning": true
},
"globals": {
"$": false,
"axios": false,
"moment": false,
"Vue": false,
"alertify": false
}
}