forked from react-next-boilerplate/react-next-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
69 lines (69 loc) · 1.46 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
{
"parser": "babel-eslint",
"extends": ["plugin:prettier/recommended", "eslint:recommended", "plugin:react/recommended"],
"settings": {
"react": {
"pragma": "React",
"version": "*"
}
},
"env": {
"browser": true,
"node": true,
"es6": true,
"jest/globals": true
},
"plugins": ["prettier", "react", "redux-saga", "react-hooks", "jest"],
"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"],
"redux-saga/no-yield-in-race": 2,
"redux-saga/yield-effects": 2,
"require-yield": 0
}
}