forked from onury/docma
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
64 lines (60 loc) · 1.63 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
62
63
64
{
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "module",
"ecmaFeatures": {
"globalReturn": true,
"jsx": false
}
},
"env": {
"es6": true,
"node": true,
"browser": false,
"jest": true
},
"plugins": [],
"globals": {
"document": false,
"navigator": false,
"window": false,
"google": false,
"jest": true
},
// see .eslintignore for additional config
"extends": "xo",
"rules": {
"indent": [2, 4, { "SwitchCase": 1 }],
"curly": [2, "multi-line", "consistent"],
"one-var": 0,
"no-unused-vars": 1,
"object-curly-spacing": 0,
"operator-linebreak": 0,
"padded-blocks": 0,
"no-negated-condition": 0,
"quote-props": 0,
"no-lonely-if": 0,
"no-prototype-builtins": 0,
"capitalized-comments": 0,
"no-multi-spaces": 0,
"semi": [2, "always"],
// embrace ES2015
"arrow-parens": [2, "as-needed"],
"arrow-spacing": [2, { "before": true, "after": true }],
"constructor-super": 2,
"generator-star-spacing": [2, { "before": true, "after": true }],
"no-class-assign": 2,
"no-const-assign": 2,
"no-dupe-class-members": 2,
"no-this-before-super": 2,
"no-var": 2,
"object-shorthand": 2,
"prefer-arrow-callback": 1,
"prefer-const": 2,
"prefer-spread": 2,
"prefer-reflect": 0,
// "prefer-template": 1,
"require-yield": 2,
"lines-between-class-members": 0
}
}