UNPKG

website-auditfy

Version:

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

21 lines 847 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RequireSriRule = void 0; const html_validator_helper_1 = require("../../../linters/html-validator.helper"); class RequireSriRule { constructor(dom, lightHouse, htmlValidator, eslint) { this.id = 'require-sri'; this.tags = ['html', 'security']; this.description = 'Subresource Integrity (SRI)'; this.ruleUrl = 'https://html-validate.org/rules/require-sri.html'; this.dom = dom; this.eslint = eslint; this.lightHouse = lightHouse; this.htmlValidator = htmlValidator; } check() { return html_validator_helper_1.HtmlValidatorUtils.identifyRule(this.id, this.ruleFlow, this.htmlValidator); } } exports.RequireSriRule = RequireSriRule; //# sourceMappingURL=require-sri.rule.js.map