UNPKG

website-auditfy

Version:

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

19 lines 731 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ImageAltRule = void 0; const lighthouse_helper_1 = require("../../../linters/lighthouse.helper"); class ImageAltRule { constructor(dom, lightHouse) { this.id = 'image-alt'; this.tags = ['html', 'seo']; this.description = 'Image elements have `[alt]` attributes'; this.ruleUrl = 'https://dequeuniversity.com/rules/axe/4.10/image-alt'; this.dom = dom; this.lightHouse = lightHouse; } check() { return lighthouse_helper_1.LighthouseHelper.identifyRule(this.id, this.ruleFlow, this.lightHouse); } } exports.ImageAltRule = ImageAltRule; //# sourceMappingURL=image-alt.rule.js.map