jsx-eslint / eslint-plugin-jsx-a11y

Static AST checker for a11y rules on JSX elements.
MIT License
3.38k stars 637 forks source link

[feature] suggest tabindex 0 or -1 for interactive-supports-focus #952

Open ckundo opened 1 year ago

ckundo commented 1 year ago

When interactive-supports-focus fails, the only reasonable solution is to add a tabindex of either 0 or -1.

Modify interactive-supports-focus to have hasSuggestions: true with a suggest array with 2 entries for fixing to 0 or -1.

Related to #951