Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use crate::{

fn tabindex_no_positive_diagnostic(span: Span) -> OxcDiagnostic {
OxcDiagnostic::warn("Avoid positive integer values for `tabIndex`.")
.with_help("Change the `tabIndex` prop to a non-negative value")
.with_help("Change the `tabIndex` prop to a non-positive value.")
.with_label(span)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,32 @@ source: crates/oxc_linter/src/tester.rs
1 │ <div tabIndex="1" />
· ────────────
╰────
help: Change the `tabIndex` prop to a non-negative value
help: Change the `tabIndex` prop to a non-positive value.

⚠ eslint-plugin-jsx-a11y(tabindex-no-positive): Avoid positive integer values for `tabIndex`.
╭─[tabindex_no_positive.tsx:1:6]
1 │ <div tabIndex={1} />
· ────────────
╰────
help: Change the `tabIndex` prop to a non-negative value
help: Change the `tabIndex` prop to a non-positive value.

⚠ eslint-plugin-jsx-a11y(tabindex-no-positive): Avoid positive integer values for `tabIndex`.
╭─[tabindex_no_positive.tsx:1:6]
1 │ <div tabIndex={"1"} />
· ──────────────
╰────
help: Change the `tabIndex` prop to a non-negative value
help: Change the `tabIndex` prop to a non-positive value.

⚠ eslint-plugin-jsx-a11y(tabindex-no-positive): Avoid positive integer values for `tabIndex`.
╭─[tabindex_no_positive.tsx:1:6]
1 │ <div tabIndex={`1`} />
· ──────────────
╰────
help: Change the `tabIndex` prop to a non-negative value
help: Change the `tabIndex` prop to a non-positive value.

⚠ eslint-plugin-jsx-a11y(tabindex-no-positive): Avoid positive integer values for `tabIndex`.
╭─[tabindex_no_positive.tsx:1:6]
1 │ <div tabIndex={1.589} />
· ────────────────
╰────
help: Change the `tabIndex` prop to a non-negative value
help: Change the `tabIndex` prop to a non-positive value.
Loading