forked from JCMais/node-libcurl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
48 lines (48 loc) · 1.26 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
{
"rules": {
"no-console": 0,
"semi": [
2,
"always"
],
"valid-jsdoc": [
0,
{
"requireParamDescription": false,
"requireReturnDescription": false,
"requireReturn": false
}
],
"no-bitwise": 0,
//code style
"brace-style": [2, "1tbs", { "allowSingleLine": true }],
"camelcase" : [2, {"properties": "always"}],
"comma-spacing": [2, {"before": false, "after": true}],
"comma-style": [2, "last"],
"consistent-this": [0, "me"],
"indent": [2, 4, {"SwitchCase": 1}],
//defaults to unix
"no-unexpected-multiline": 2,
"linebreak-style": [2, "unix"],
"max-nested-callbacks": [2, 3],
"new-cap": 2,
"new-parens": 2,
"no-array-constructor": 2,
"no-lonely-if": 2,
"no-mixed-spaces-and-tabs": 2,
"no-nested-ternary": 2,
"no-new-object": 2,
"no-spaced-func": 2,
"no-trailing-spaces": [2, { "skipBlankLines": true }],
"no-unneeded-ternary": 2,
"quotes": [2, "single", "avoid-escape"],
"space-after-keywords": [2, "always"],
"space-before-blocks": [2, "always"],
"space-in-parens": [2, "always", { "exceptions": ["{}"] }],
"space-return-throw-case": 2
},
"env": {
"node": true
},
"extends": "eslint:recommended"
}