-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
75 lines (70 loc) · 1.59 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
{
"parser": "babel-eslint",
"extends": ["airbnb", "prettier"],
"env": {
"browser": true,
"node": true,
"es6": true
},
"plugins": ["react", "filenames", "prettier"],
"globals": {
"gon": true,
"__CLIENT__": true,
"__SERVER__": true
},
"settings": {
"import/extensions": [".js", ".jsx"]
},
"rules": {
"prettier/prettier": [
2,
{
"singleQuote": true,
"trailingComma": "all",
"printWidth": 128
}
],
"max-len": [
2,
{
"code": 120,
"tabWidth": 4,
"ignoreUrls": true
}
],
"no-param-reassign": [
"error",
{ "props": true, "ignorePropertyModificationsFor": ["state"] }
],
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"import/no-unresolved": ["off"],
"import/no-absolute-path": ["off"],
"import/order": ["off"],
"import/no-duplicates": ["off"],
"import/no-extraneous-dependencies": ["off"],
"import/first": ["off"],
"import/no-named-as-default-member": ["off"],
"import/no-named-as-default": ["off"],
"import/prefer-default-export": ["off"],
"import/extensions": ["off"],
"react/no-array-index-key": ["off"],
"filenames/match-exported": 2,
"react/prop-types": [
2,
{
"ignore": [
"classes",
"match",
"dictionaries",
"errors",
"history",
"children",
"location"
]
}
],
"no-debugger": 0,
"react/destructuring-assignment": 0,
"react/static-property-placement": 0
}
}