-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
31 lines (31 loc) · 1.57 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
{
"env": {
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"sourceType": "script"
},
"rules": {
"brace-style" : [ "warn", "1tbs"],
"comma-dangle" : [ "warn", "never" ],
"comma-spacing" : [ "warn" ],
"func-call-spacing" : [ "warn" ],
"indent" : [ "warn", 4, { "SwitchCase": 1 }],
"keyword-spacing" : [ "warn" ],
"linebreak-style" : [ "warn", "unix" ],
"no-console" : [ "off" ],
"no-debugger" : [ "warn" ],
"no-shadow" : [ "warn", { "builtInGlobals": true, "hoist": "all", "allow": ["resolve", "reject", "done"] } ],
"no-unused-vars" : [ "warn", { "args": "none" }],
"no-whitespace-before-property" : [ "warn" ],
"object-curly-spacing" : [ "warn", "always", { "arraysInObjects": false, "objectsInObjects": false }],
"semi" : [ "warn", "always" ],
"semi-spacing" : [ "warn", { "before": false, "after": true }],
"sort-vars" : [ "warn", { "ignoreCase": true }],
"space-before-blocks" : [ "warn", "always" ],
"space-before-function-paren" : [ "warn", "never" ],
"space-infix-ops" : [ "warn", { "int32Hint": false }],
"space-unary-ops" : [ "warn", { "words": true, "nonwords": false }]
}
}