website-auditfy
Version:
> Tool for validate your project on SEO, HTML, CSS, JS, TS, Performance, Security and A11Y
20 lines • 827 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ElementCaseRule = void 0;
const html_validator_helper_1 = require("../../../linters/html-validator.helper");
class ElementCaseRule {
constructor(dom, lightHouse, htmlValidator) {
this.id = 'element-case';
this.tags = ['style', 'html'];
this.description = 'Require a specific case for element names';
this.ruleUrl = 'https://html-validate.org/rules/element-case.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.ElementCaseRule = ElementCaseRule;
//# sourceMappingURL=element-case.rule.js.map