Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a18642a

Browse files
authored
chore(site/.oxlintrc.jsonc): enable oxlint anchor-ambiguous-text rule (#29191)
Enables the `anchor-ambiguous-text` oxlint rule (jsx-a11y), moving it out of the migration backlog and setting it to `error`. The codebase already has zero violations, so no code changes were needed. Verified with `oxlint --deny-warnings` (0 warnings, 0 errors) and confirmed the rule is active by testing it against a known-bad `<a>click here</a>` sample. Per request, the corresponding Biome rule (`a11y/noAmbiguousAnchorText`) is intentionally left enabled for now so both linters double-check this. --- _This PR was generated by Coder Agents on behalf of @jeremyruppel._
1 parent e6c2ebf commit a18642a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

site/.oxlintrc.jsonc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"role-has-required-aria-props": "error",
2424
"alt-text": "error",
2525
"anchor-has-content": "error",
26+
"anchor-ambiguous-text": "error",
2627
"heading-has-content": "error",
2728
"aria-activedescendant-has-tabindex": "error",
2829
"mouse-events-have-key-events": "error",
@@ -205,7 +206,6 @@
205206
"no-inferrable-types": "off", // style/noInferrableTypes (medium, coder error rule)
206207
"consistent-type-imports": "off", // style/useImportType (medium)
207208
"jsx-curly-brace-presence": "off", // style/useConsistentCurlyBraces (medium, coder error rule)
208-
"anchor-ambiguous-text": "off", // a11y/noAmbiguousAnchorText (medium)
209209
"no-fallthrough": "off", // suspicious/noFallthroughSwitchClause (medium)
210210
"role-supports-aria-props": "off", // a11y/useAriaPropsSupportedByRole (small)
211211
"click-events-have-key-events": "off", // a11y/useKeyWithClickEvents (small)

0 commit comments

Comments
 (0)