-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
84 lines (84 loc) · 1.77 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
77
78
79
80
81
82
83
84
{
"parser": "babel-eslint",
"extends": "airbnb",
"env": {
"browser": true,
"mocha": true,
"node": true
},
"rules": {
"arrow-parens": [
"off"
],
"consistent-return": "off",
"comma-dangle": "off",
"generator-star-spacing": "off",
"import/no-unresolved": [
"error",
{
"ignore": [
"electron"
]
}
],
"import/no-extraneous-dependencies": "off",
"no-console": "off",
"no-plusplus": [
"error",
{
"allowForLoopAfterthoughts": true
}
],
"no-underscore-dangle": "off",
"no-use-before-define": "off",
"max-len": [
"error",
120
],
"promise/param-names": 2,
"promise/always-return": 2,
"promise/catch-or-return": 2,
"promise/no-native": 0,
"react/jsx-no-bind": "off",
"react/forbid-prop-types": 0,
"react/no-did-mount-set-state": 2,
"react/jsx-closing-bracket-location": 0,
"react/jsx-filename-extension": [
"error",
{
"extensions": [
".js",
".jsx"
]
}
],
"react/prefer-stateless-function": "off",
"flowtype-errors/show-errors": 2,
"no-else-return": 0,
"no-param-reassign": 0,
"jsx-a11y/no-static-element-interactions": off,
"react/no-danger": off,
"react/jsx-space-before-closing": "off", /* replaced by react/jsx-tag-spacing */
"react/jsx-tag-spacing": [
"error",
{
"closingSlash": "never",
"beforeSelfClosing": "always",
"afterOpening": "allow-multiline"
}
]
},
"plugins": [
"flowtype-errors",
"import",
"promise",
"react"
],
"settings": {
"import/resolver": {
"webpack": {
"config": "webpack.config.eslint.js"
}
}
}
}