UNPKG

website-auditfy

Version:

> Tool for validate your project on SEO, HTML, CSS, JS, TS, Performance, Security and A11Y

20 lines 899 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NoRedundantAriaLabelRule = void 0; const html_validator_helper_1 = require("../../../linters/html-validator.helper"); class NoRedundantAriaLabelRule { constructor(dom, lightHouse, htmlValidator) { this.id = 'no-redundant-aria-label'; this.tags = ['html']; this.description = 'Disallow aria-label and label with same text content'; this.ruleUrl = 'https://html-validate.org//rules/no-redundant-aria-label.html'; this.dom = dom; this.lightHouse = lightHouse; this.htmlValidator = htmlValidator; } check() { return html_validator_helper_1.HtmlValidatorUtils.identifyRule(this.id, this.ruleFlow, this.htmlValidator); } } exports.NoRedundantAriaLabelRule = NoRedundantAriaLabelRule; //# sourceMappingURL=no-redundant-aria-label.rule.js.map