-
Notifications
You must be signed in to change notification settings - Fork 26
/
.eslintrc.js
38 lines (38 loc) · 1010 Bytes
/
.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
module.exports = {
"root": true,
"env": {
"browser": true,
"es6": true,
"node": true
},
// "extends": "plugin:vue/essential",
"extends": ["plugin:vue/strongly-recommended", "eslint:recommended"],
"rules": {
"space-before-blocks": ["warn", { "functions": "always" }],
"eqeqeq": ["warn", "always"],
"arrow-parens": ["warn", "as-needed"],
"arrow-spacing": "warn",
"prefer-const": "warn",
"comma-spacing": ["warn", {"before": false, "after": true}],
"block-spacing": "warn",
"key-spacing": ["warn", {"beforeColon": false, "afterColon": true}],
"space-infix-ops": "warn",
"vars-on-top": "warn",
"no-multi-spaces": "warn",
"no-eval": "error",
"no-unneeded-ternary": "warn",
"no-implicit-coercion": "warn",
"no-else-return": "warn",
"no-console": "off",
},
"parserOptions": {
"parser": "babel-eslint"
},
"globals": {
"d3": true,
"d3Tip": true,
"axios": true,
"eStatApiId": true,
"ie": true
}
};