-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.js
69 lines (69 loc) · 1.21 KB
/
index.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
65
66
67
68
69
// https://eslint.org/docs/user-guide/configuring
module.exports = {
parserOptions: {
parser: "babel-eslint",
sourceType: "module"
},
env: {
browser: true
},
extends: [
"plugin:vue/recommended",
require.resolve("./rules/imports.js"),
require.resolve("eslint-config-ecollect-base")
],
plugins: ["vue"],
globals: {
ga: true, // Google Analytics
cordova: true,
__statics: true
},
settings: {
"import/resolve": {
webpack: {
config: "build/webpack.base.conf.js"
}
}
},
rules: {
"vue/html-indent": [
"error",
"tab",
{
attribute: 1,
closeBracket: 0,
alignAttributesVertically: true,
ignores: []
}
],
"vue/script-indent": [
"error",
"tab",
{
baseIndent: 1,
switchCase: 0,
ignores: []
}
],
"vue/require-default-prop": 0,
"vue/html-self-closing": 0,
"vue/max-attributes-per-line": [
"error",
{
singleline: 3,
multiline: {
max: 1,
allowFirstLine: false
}
}
]
},
overrides: [
{
files: ["*.vue"],
rules: {
indent: "off"
}
}
]
};