-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc
47 lines (47 loc) · 1.05 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
{
"parser": "babel-eslint",
"env": {
"browser": true,
"es6": true,
"node": true,
"jest": true
},
"globals": {
"mockAdapter": true,
"mockStore": true
},
"settings": {
"import/resolver": {
"node": {
"moduleDirectory": ["node_modules", "src/"]
}
}
},
"extends": ["react-app", "airbnb"],
"rules": {
"no-console": "warn",
"function-paren-newline": "off",
"react/jsx-props-no-spreading": "off",
"no-useless-rename": ["error", {
"ignoreDestructuring": true,
"ignoreImport": false,
"ignoreExport": false
}],
"object-curly-newline": ["error", { "consistent": true }],
"react/jsx-filename-extension": "off",
"arrow-parens": [2, "as-needed", { "requireForBlockBody": true }],
"max-len": [
"error",
120,
2,
{
"ignoreComments": true,
"ignoreRegExpLiterals": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
"ignoreTrailingComments": true,
"ignoreUrls": true
}
]
}
}