UNPKG

347 BJavaScriptView Raw
1"use strict";
2
3/**
4 * @param { import("../lib/css-analyzer") } analyzer
5 */
6function rule(analyzer) {
7 analyzer.setMetric("parsingErrors");
8
9 analyzer.on("error", (err) => {
10 analyzer.incrMetric("parsingErrors");
11 analyzer.addOffender("parsingErrors", err.message);
12 });
13}
14
15rule.description = "CSS parsing errors";
16module.exports = rule;