Skip to content

Commit be0c85c

Browse files
committed
chore: enable accessibility lint safeguards
1 parent c0447a0 commit be0c85c

1 file changed

Lines changed: 31 additions & 1 deletion

File tree

.oxlintrc.json

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"categories": {
44
"correctness": "error"
55
},
6-
"plugins": ["typescript", "import", "react"],
6+
"plugins": ["typescript", "import", "react", "jsx-a11y"],
77
"jsPlugins": [
88
"./oxlint-plugins/no-thrown-unawaited-redirect.mjs",
99
"./oxlint-plugins/runops-residency.mjs",
@@ -74,6 +74,36 @@
7474
"react/forward-ref-uses-ref": "error",
7575
"react/iframe-missing-sandbox": "error",
7676
"react/no-unknown-property": "error",
77+
"jsx-a11y/alt-text": "off",
78+
"jsx-a11y/aria-role": "off",
79+
"jsx-a11y/click-events-have-key-events": "off",
80+
"jsx-a11y/control-has-associated-label": "off",
81+
"jsx-a11y/label-has-associated-control": "off",
82+
"jsx-a11y/no-autofocus": "off",
83+
"jsx-a11y/no-noninteractive-element-interactions": "off",
84+
"jsx-a11y/no-static-element-interactions": "off",
85+
"jsx-a11y/prefer-tag-over-role": "off",
86+
"jsx-a11y/anchor-ambiguous-text": "error",
87+
"jsx-a11y/anchor-has-content": "error",
88+
"jsx-a11y/anchor-is-valid": "error",
89+
"jsx-a11y/aria-activedescendant-has-tabindex": "error",
90+
"jsx-a11y/aria-props": "error",
91+
"jsx-a11y/aria-proptypes": "error",
92+
"jsx-a11y/aria-unsupported-elements": "error",
93+
"jsx-a11y/autocomplete-valid": "error",
94+
"jsx-a11y/heading-has-content": "error",
95+
"jsx-a11y/html-has-lang": "error",
96+
"jsx-a11y/iframe-has-title": "error",
97+
"jsx-a11y/img-redundant-alt": "error",
98+
"jsx-a11y/media-has-caption": "error",
99+
"jsx-a11y/no-access-key": "error",
100+
"jsx-a11y/no-aria-hidden-on-focusable": "error",
101+
"jsx-a11y/no-distracting-elements": "error",
102+
"jsx-a11y/no-redundant-roles": "error",
103+
"jsx-a11y/role-has-required-aria-props": "error",
104+
"jsx-a11y/role-supports-aria-props": "error",
105+
"jsx-a11y/scope": "error",
106+
"jsx-a11y/tabindex-no-positive": "error",
77107
"no-lone-blocks": "error",
78108
"typescript/prefer-function-type": "error",
79109
"typescript/prefer-for-of": "error",

0 commit comments

Comments
 (0)