-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
82 lines (82 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
{
"parser": "@babel/eslint-parser",
"extends": [
"plugin:prettier/recommended",
"eslint:recommended",
"plugin:react/recommended",
"plugin:promise/recommended",
"plugin:react-hooks/recommended"
],
"settings": {
"import/resolver": {
"node": {
"paths": ["./server", "./src"],
"extensions": [".js", ".jsx", ".json"]
}
},
"react": {
"pragma": "React",
"version": "^17.0.2"
}
},
"env": {
"browser": true,
"node": true,
"es6": true,
"jest/globals": true
},
"plugins": ["prettier", "react", "redux-saga", "react-hooks", "jest", "promise", "jsx-a11y"],
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"prettier/prettier": [
"error",
{
"arrowParens": "avoid",
"singleQuote": true,
"jsxBracketSameLine": true,
"trailingComma": "es5",
"printWidth": 120,
"semi": true,
"endOfLine": "lf"
}
],
"no-unused-vars": [
2,
{
"vars": "all",
"args": "after-used"
}
],
"no-console": 1,
"max-len": [
"error",
{
"code": 120,
"ignoreUrls": true,
"ignoreComments": true
}
],
"no-unexpected-multiline": "error",
"react/button-has-type": [
"error",
{
"button": true,
"submit": true,
"reset": true
}
],
"react/destructuring-assignment": ["error", "always"],
"react-hooks/rules-of-hooks": "error",
"react/jsx-first-prop-new-line": [2, "multiline"],
"react/prefer-stateless-function": ["error", {}],
"redux-saga/no-yield-in-race": 2,
"redux-saga/yield-effects": 2,
"require-yield": 0
}
}