-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc-react.json
37 lines (37 loc) · 1002 Bytes
/
.eslintrc-react.json
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
{
"rules": {
"@typescript-eslint/consistent-type-definitions": ["error", "type"],
"react-hooks/exhaustive-deps": "error",
"react-hooks/rules-of-hooks": "error",
"react/button-has-type": "off",
"react/display-name": "warn",
"react/jsx-props-no-spreading": "warn",
"react/jsx-boolean-value": "error",
"react/jsx-closing-bracket-location": "error",
"react/jsx-closing-tag-location": "error",
"react/jsx-curly-newline": "off",
"react/jsx-filename-extension": [
"error",
{ "extensions": [".tsx", ".jsx"] }
],
"react/jsx-indent": "off",
"react/jsx-tag-spacing": [
2,
{
"beforeSelfClosing": "always"
}
],
"react/jsx-wrap-multilines": [
2,
{
"declaration": "parens-new-line",
"assignment": "parens-new-line",
"return": "parens-new-line",
"arrow": "ignore",
"condition": "ignore",
"logical": "ignore",
"prop": "ignore"
}
]
}
}