UNPKG

website-auditfy

Version:

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

20 lines 833 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AttrPatternRule = void 0; const html_validator_helper_1 = require("../../../linters/html-validator.helper"); class AttrPatternRule { constructor(dom, lightHouse, htmlValidator) { this.id = 'attr-pattern'; this.tags = ['style', 'html']; this.description = 'Require attributes to match configured patterns'; this.ruleUrl = 'https://html-validate.org/rules/attr-pattern.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.AttrPatternRule = AttrPatternRule; //# sourceMappingURL=attr-pattern.rule.js.map