-
Notifications
You must be signed in to change notification settings - Fork 22
/
.eslintrc
46 lines (45 loc) · 1.41 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
{
"extends" : ["pedant/es6"],
"env": {
"es6": true,
"node": true,
"mocha": true
},
"parserOptions" : {
"ecmaVersion" : 6
},
"rules" : {
"curly" : "off",
"no-cond-assign": "off",
"semi" : "error",
"no-mixed-spaces-and-tabs" : "error",
"max-len" : ["error", { "code" : 120 }],
"eol-last" : "error",
"key-spacing" : ["error", {
"beforeColon" : true,
"afterColon" : true,
"mode" : "strict"
}],
"object-curly-spacing" : ["error", "always"],
"keyword-spacing" : ["error", {
"before" : true,
"after" : true,
"overrides" : {
"if" : { "after" : false },
"for" : { "after" : false },
"while" : { "after" : false },
"switch" : { "after" : false },
"catch" : { "after" : false }
}
}],
"array-bracket-spacing" : ["error", "never"],
"arrow-parens" : ["error", "as-needed"],
"func-call-spacing" : "error",
"space-before-blocks" : ["error", "always"],
"padded-blocks": ["error", "never"],
"quotes" : ["error", "single", { "avoidEscape" : true }],
"camelcase" : ["error", { "properties" : "never" }],
"no-trailing-spaces" : "error",
"comma-dangle" : ["error", "never"]
}
}