-
Notifications
You must be signed in to change notification settings - Fork 106
/
.eslintrc.json
48 lines (48 loc) · 1.37 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
{
"extends": "eslint:recommended",
"env": {
"browser": true,
"es6": true
},
"globals": {
"Vue": "readonly",
"Plotly": "readonly"
},
"rules": {
"array-bracket-spacing": ["error", "never"],
"arrow-body-style": "error",
"arrow-spacing": "error",
"block-spacing": "error",
"camelcase": "error",
"comma-spacing": "error",
"comma-style": "error",
"computed-property-spacing": "error",
"dot-location": ["error", "property"],
"eol-last": "error",
"func-call-spacing": "error",
"indent": ["error", 2, { "SwitchCase": 1 }],
"key-spacing": "error",
"keyword-spacing": "error",
"linebreak-style": "error",
"no-alert": "error",
"no-array-constructor": "error",
"no-console": "error",
"no-multi-spaces": ["error", {"ignoreEOLComments": true}],
"no-multiple-empty-lines": "error",
"no-new-func": "error",
"no-new-object": "error",
"no-spaced-func": "error",
"no-unmodified-loop-condition": "error",
"no-unneeded-ternary": "error",
"no-useless-return": "error",
"object-curly-spacing": "error",
"quotes": ["error", "single"],
"semi": "error",
"semi-spacing": "error",
"space-before-blocks": "error",
"space-before-function-paren": ["error", "never"],
"space-in-parens": ["error", "never"],
"space-infix-ops": "error",
"space-unary-ops": "error"
}
}