UNPKG

website-auditfy

Version:

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

19 lines 788 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.UnusedJavascriptRule = void 0; const lighthouse_helper_1 = require("../../../linters/lighthouse.helper"); class UnusedJavascriptRule { constructor(dom, lightHouse) { this.id = 'unused-javascript'; this.tags = ['performance']; this.description = 'Reduce unused JavaScript'; this.ruleUrl = 'https://developer.chrome.com/docs/lighthouse/performance/unused-javascript/'; this.dom = dom; this.lightHouse = lightHouse; } check() { return lighthouse_helper_1.LighthouseHelper.identifyRule(this.id, this.ruleFlow, this.lightHouse); } } exports.UnusedJavascriptRule = UnusedJavascriptRule; //# sourceMappingURL=unused-javascript.rule.js.map