Enable some oxlint a11y rules & improve keyboard accessibility (#34291)

* Conform to oxlint rule jsx-a11y/role-has-required-aria-props

* Conform to oxlint rule jsx-a11y/role-supports-aria-props

* Conform to oxlint rule jsx-a11y/interactive-supports-focus

* Conform to oxlint rule jsx-a11y/click-events-have-key-events

* Update snapshots
This commit is contained in:
Michael Telatynski
2026-07-16 17:29:49 +00:00
committed by GitHub
parent 40137cdc54
commit b9972b7e9e
49 changed files with 215 additions and 162 deletions
+6 -6
View File
@@ -163,18 +163,14 @@ export default defineConfig({
"react-perf/jsx-no-new-array-as-prop": "off",
"react/no-did-update-set-state": "off",
"react/no-did-mount-set-state": "off",
"jsx-a11y/interactive-supports-focus": "off",
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/click-events-have-key-events": "off",
"vitest/no-conditional-tests": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off",
"react/no-array-index-key": "off",
"jsx-a11y/control-has-associated-label": "off",
"jsx-a11y/role-supports-aria-props": "off",
"jsx-a11y/media-has-caption": "off",
"jsx-a11y/no-noninteractive-element-to-interactive-role": "off",
"jsx-a11y/aria-activedescendant-has-tabindex": "off",
"jsx-a11y/role-has-required-aria-props": "off",
},
overrides: [
{
@@ -417,13 +413,17 @@ export default defineConfig({
],
"jsdoc/check-tag-names": "off",
"react/jsx-no-constructed-context-values": "off",
// Disable a11y rules for components in tests
"jsx-a11y/role-has-required-aria-props": "off",
"jsx-a11y/interactive-supports-focus": "off",
"jsx-a11y/no-static-element-interactions": "off",
"react/no-array-index-key": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/media-has-caption": "off",
"jsx-a11y/no-noninteractive-element-to-interactive-role": "off",
"jsx-a11y/role-supports-aria-props": "off",
"react/jsx-no-constructed-context-values": "off",
"react/no-array-index-key": "off",
"react/forbid-elements": "off",
// This would be good to enable in the future
"typescript/await-thenable": "off",