Comparing version 2.6.0 to 2.7.0
{ | ||
"name": "svglint", | ||
"version": "2.6.0", | ||
"version": "2.7.0", | ||
"description": "Linter for SVGs", | ||
@@ -5,0 +5,0 @@ "type": "module", |
import Logger from "../lib/logger.js"; | ||
const logger = Logger("rule:custom"); | ||
/** @typedef {import('cheerio').Cheerio<import('domhandler').Document>} Cheerio */ | ||
/** @typedef {import("../lib/reporter.js")} Reporter */ | ||
@@ -14,2 +15,3 @@ /** @typedef {import("../lib/parse.js").AST} AST */ | ||
* @param {AST} ast The AST of the document, which we should pass to reporter | ||
* @param {Info} info Info related to the current file being linted | ||
*/ | ||
@@ -16,0 +18,0 @@ /** |
@@ -16,5 +16,8 @@ /** | ||
/** @typedef {import("./lib/rule-loader.js").RuleModule} RuleModule */ | ||
/** @typedef {import("./rules/elm.js").ElmConfig} ElmConfig */ | ||
/** @typedef {import("./rules/attr.js").AttrConfig} AttrConfig */ | ||
/** @typedef {import("./rules/custom.js").CustomConfig} CustomConfig */ | ||
/** | ||
* @typedef {Object<string,any>} RulesConfig | ||
* @typedef RulesConfig | ||
* An object with each key representing a rule name, and each value representing | ||
@@ -24,2 +27,5 @@ * a rule config. | ||
* e.g. overwriting presets). | ||
* @property {ElmConfig} [elm={}] | ||
* @property {Array<AttrConfig>} [attr=[]] | ||
* @property {Array<CustomConfig>} [custom=[]] | ||
*/ | ||
@@ -26,0 +32,0 @@ /** |
Sorry, the diff of this file is not supported yet
153098
3152