-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy path.eslintrc
67 lines (67 loc) · 1.51 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
{
"extends": "eslint-config-airbnb",
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"experimentalObjectRestSpread": true
}
},
"plugins": [
"prefer-object-spread"
],
"rules": {
"indent": [
1,
2,
{
"SwitchCase": 1
}
],
"keyword-spacing": [1],
"linebreak-style": [
2,
"unix"
],
"new-cap": [1],
"padded-blocks": [0],
"space-before-blocks": [
1,
"always"
],
"space-before-function-paren": [
2,
{
"anonymous": "always",
"named": "never"
}
],
"react/jsx-indent": [
2,
2
],
"react/destructuring-assignment": [0],
"max-len": [
1,
150
],
// warns when trying to use Object.assign()
"prefer-object-spread/prefer-object-spread": 2,
// TODO: remove after refactor
"import/no-cycle": [0],
"react/forbid-prop-types": [0],
"consistent-return": [0],
"no-unused-expressions": [0],
"import/no-extraneous-dependencies": [0],
"object-curly-newline": [0]
},
"globals": {
"__CLIENT__": true
},
"env": {
"browser": true,
"node": true,
"jest": true
}
}