This repository has been archived by the owner on Jul 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc
106 lines (106 loc) · 2.29 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
{
"plugins": ["jsx-a11y", "react-hooks", "prettier"],
"parser": "@babel/eslint-parser",
"extends": ["airbnb", "prettier", "plugin:jsx-a11y/recommended"],
"env": {
"browser": true,
"es6": true
},
"rules": {
"prettier/prettier": "error",
"eol-last": ["error", "always"],
"curly": ["error", "multi-line"],
"padding-line-between-statements": [
"error",
{
"blankLine": "always",
"prev": "*",
"next": "return"
},
{
"blankLine": "always",
"prev": "*",
"next": "if"
},
{
"blankLine": "always",
"prev": "if",
"next": "*"
},
{
"blankLine": "always",
"prev": ["const", "let", "var"],
"next": "*"
},
{
"blankLine": "any",
"prev": ["const", "let", "var"],
"next": ["const", "let", "var"]
}
],
"no-param-reassign": [
"error",
{
"props": true,
"ignorePropertyModificationsFor": [
"memo",
"element",
"key",
"req",
"acc",
"result"
]
}
],
"id-length": [
"error",
{
"exceptions": ["_", "x", "y"]
}
],
"no-use-before-define": ["error", "nofunc"],
"no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}
],
"react/jsx-wrap-multilines": 0,
"react/jsx-filename-extension": 0,
"react/jsx-one-expression-per-line": 0,
"react/static-property-placement": 0,
"react/jsx-props-no-spreading": "off",
"react/state-in-constructor": "off",
"import/no-extraneous-dependencies": 0,
"import/no-unresolved": [
2,
{
"ignore": ["root/"]
}
],
"import/extensions": "off",
"jsx-a11y/anchor-is-valid": [
"error",
{
"components": ["Link"],
"specialLink": ["to"]
}
],
"jsx-a11y/href-no-hash": "off",
"jsx-a11y/label-has-for": [
2,
{
"required": {
"some": ["nesting", "id"]
}
}
],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"react/function-component-definition": [
2,
{ "namedComponents": "function-declaration" }
]
}
}