Skip to content

Commit c75ba37

Browse files
committed
fix: patch anchor-has-content rule
1 parent dab80e3 commit c75ba37

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/rules/anchor-has-content.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ 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;
3135
}
3236

3337
context.report({
@@ -37,4 +41,4 @@ module.exports = {
3741
}
3842
}, anchorRule.create(context))
3943
}
40-
}
44+
}

0 commit comments

Comments
 (0)