This repository has been archived by the owner on Nov 26, 2023. It is now read-only.
/
.eslintrc
170 lines (170 loc) · 4.21 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
{
"extends": [
"eslint:recommended",
"plugin:import/recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"airbnb",
"airbnb/hooks",
"prettier"
],
"globals": {
"tomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"plugins": [
"prettier",
"clean-regex"
],
"rules": {
"prettier/prettier": [
0,
{
"semi": true,
"singleQuote": true,
"trailingComma": "es5",
"printWidth": 100,
"tabWidth": 2,
"arrowParens": "avoid",
"jsxSingleQuote": false,
"jsxBracketSameLine": true
}
],
"semi": 0,
"eqeqeq": [
1,
"always"
],
"quotes": [
1,
"single"
],
"jsx-quotes": [
2,
"prefer-double"
],
"no-undef": 0,
"no-console": "off",
"no-unused-vars": 2,
"no-mixed-operators": [
1,
{
"allowSamePrecedence": true
}
],
"no-confusing-arrow": 0,
"class-methods-use-this": "off",
"arrow-parens": [
2,
"as-needed"
],
"arrow-spacing": [
"error",
{
"before": true,
"after": true
}
],
"arrow-body-style": [
2,
"as-needed"
],
"no-extra-parens": [
2,
"functions"
],
"no-param-reassign": 0,
"prefer-template": 0,
"no-script-url": 0,
"prefer-promise-reject-errors": 0,
"no-unused-expressions": 0,
"jsx-a11y/label-has-associated-control": "off",
"import/prefer-default-export": 0,
"@typescript-eslint/explicit-module-boundary-types": "off",
"import/no-useless-path-segments": 1,
"import/no-unresolved": 0,
"import/no-extraneous-dependencies": 0,
"import/no-named-as-default": 0,
"import/no-duplicates": 0,
"import/order": 0,
"import/newline-after-import": 1,
"import/no-named-as-default-member": 0,
"import/namespace": 0,
"import/named": 0,
"jsx-a11y/anchor-is-valid": 0,
"jsx-a11y/click-events-have-key-events": 0,
"jsx-a11y/no-static-element-interactions": 0,
"jsx-a11y/iframe-has-title": 0,
"jsx-a11y/label-has-for": "off",
"typescript-eslint/ban-types": 0,
"eol-last": 0,
"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"
}
],
"react/jsx-filename-extension": 0,
"react/jsx-indent": 0,
"react/jsx-boolean-value": 0,
"react/jsx-closing-tag-location": 0,
"react/jsx-closing-bracket-location": [
2,
{
"selfClosing": "props-aligned",
"nonEmpty": "after-props"
},
],
"react/prop-types": 0,
"react/button-has-type": 0,
"react/jsx-tag-spacing": [
2,
{
"beforeSelfClosing": "always"
}
],
"react/jsx-one-expression-per-line": 0,
"react/jsx-curly-spacing": 0,
"react/no-access-state-in-setstate": 0,
"react/destructuring-assignment": 0,
"react/jsx-no-bind": 0,
"react/require-default-props": 0,
"react/display-name": 0,
"global-require": "off",
"react/jsx-first-prop-new-line": 0,
"react/jsx-props-no-spreading": 0,
"react/static-property-placement": 0,
"react/state-in-constructor": 0,
"react/react-in-jsx-scope": 0,
"@typescript-eslint/indent": 0,
"@typescript-eslint/camelcase": 0,
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/no-non-null-assertion": 0,
"@typescript-eslint/member-delimiter-style": 0,
"@typescript-eslint/no-unused-vars": 0,
"@typescript-eslint/no-use-before-define": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/explicit-member-accessibility": 0,
"@typescript-eslint/no-angle-bracket-type-assertion": 0,
"react-hooks/rules-of-hooks": 1,
"react-hooks/exhaustive-deps": 1,
"import/extensions": [
0,
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
],
"clean-regex/rule-name": "off"
}
}