-
-
Notifications
You must be signed in to change notification settings - Fork 25
/
.eslintrc
73 lines (73 loc) · 1.6 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
{
"rules": {
"array-bracket-spacing": 2,
"brace-style": 2,
"comma-dangle": 2,
"comma-spacing": 2,
"comma-style": 2,
"curly": 2,
"dot-notation": 2,
"eol-last": 2,
"eqeqeq": ["error", "smart"],
"key-spacing": 2,
"keyword-spacing": 2,
"new-cap": 0,
"no-empty": [2, { "allowEmptyCatch": true }],
"no-eval": 2,
"no-implied-eval": 2,
"no-mixed-spaces-and-tabs": 2,
"no-multi-str": 2,
"no-sequences": 2,
"no-trailing-spaces": 2,
"no-underscore-dangle": 0,
"no-use-before-define": 2,
"no-with": 2,
"semi-spacing": 2,
"space-before-blocks": 2,
"space-before-function-paren": [
2,
{ "anonymous": "always", "named": "never" }
],
"space-in-parens": 2,
"space-infix-ops": 2,
"space-unary-ops": 2,
"vars-on-top": 2,
"wrap-iife": 2,
"semi": [2, "always"],
"indent": [
2,
2,
{
"SwitchCase": 1
}
],
"valid-jsdoc": 2,
"no-var": "error",
"no-undef": 1,
"no-multi-spaces": "error",
"no-multiple-empty-lines": "error",
"one-var": "off",
"no-continue": "off",
"no-new-func": "warn",
"no-plusplus": "off",
"no-console": "warn",
"complexity": ["warn", 20],
"max-lines-per-function": "off",
"max-len": ["error", 130],
"max-statements-per-line": ["error", { "max": 3 }]
},
"env": {
"shared-node-browser": true,
"browser": true,
"node": true,
"es6": true
},
"parserOptions": {
"ecmaVersion": 9,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"modules": true
}
}
}