-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
43 lines (43 loc) · 1016 Bytes
/
.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
{
"extends": [
"airbnb",
"react-app",
"prettier",
"prettier/flowtype",
"prettier/react"
],
"rules": {
"react/jsx-filename-extension": [1, {"extensions": [".js", ".jsx"]}],
"import/prefer-default-export": 0,
"object-curly-spacing": "off",
"arrow-body-style": ["warn", "as-needed"],
"prettier/prettier": ["warn"],
"react/destructuring-assignment": "off",
"fp/no-delete": "warn",
"fp/no-mutating-assign": "warn",
"react/jsx-props-no-spreading": "off",
"react/forbid-prop-types": "off",
"fp/no-mutating-methods": [
"warn",
{
"allowedObjects": ["_", "R"]
}
],
"fp/no-mutation": [
"warn",
{
"commonjs": true,
"allowThis": true,
"exceptions": [{"property": "propTypes"}, {"property": "defaultProps"}]
}
]
},
"plugins": ["prettier", "fp"],
"settings": {
"import/resolver": {
"node": {
"moduleDirectory": ["node_modules", "./src"]
}
}
}
}