useValidAriaProps
Este conteúdo não está disponível em sua língua ainda.
Diagnostic Category: lint/a11y/useValidAriaProps
Since: v1.0.0
Sources:
- Same as:
jsx-a11y/aria-props
Ensures that ARIA properties aria-*
are all valid.
Examples
Section titled ExamplesInvalid
Section titled Invalidcode-block.jsx:1:1 lint/a11y/useValidAriaProps FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✖ The element contains invalid ARIA attribute(s)
> 1 │ <input className="" aria-labell="" />
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2 │
ℹ aria-labell is not a valid ARIA attribute.
> 1 │ <input className="" aria-labell="" />
│ ^^^^^^^^^^^^^^
2 │
ℹ Unsafe fix: Remove the invalid aria-* attribute.
Check the list of all valid aria-* attributes.
1 │ <input·className=""·aria-labell=""·/>
│ ---------------
code-block.jsx:1:1 lint/a11y/useValidAriaProps FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✖ The element contains invalid ARIA attribute(s)
> 1 │ <div aria-lorem=“foobar” />;
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^
2 │
ℹ aria-lorem is not a valid ARIA attribute.
> 1 │ <div aria-lorem=“foobar” />;
│ ^^^^^^^^^^^^^^^^^^^
2 │
ℹ Unsafe fix: Remove the invalid aria-* attribute.
Check the list of all valid aria-* attributes.
1 │ <div·aria-lorem=“foobar”·/>;
│ --------------------