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.
Hi @ljharb and @JoshuaKGoldberg
Thank you for this new feature, it's very useful! Could you, please, release a new version so I can update my dependencies and use this feature?
2 commit comments
Julia1996 commentedon May 14, 2022
Hi @ljharb and @JoshuaKGoldberg
Thank you for this new feature, it's very useful! Could you, please, release a new version so I can update my dependencies and use this feature?
ljharb commentedon May 18, 2022
@Julia1996 theres no timeline for a release, but I’ll try to cut one in the near future.