-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
52 lines (39 loc) · 1.34 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
{
"env": {
"browser": true,
"es6": true,
"node": true,
"mocha": true,
"jest": true
},
"extends": ["eslint:recommended", "plugin:react/recommended"],
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module",
"allowImportExportEverywhere": true
},
"plugins": [
"react"
],
"rules": {
"indent": [ 2, 4 ],
"space-in-parens": [ 2, "always" ],
"template-curly-spacing": [ 2, "always" ],
"array-bracket-spacing": [ 2, "always" ],
"object-curly-spacing": [ 2, "always" ],
"computed-property-spacing": [ 2, "always" ],
"no-multiple-empty-lines": [ 2, { "max": 1, "maxEOF": 0, "maxBOF": 0 } ],
"arrow-spacing": [2, { "before": true, "after": true }],
"key-spacing": [2, { "beforeColon": false, "afterColon": true }],
"keyword-spacing": [2, { "before": true, "after": true }],
"space-infix-ops": [2, {"int32Hint": false}],
"no-multi-spaces": [2],
"no-console": "error",
"semi": [2, "always"],
"semi-style": [2, "last"],
"quotes": [ 2, "single", "avoid-escape" ],
"no-use-before-define": [ 2, { "functions": false } ],
"prefer-const": 1,
"complexity": [ 1, 5 ]
}
}