-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc
41 lines (35 loc) · 1.48 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
{
"env": {
"browser": true,
"node" : true
},
"plugins": [
"ottofeller"
],
"rules": {
"consistent-return" : 0,
"curly" : [2, "multi"],
"eol-last" : [1],
"indent" : [2, 2],
"key-spacing" : 0,
"lines-around-comment" : [2, {"allowBlockStart": true, "beforeBlockComment": true, "beforeLineComment": true}],
"max-len" : [1, 80, 2, {"ignoreComments": true, "ignoreUrls": true}],
"no-mixed-spaces-and-tabs": [1],
// Allow spaced alignemnt of "=" and ":"
"no-multi-spaces": [2, {exceptions: {"Property": true, "AssignmentExpression": true}}],
"no-spaced-func": [1],
// We often change the lambda-function context with .bind()
"no-extra-parens": 0,
"no-shadow" : [2],
"no-unused-expressions" : [1],
"no-unused-vars" : [2],
"ottofeller/newline-around-multiline-blocks": [1],
"one-var" : [2, "never"],
"padded-blocks" : [2, "never"],
"sort-vars" : [1, {"ignoreCase": true}],
"space-before-function-paren" : [1, "never"],
"space-after-keywords" : [2, "never"],
"strict" : [1, "never"],
"quotes" : [1, "single"]
}
}