github / eslint-plugin-github

An opinionated collection of ESLint rules used by GitHub.
MIT License
286 stars 51 forks source link

Update react.js to turn `jsx-a11y/no-autofocus` off #442

Closed khiga8 closed 1 year ago

khiga8 commented 1 year ago

This is a follow-up to Staff-only issue.

There are legitimate uses of autofocus. While autofocus can easily be misused, we want to rely on other tools like an axe rule to surface those issues rather than code linting. This PR makes it so we turn the jsx-a11y/no-autofocus rule which is on as part of the recommended rulesets, off by default.

accessibility-bot commented 1 year ago

:wave: Hello and thanks for pinging us! You've entered our first responder queue. An accessibility first responder will review this soon.

dgreif commented 1 year ago

I've published v4.8.0 with this change. @khiga8 do you mind bumping the dependency in github/github?