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
Copy file name to clipboardExpand all lines: docs/rules/aria-role.md
+3
Original file line number
Diff line number
Diff line change
@@ -10,12 +10,15 @@ This rule takes one optional object argument of type object:
10
10
{
11
11
"rules": {
12
12
"jsx-a11y/aria-role": [ 2, {
13
+
"allowedInvalidRoles": ["text"],
13
14
"ignoreNonDOM": true
14
15
}],
15
16
}
16
17
}
17
18
```
18
19
20
+
`allowedInvalidRules` is an optional string array of custom roles that should be allowed in addition to the ARIA spec, such as for cases when you [need to use a non-standard role](https://axesslab.com/text-splitting).
21
+
19
22
For the `ignoreNonDOM` option, this determines if developer created components are checked.
0 commit comments