We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 951feea commit 95c60cfCopy full SHA for 95c60cf
lib/rules/role-supports-aria-props.js
@@ -9,7 +9,10 @@ const elementRolesMap = new ObjectMap()
9
for (const [key, value] of elementRoles.entries()) {
10
// - Remove unused `constraints` key
11
delete key.constraints
12
- key.attributes = key.attributes?.filter(attribute => !('constraints' in attribute))
+ // - Remove `constraints` key within `attributes`
13
+ for (const attribute of key.attributes || []) {
14
+ delete attribute.constraints
15
+ }
16
// - Remove empty `attributes` key
17
if (!key.attributes || key.attributes?.length === 0) {
18
delete key.attributes
0 commit comments