Skip to content

Commit bc77ffb

Browse files
committed
Resolve merge conflicts from rebase on master
1 parent 2c29c6c commit bc77ffb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/rules/aria-role.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@
77
// Rule Definition
88
// ----------------------------------------------------------------------------
99

10-
import { roles } from 'aria-query';
10+
import { dom, roles } from 'aria-query';
1111
import { getLiteralPropValue, propName, elementType } from 'jsx-ast-utils';
1212
import { generateObjSchema } from '../util/schemas';
13-
import DOMElements from '../util/attributes/DOM.json';
1413

1514
const errorMessage = 'Elements with ARIA roles must use a valid, non-abstract ARIA role.';
1615

@@ -36,7 +35,9 @@ module.exports = {
3635

3736
if (ignoreNonDOM) {
3837
const type = elementType(attribute.parent);
39-
if (!DOMElements[type]) { return; }
38+
if (!dom.get(type)) {
39+
return;
40+
}
4041
}
4142

4243
// Get prop name

0 commit comments

Comments
 (0)