mirror of
https://github.com/desktop/desktop
synced 2024-08-27 20:21:10 +00:00
Remove autofocus warning
This commit is contained in:
parent
0de2697b5d
commit
88a2a3cd9f
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue