What version of Oxlint are you using?
latest
What command did you run?
No response
What does your .oxlintrc.json (or oxlint.config.ts) config file look like?
No response
What happened?
The rule fires on autoFocus={false} and autoFocus="false", but this is a false positive. Setting autoFocus={false} explicitly disables autofocus and should be treated as valid.
Reproduction
refer to playground
Notes
The upstream eslint-plugin-jsx-a11y main branch has already fixed this (commit 91e39b4), and the test suite includes <div autoFocus={false} /> as a valid case. However, the fix has not yet been included in a released version (latest: v6.10.2).
References
What version of Oxlint are you using?
latest
What command did you run?
No response
What does your
.oxlintrc.json(oroxlint.config.ts) config file look like?No response
What happened?
The rule fires on
autoFocus={false}andautoFocus="false", but this is a false positive. SettingautoFocus={false}explicitly disables autofocus and should be treated as valid.Reproduction
refer to playground
Notes
The upstream
eslint-plugin-jsx-a11ymainbranch has already fixed this (commit91e39b4), and the test suite includes<div autoFocus={false} />as a valid case. However, the fix has not yet been included in a released version (latest: v6.10.2).References