UNPKG

website-auditfy

Version:

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

21 lines 881 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RequireCspNonceRule = void 0; const html_validator_helper_1 = require("../../../linters/html-validator.helper"); class RequireCspNonceRule { constructor(dom, lightHouse, htmlValidator, eslint) { this.id = 'require-csp-nonce'; this.tags = ['html', 'security']; this.ruleUrl = 'https://html-validate.org/rules/require-csp-nonce.html'; this.description = 'Content Security Policy'; 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.RequireCspNonceRule = RequireCspNonceRule; //# sourceMappingURL=require-csp-nonce.rule.js.map