forked from juwain/codeguide
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
45 lines (42 loc) · 1.12 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
{
"extends": "eslint:recommended",
"env": {
"browser": true,
"es6": true,
"node": true
},
"ecmaFeatures": {
"modules": true
},
"rules": {
"arrow-parens": 2,
"arrow-spacing": [2, {"before": true, "after": true}],
"brace-style": [1, "1tbs"],
"callback-return": [2, ["callback", "cb", "fn", "next"]],
"comma-style": [1, "last"],
"computed-property-spacing": [2, "never"],
"eqeqeq": 2,
"indent": [2, 2, {"SwitchCase": 1}],
"linebreak-style": [2, "unix"],
"no-class-assign": 2,
"no-console": 0,
"no-const-assign": 2,
"no-inner-declarations": [2, "both"],
"no-useless-call": 2,
"no-var": 2,
"object-curly-spacing": [2, "never"],
"one-var": [2, "never"],
"operator-assignment": [2, "never"],
"operator-linebreak": [2, "after"],
"prefer-spread": 2,
"quotes": [2, "single"],
"semi": [2, "always"],
"space-after-keywords": 1,
"space-before-blocks": 1,
"space-before-function-paren": [1, "never"],
"space-in-parens": 1,
"space-infix-ops": 1,
"space-return-throw-case": 1,
"wrap-iife": [2, "inside"]
}
}