This repository has been archived by the owner on Jul 29, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
61 lines (61 loc) · 1.84 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
{
"rules": {
"indent": [ 2, 4 ],
"quotes": [ 1, "single" ],
"linebreak-style": [ 2, "unix" ],
"semi": [ 2, "always" ],
"strict": [ 2, "global" ],
"no-else-return" : [ 2 ],
"curly" : [ 2 ],
"no-eval" : [ 2 ],
"array-bracket-spacing" : [ 2, "always" ],
"camelcase" : [ 2 ],
"comma-spacing": [ 2, { "before" : false, "after" : true } ],
"computed-property-spacing": [ 2, "never" ],
"eol-last" : [ 2 ],
"func-names" : [ 1 ],
"func-style" : [ 2, "expression" ],
"key-spacing" : [ 2, {
"beforeColon": true,
"afterColon": true,
"align": "colon",
"mode": "minimum"
}],
"max-depth" : [ 2, 3 ],
"max-nested-callbacks": [ 2, 3 ],
"max-params" : [ 2, 3 ],
"new-cap" : [ 2 ],
"new-parens" : [ 2 ],
"newline-after-var" : [ 2, "always" ],
"no-array-constructor" : [ 2 ],
"no-new-object" : [ 2 ],
"no-spaced-func" : [ 2 ],
"object-curly-spacing" : [2, "always", {
"objectsInObjects" : true,
"arraysInObjects" : true
}],
"padded-blocks" : [2, "never"],
"require-jsdoc": [2, {
"require": {
"FunctionDeclaration": true,
"MethodDefinition": false,
"ClassDeclaration": false
}
}],
"space-before-function-paren" : [ 2, {
"anonymous": "always",
"named": "never"
}],
"keyword-spacing" : [ 2 ],
"no-lonely-if" : [ 2 ],
"space-in-parens" : [ 2, "never" ],
"space-before-blocks" : [ 2 ]
},
"env": {
"es6": true,
"node": true,
"mocha": true,
"mongo": true
},
"extends": "eslint:recommended"
}