website-auditfy
Version:
> Tool for validate your project on SEO, HTML, CSS, JS, TS, Performance, Security and A11Y
20 lines • 818 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.NoUtf8BomRule = void 0;
const html_validator_helper_1 = require("../../../linters/html-validator.helper");
class NoUtf8BomRule {
constructor(dom, lightHouse, htmlValidator) {
this.id = 'no-utf8-bom';
this.tags = ['document', 'html'];
this.description = 'Disallow documents from having UTF-8 BOM';
this.ruleUrl = 'https://html-validate.org/rules/no-utf8-bom.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.NoUtf8BomRule = NoUtf8BomRule;
//# sourceMappingURL=no-utf8-bom.rule.js.map