-
Notifications
You must be signed in to change notification settings - Fork 5
/
.eslintrc
57 lines (57 loc) · 1.13 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
{
"extends": [
"airbnb",
"airbnb/hooks",
"plugin:prettier/recommended",
"plugin:jest-dom/recommended",
"plugin:testing-library/react"
],
"env": {
"browser": true,
"jest": true
},
"parser": "@babel/eslint-parser",
"globals": {
"API_BASE_URL": false,
"TUMBLR_CLIENT_BASE_URL": false,
"page": true,
"browser": true
},
"rules": {
"react/jsx-indent": ["error", "tab"],
"react/jsx-filename-extension": "off",
"react/jsx-one-expression-per-line": "off",
"react/sort-comp": [
"error",
{
"order": ["lifecycle", "static-methods", "everything-else", "render"]
}
],
"class-methods-use-this": "off",
"no-plusplus": "off",
"react/jsx-indent-props": ["error", "tab"],
"react/jsx-props-no-spreading": "off",
"react/jsx-wrap-multilines": [
"error",
{
"prop": "ignore"
}
],
"require-yield": "off",
"react/function-component-definition": [
"error",
{
"namedComponents": "arrow-function",
"unnamedComponents": "arrow-function"
}
],
"react/require-default-props": "off"
},
"settings": {
"import/resolver": {
"webpack": {
"config": "webpack.common.js"
}
}
}
}