--- source: crates/biome_js_analyze/tests/spec_tests.rs expression: invalid.jsx --- # Input ```jsx <>
foo
foo
foo
foo
foo
foo
``` # Diagnostics ``` invalid.jsx:2:16 lint/a11y/noPositiveTabindex FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Avoid positive values for the tabIndex prop. 1 │ <> > 2 │
│ ^^^ 3 │
4 │
i Elements with a positive tabIndex override natural page content order. This causes elements without a positive tab index to come last when navigating using a keyboard. i Use only 0 and -1 as tabIndex values. Avoid using tabIndex values greater than 0 and CSS properties that can change the order of focusable HTML elements. i Unsafe fix: Replace the tableIndex prop value with 0. 1 1 │ <> 2 │ - → 2 │ + → 3 3 │
4 4 │
``` ``` invalid.jsx:3:16 lint/a11y/noPositiveTabindex FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Avoid positive values for the tabIndex prop. 1 │ <> 2 │
> 3 │
│ ^^^^^ 4 │
5 │
i Elements with a positive tabIndex override natural page content order. This causes elements without a positive tab index to come last when navigating using a keyboard. i Use only 0 and -1 as tabIndex values. Avoid using tabIndex values greater than 0 and CSS properties that can change the order of focusable HTML elements. i Unsafe fix: Replace the tableIndex prop value with 0. 1 1 │ <> 2 2 │
3 │ - → 3 │ + → 4 4 │
5 5 │
``` ``` invalid.jsx:4:16 lint/a11y/noPositiveTabindex FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Avoid positive values for the tabIndex prop. 2 │
3 │
> 4 │
│ ^^^^^ 5 │
6 │
foo
i Elements with a positive tabIndex override natural page content order. This causes elements without a positive tab index to come last when navigating using a keyboard. i Use only 0 and -1 as tabIndex values. Avoid using tabIndex values greater than 0 and CSS properties that can change the order of focusable HTML elements. i Unsafe fix: Replace the tableIndex prop value with 0. 2 2 │
3 3 │
4 │ - → 4 │ + → 5 5 │
6 6 │
foo
``` ``` invalid.jsx:5:16 lint/a11y/noPositiveTabindex FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Avoid positive values for the tabIndex prop. 3 │
4 │
> 5 │
│ ^^^ 6 │
foo
7 │
foo
i Elements with a positive tabIndex override natural page content order. This causes elements without a positive tab index to come last when navigating using a keyboard. i Use only 0 and -1 as tabIndex values. Avoid using tabIndex values greater than 0 and CSS properties that can change the order of focusable HTML elements. i Unsafe fix: Replace the tableIndex prop value with 0. 3 3 │
4 4 │
5 │ - → 5 │ + → 6 6 │
foo
7 7 │
foo
``` ``` invalid.jsx:6:16 lint/a11y/noPositiveTabindex FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Avoid positive values for the tabIndex prop. 4 │
5 │
> 6 │
foo
│ ^^^ 7 │
foo
8 │
foo
i Elements with a positive tabIndex override natural page content order. This causes elements without a positive tab index to come last when navigating using a keyboard. i Use only 0 and -1 as tabIndex values. Avoid using tabIndex values greater than 0 and CSS properties that can change the order of focusable HTML elements. i Unsafe fix: Replace the tableIndex prop value with 0. 4 4 │
5 5 │
6 │ - → foo
6 │ + → foo
7 7 │
foo
8 8 │
foo
``` ``` invalid.jsx:7:16 lint/a11y/noPositiveTabindex FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Avoid positive values for the tabIndex prop. 5 │
6 │
foo
> 7 │
foo
│ ^^^^^ 8 │
foo
9 │
foo
i Elements with a positive tabIndex override natural page content order. This causes elements without a positive tab index to come last when navigating using a keyboard. i Use only 0 and -1 as tabIndex values. Avoid using tabIndex values greater than 0 and CSS properties that can change the order of focusable HTML elements. i Unsafe fix: Replace the tableIndex prop value with 0. 5 5 │
6 6 │
foo
7 │ - → foo
7 │ + → foo
8 8 │
foo
9 9 │
foo
``` ``` invalid.jsx:8:16 lint/a11y/noPositiveTabindex FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Avoid positive values for the tabIndex prop. 6 │
foo
7 │
foo
> 8 │
foo
│ ^^^^^ 9 │
foo
10 │
foo
i Elements with a positive tabIndex override natural page content order. This causes elements without a positive tab index to come last when navigating using a keyboard. i Use only 0 and -1 as tabIndex values. Avoid using tabIndex values greater than 0 and CSS properties that can change the order of focusable HTML elements. i Unsafe fix: Replace the tableIndex prop value with 0. 6 6 │
foo
7 7 │
foo
8 │ - → foo
8 │ + → foo
9 9 │
foo
10 10 │
foo
``` ``` invalid.jsx:9:16 lint/a11y/noPositiveTabindex FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Avoid positive values for the tabIndex prop. 7 │
foo
8 │
foo
> 9 │
foo
│ ^^^^ 10 │
foo
11 │
foo
i Elements with a positive tabIndex override natural page content order. This causes elements without a positive tab index to come last when navigating using a keyboard. i Use only 0 and -1 as tabIndex values. Avoid using tabIndex values greater than 0 and CSS properties that can change the order of focusable HTML elements. i Unsafe fix: Replace the tableIndex prop value with 0. 7 7 │
foo
8 8 │
foo
9 │ - → foo
9 │ + → foo
10 10 │
foo
11 11 │
foo
``` ``` invalid.jsx:11:16 lint/a11y/noPositiveTabindex FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Avoid positive values for the tabIndex prop. 9 │
foo
10 │
foo
> 11 │
foo
│ ^^^ 12 │ 13 │ i Elements with a positive tabIndex override natural page content order. This causes elements without a positive tab index to come last when navigating using a keyboard. i Use only 0 and -1 as tabIndex values. Avoid using tabIndex values greater than 0 and CSS properties that can change the order of focusable HTML elements. i Unsafe fix: Replace the tableIndex prop value with 0. 9 9 │
foo
10 10 │
foo
11 │ - → foo
11 │ + → foo
12 12 │ 13 13 │ ```