--- source: crates/biome_js_analyze/tests/spec_tests.rs expression: invalid.jsx --- # Input ```jsx <>
``` # Diagnostics ``` invalid.jsx:2:3 lint/a11y/useValidAriaRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Enforce that elements with ARIA roles must use a valid, non-abstract ARIA role. 1 │ <> > 2 │
│ ^^^^^^^^^^^^^^^^^^ 3 │
4 │
i Check WAI-ARIA for valid roles or provide options accordingly. i Unsafe fix: Remove the invalid role attribute. Check the list of all valid role attributes. 2 │ ··
│ ------------ ``` ``` invalid.jsx:3:3 lint/a11y/useValidAriaRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Enforce that elements with ARIA roles must use a valid, non-abstract ARIA role. 1 │ <> 2 │
> 3 │
│ ^^^^^^^^^^^^^^^^^^^^^^^ 4 │
5 │ i Check WAI-ARIA for valid roles or provide options accordingly. i Unsafe fix: Remove the invalid role attribute. Check the list of all valid role attributes. 3 │ ·· │ ----------------- ``` ``` invalid.jsx:4:3 lint/a11y/useValidAriaRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Enforce that elements with ARIA roles must use a valid, non-abstract ARIA role. 2 │
3 │
> 4 │
│ ^^^^^^^^^^^^^ 5 │ 6 │ i Check WAI-ARIA for valid roles or provide options accordingly. i Unsafe fix: Remove the invalid role attribute. Check the list of all valid role attributes. 4 │ ·· │ ------- ``` ``` invalid.jsx:5:3 lint/a11y/useValidAriaRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Enforce that elements with ARIA roles must use a valid, non-abstract ARIA role. 3 │
4 │
> 5 │ │ ^^^^^^^^^^^^^^^^^^^^^ 6 │ 7 │
i Check WAI-ARIA for valid roles or provide options accordingly. i Unsafe fix: Remove the invalid role attribute. Check the list of all valid role attributes. 5 │ ·· │ -------------- ``` ``` invalid.jsx:6:3 lint/a11y/useValidAriaRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Enforce that elements with ARIA roles must use a valid, non-abstract ARIA role. 4 │
5 │ > 6 │ │ ^^^^^^^^^^^^^^^^^^^^^^^^^ 7 │
8 │
i Check WAI-ARIA for valid roles or provide options accordingly. i Unsafe fix: Remove the invalid role attribute. Check the list of all valid role attributes. 6 │ ·· │ ------------------ ``` ``` invalid.jsx:7:3 lint/a11y/useValidAriaRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Enforce that elements with ARIA roles must use a valid, non-abstract ARIA role. 5 │ 6 │ > 7 │
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 8 │
9 │
i Check WAI-ARIA for valid roles or provide options accordingly. i Unsafe fix: Remove the invalid role attribute. Check the list of all valid role attributes. 7 │ ·· │ ---------------------------- ``` ``` invalid.jsx:8:3 lint/a11y/useValidAriaRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Enforce that elements with ARIA roles must use a valid, non-abstract ARIA role. 6 │ 7 │
> 8 │
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 9 │
10 │
i Check WAI-ARIA for valid roles or provide options accordingly. i Unsafe fix: Remove the invalid role attribute. Check the list of all valid role attributes. 8 │ ··
│ -------------------------- ``` ``` invalid.jsx:9:3 lint/a11y/useValidAriaRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Enforce that elements with ARIA roles must use a valid, non-abstract ARIA role. 7 │
8 │
> 9 │
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 10 │
11 │ i Check WAI-ARIA for valid roles or provide options accordingly. i Unsafe fix: Remove the invalid role attribute. Check the list of all valid role attributes. 9 │ ··
│ ------------------------- ``` ``` invalid.jsx:10:3 lint/a11y/useValidAriaRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Enforce that elements with ARIA roles must use a valid, non-abstract ARIA role. 8 │
9 │
> 10 │
│ ^^^^^^^^^^^^^^^^^ 11 │ 12 │ i Check WAI-ARIA for valid roles or provide options accordingly. i Unsafe fix: Remove the invalid role attribute. Check the list of all valid role attributes. 10 │ ··
│ ----------- ``` ``` invalid.jsx:11:3 lint/a11y/useValidAriaRole FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! Enforce that elements with ARIA roles must use a valid, non-abstract ARIA role. 9 │
10 │
> 11 │ │ ^^^^^^^^^^^^^^^^^^^^^^^^^ 12 │ 13 │ i Check WAI-ARIA for valid roles or provide options accordingly. i Unsafe fix: Remove the invalid role attribute. Check the list of all valid role attributes. 11 │ ·· │ ------------------ ```