-
Notifications
You must be signed in to change notification settings - Fork 5
/
.eslintrc
76 lines (76 loc) · 1.47 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
{
"extends": [
"eslint:recommended",
"google"
],
"plugins": [
"babel",
"import"
],
"env": {
"node": true,
"jest": true,
"es6": true
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 9,
"sourceType": "module",
"ecmaFeatures": {
"globalReturn": true,
"impliedStrict": true
}
},
"rules": {
"indent": [
"error",
2,
{
"SwitchCase": 1
}
],
"no-return-await": "error",
"import/no-commonjs": 2,
"import/no-duplicates": 2,
"import/newline-after-import": 1,
"lines-between-class-members": 2,
"no-multiple-empty-lines": [
"error",
{
"max": 2,
"maxEOF": 1
}
],
"lines-around-comment": [
"error",
{
"beforeBlockComment": true,
"allowBlockStart": true,
"allowArrayStart": true,
"allowArrayEnd": true,
"allowObjectStart": true,
"allowObjectEnd": true
}
],
"quote-props": [
"error",
"consistent-as-needed"
],
"no-await-in-loop": "error",
"object-shorthand": ["error", "properties"],
"prefer-const": "error",
"max-len": [
"error",
{
"code": 100,
"ignoreComments": true,
"ignoreUrls": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
"ignoreRegExpLiterals": true
}
],
"no-invalid-this": "off",
"babel/no-invalid-this": "error"
}
}