forked from angrykoala/wendigo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
76 lines (76 loc) · 2.18 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
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
{
"env": {
"mocha": true,
"node": true,
"browser": true,
"es6": true
},
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "script"
},
"plugins": [],
"globals": {},
"extends": [
"eslint:recommended"
],
"rules": {
"camelcase": "error",
"prefer-arrow-callback": "error",
"eqeqeq": ["error", "always", {
"null": "ignore"
}],
"strict": ["error", "global"],
"complexity": ["warn", 6],
"space-infix-ops": "warn",
"max-depth": ["error", 6],
"no-empty": "error",
"no-extend-native": "error",
"no-new": "error",
"no-sequences": "error",
"no-template-curly-in-string": "warn",
"no-use-before-define": "error",
"no-var": "error",
"no-eval": "error",
"no-extra-bind": "error",
"no-console": ["warn", {
"allow": ["warn", "error"]
}],
"no-floating-decimal": "error",
"no-implicit-coercion": "warn",
"no-labels": "error",
"no-multi-spaces": "error",
"no-new-wrappers": "error",
"no-with": "error",
"prefer-template": "error",
"brace-style": ["error", "1tbs"],
"comma-dangle": ["error", "never"],
"comma-spacing": ["error", {
"before": false,
"after": true
}],
"comma-style": ["error", "last"],
"indent": ["error", 4, {
"SwitchCase": 1
}],
"key-spacing": ["error", {
"beforeColon": false,
"afterColon": true
}],
"lines-between-class-members": ["warn", "always"],
"max-lines": ["error", 300],
"max-len": ["off", 140],
"max-params": ["error", 4],
"max-nested-callbacks": ["error", 6],
"new-cap": "error",
"new-parens": "error",
"no-trailing-spaces": "error",
"spaced-comment": "warn",
"object-curly-spacing": ["warn", "never"],
"space-before-blocks": "warn",
"no-new-require": "error",
"no-mixed-requires": "warn",
"semi": ["error", "always"],
"arrow-spacing": "warn"
}
}