Skip to content

Commit c3a2bfa

Browse files
committed
fix: patch hasAccessibleChild
1 parent c75ba37 commit c3a2bfa

File tree

3 files changed

+1
-7
lines changed

3 files changed

+1
-7
lines changed

lib/rules/anchor-has-content.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@ module.exports = {
2828
return;
2929
} else if (utils.hasAccessibleChild(parent)) {
3030
return;
31-
} else if (utils.getDirective(parent, 'text')) {
32-
return;
33-
} else if (utils.getDirective(parent, 'html')) {
34-
return;
3531
}
3632

3733
context.report({

lib/rules/heading-has-content.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ module.exports = {
3434
return;
3535
} else if (utils.hasAccessibleChild(node)) {
3636
return;
37-
} else if (utils.getDirective(node, 'text')) {
38-
return;
3937
}
4038

4139
context.report({

lib/utils/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ module.exports = {
9393
hasAnyDirective (node, keyArray) {
9494
assert(node && node.type === 'VElement');
9595
return keyArray.some((key) => {
96-
return utils.getDirective(node, key);
96+
return this.getDirective(node, key);
9797
});
9898
},
9999
hasAnyEvent (node, events) {

0 commit comments

Comments
 (0)