You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[patch] no-autofocus: don't report error if autoFocus is set to false
This change adjusts the error condition for `no-autofocus` to allow for manually disabling `autoFocus`. Now, any usage of `autoFocus="false"` or `autoFocus={false}` will not report.
[patch] `no-autofocus`: don't report error if autoFocus is set to false
This change adjusts the error condition for `no-autofocus` to allow for manually disabling `autoFocus`. Now, any usage of `autoFocus="false"` or `autoFocus={false}` will not report.
|[accessible-emoji](docs/rules/accessible-emoji.md)| Enforce emojis are wrapped in `<span>` and provide screen reader access. |||| ❌ |
@@ -263,7 +263,7 @@ To restrict polymorphic linting to specified components, additionally set `polym
263
263
|[mouse-events-have-key-events](docs/rules/mouse-events-have-key-events.md)| Enforce that `onMouseOver`/`onMouseOut` are accompanied by `onFocus`/`onBlur` for keyboard-only users. | ☑️ 🔒 ||||
264
264
|[no-access-key](docs/rules/no-access-key.md)| Enforce that the `accessKey` prop is not used on any element to avoid complications with keyboard commands used by a screen reader. | ☑️ 🔒 ||||
265
265
|[no-aria-hidden-on-focusable](docs/rules/no-aria-hidden-on-focusable.md)| Disallow `aria-hidden="true"` from being set on focusable elements. |||||
266
-
|[no-autofocus](docs/rules/no-autofocus.md)| Enforce autoFocus prop is not used. | ☑️ 🔒 ||||
266
+
|[no-autofocus](docs/rules/no-autofocus.md)| Enforce autoFocus prop is not enabled.| ☑️ 🔒 ||||
267
267
|[no-distracting-elements](docs/rules/no-distracting-elements.md)| Enforce distracting elements are not used. | ☑️ 🔒 ||||
268
268
|[no-interactive-element-to-noninteractive-role](docs/rules/no-interactive-element-to-noninteractive-role.md)| Interactive elements should not be assigned non-interactive roles. | ☑️ 🔒 ||||
269
269
|[no-noninteractive-element-interactions](docs/rules/no-noninteractive-element-interactions.md)| Non-interactive elements should not be assigned mouse or keyboard event listeners. | ☑️ 🔒 ||||
@@ -276,8 +276,8 @@ To restrict polymorphic linting to specified components, additionally set `polym
276
276
|[role-has-required-aria-props](docs/rules/role-has-required-aria-props.md)| Enforce that elements with ARIA roles must have all required attributes for that role. | ☑️ 🔒 ||||
277
277
|[role-supports-aria-props](docs/rules/role-supports-aria-props.md)| Enforce that elements with explicit or implicit roles defined contain only `aria-*` properties supported by that `role`. | ☑️ 🔒 ||||
278
278
|[scope](docs/rules/scope.md)| Enforce `scope` prop is only used on `<th>` elements. | ☑️ 🔒 ||||
279
-
|[tabindex-no-positive](docs/rules/tabindex-no-positive.md)| Enforce `tabIndex` value is not greater than zero. | ☑️ 🔒 ||||
280
-
279
+
|[tabindex-no-positive](docs/rules/tabindex-no-positive.md)| Enforce `tabIndex` value is not greater than zero. | ☑️ 🔒 ||||
280
+
281
281
<!-- end auto-generated rules list -->
282
282
283
283
The following rules have extra options when in _recommended_ mode:
Copy file name to clipboardExpand all lines: docs/rules/no-autofocus.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
5
5
<!-- end auto-generated rule header -->
6
6
7
-
Enforce that autoFocus prop is not used on elements. Autofocusing elements can cause usability issues for sighted and non-sighted users, alike.
7
+
Enforce that `autoFocus` prop is either not set at all on elements or is only set to `false`. Auto-focusing elements can cause usability issues for sighted and non-sighted users, alike.
8
8
9
9
## Rule options
10
10
@@ -25,13 +25,13 @@ For the `ignoreNonDOM` option, this determines if developer created components a
0 commit comments