This repository was archived by the owner on Nov 9, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc
71 lines (71 loc) · 1.85 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
{
"env": {
"browser": true,
"node": true
},
"rules": {
"valid-jsdoc": [2, {
"requireReturn": false,
"requireParamDescription": false,
"requireReturnDescription": false
}],
"no-unexpected-multiline": 2,
"accessor-pairs": [2, {
"setWithoutGet": true
}],
"complexity": [2, 4],
"dot-notation": [2, {
"allowPattern": "^[a-z]+(_[a-z]+)+$"
}],
"dot-location": [2, "property"],
"no-multi-spaces": [2, {
"exceptions": {
"ImportDeclaration": true,
"VariableDeclarator": true,
"AssignmentExpression": true
}
}],
"no-param-reassign": 2,
"no-throw-literal": 2,
"wrap-iife": 2,
"array-bracket-spacing": [2, "never"],
"brace-style": [2, "1tbs", {"allowSingleLine": true}],
"comma-style": 2,
"computed-property-spacing": [2, "never"],
"consistent-this": 2,
"indent": [2, 2],
"lines-around-comment": [2, {
"beforeBlockComment": true
}],
"linebreak-style": [2, "unix"],
"max-nested-callbacks": [2, 4],
"newline-after-var": [2, "always"],
"no-continue": 2,
"no-lonely-if": 2,
"no-multiple-empty-lines": [2, {"max": 2}],
"no-nested-ternary": 2,
"no-unneeded-ternary": 2,
"object-curly-spacing": [2, "never"],
"one-var": [2, {
"uninitialized": "always",
"initialized": "never"
}],
"operator-linebreak": [2, "after"],
"padded-blocks": [2, "never"],
"quotes": [2, "single", "avoid-escape"],
"space-after-keywords": 2,
"space-before-blocks": 2,
"space-before-function-paren": [2, {
"anonymous": "always",
"named": "never"
}],
"space-in-parens": 2,
"space-unary-ops": 2,
"spaced-comment": [2, "always"],
"max-depth": [1, 2],
"max-len": [2, 100, 4],
"max-params": [1, 4],
"max-statements": [2, 15],
"no-bitwise": 2
}
}