-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
122 lines (122 loc) · 2.66 KB
/
.eslintrc.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
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
{
"extends": [
"react-app",
"eslint:recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:jsx-a11y/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript"
],
"plugins": [
"react"
],
"rules": {
"arrow-parens": 1,
"arrow-spacing": 1,
"block-spacing": 1,
"comma-dangle": [
1,
{
"arrays": "always-multiline",
"objects": "always-multiline"
}
],
"comma-spacing": [
1,
{
"before": false,
"after": true
}
],
"default-case": 1,
"eol-last": 1,
"indent": [
1,
4,
{
"SwitchCase": 1
}
],
"jsx-quotes": [
1,
"prefer-double"
],
"linebreak-style": [
0
],
"object-curly-spacing": [
1,
"always"
],
"semi": 1,
"no-trailing-spaces": [
1
],
"no-unused-vars": 0,
"react/jsx-curly-spacing": [
1,
{
"when": "always",
"children": true,
"allowMultiline": true,
"spacing": {
"objectLiterals": "always"
}
}
],
"react/destructuring-assignment": [
2,
"always"
],
"react/jsx-indent": [
1,
4,
{
"checkAttributes": true,
"indentLogicalExpressions": true
}
],
"react/jsx-indent-props": [
1,
4
],
"react/jsx-tag-spacing": [
1,
{
"beforeSelfClosing": "always"
}
],
"react/jsx-wrap-multilines": [
1,
{
"declaration": "parens-new-line",
"assignment": "parens-new-line",
"return": "parens-new-line"
}
],
"jsx-a11y/no-onchange": [
0
],
"jsx-a11y/no-autofocus": [
0
]
},
"settings": {
"import/resolver": {
"node": {
"paths": [
"src"
]
}
}
},
"globals": {
"Style": "writable",
"JSX": "writable",
"ErrorState": "writable",
"Id": "writable",
"IdAndName": "writable"
}
}