You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** We must not assign the following events to non-interactive elements (eg img, h1, li ...) because avoid creating parts that cannot be handled with keyboards and mobile terminals. */
197
+
{
198
+
handlers: [
199
+
"onClick",
200
+
"onMouseDown",
201
+
"onMouseUp",
202
+
"onKeyPress",
203
+
"onKeyDown",
204
+
"onKeyUp",
205
+
],
206
+
},
207
+
],
208
+
"jsx-a11y/no-static-element-interactions": [
209
+
"error",
210
+
/** We must not assign the following events to static elements because avoid creating parts that cannot be handled with keyboards and mobile terminals. */
211
+
{
212
+
handlers: [
213
+
"onClick",
214
+
"onMouseDown",
215
+
"onMouseUp",
216
+
"onKeyPress",
217
+
"onKeyDown",
218
+
"onKeyUp",
219
+
],
220
+
},
221
+
],
165
222
"jsx-a11y/anchor-has-content": "error",
166
223
"jsx-a11y/anchor-is-valid": "error",
224
+
"jsx-a11y/role-supports-aria-props": "error",
167
225
"jsx-a11y/role-has-required-aria-props": "error",
168
226
"jsx-a11y/autocomplete-valid": "error",
169
-
"jsx-a11y/img-redundant-alt": [
227
+
"jsx-a11y/scope": "error",
228
+
"jsx-a11y/tabindex-no-positive": "error",
229
+
"jsx-a11y/img-redundant-alt": "error",
230
+
"jsx-a11y/no-noninteractive-tabindex": [
170
231
"error",
232
+
/** Overwrite prohibited.
233
+
* We add a whitelist to allow focus on tab panels and dialogs.
0 commit comments