Remove autofocus warning

This commit is contained in:
tidy-dev 2023-07-07 14:06:02 -04:00
parent 0de2697b5d
commit 88a2a3cd9f

View file

@ -189,21 +189,6 @@ rules:
- selector: ExportDefaultDeclaration
message: Use of default exports is forbidden
###########
# jsx-a11y #
###########
# autofocus is fine when it is being used to set focus to something in a way
# that doesn't skip any context or inputs. For example, in a named dialog, if you had
# a close button, a heading reflecting the name, and a labelled text input,
# focusing the text input wouldn't disadvantage a user because they're not
# missing anything of importance before it. The problem is when it is used on
# larger web pages, e.g. to focus a form field in the main content, entirely
# skipping the header and often much else besides.
jsx-a11y/no-autofocus:
- warn
- ignoreNonDOM: true
overrides:
- files: '*.d.ts'
rules: