mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-17 06:20:12 +01:00
Update dependencies: @types/node to 14.14.9, browserify to 17.0.0, c8 to 7.3.5, eslint to 7.14.0, eslint-plugin-jsdoc to 30.7.8, eslint-plugin-unicorn to 23.0.0, markdownlint-rule-helpers to 0.12.0, typescript to 4.1.2, uglify-js to 3.12.0.
This commit is contained in:
parent
c2541468ff
commit
d2bd75748f
5 changed files with 27 additions and 17 deletions
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
const fs = require("fs");
|
||||
const path = require("path");
|
||||
const util = require("util");
|
||||
const { promisify } = require("util");
|
||||
const markdownIt = require("markdown-it");
|
||||
const rules = require("./rules");
|
||||
const helpers = require("../helpers");
|
||||
|
|
@ -459,8 +459,8 @@ function uniqueFilterForSortedErrors(value, index, array) {
|
|||
*
|
||||
* @param {Rule[]} ruleList List of rules.
|
||||
* @param {string} name Identifier for the content.
|
||||
* @param {string} content Markdown content
|
||||
* @param {Object} md markdown-it instance.
|
||||
* @param {string} content Markdown content.
|
||||
* @param {Object} md Instance of markdown-it.
|
||||
* @param {Configuration} config Configuration object.
|
||||
* @param {RegExp} frontMatter Regular expression for front matter.
|
||||
* @param {boolean} handleRuleFailures Whether to handle exceptions in rules.
|
||||
|
|
@ -671,7 +671,7 @@ function lintContent(
|
|||
*
|
||||
* @param {Rule[]} ruleList List of rules.
|
||||
* @param {string} file Path of file to lint.
|
||||
* @param {Object} md markdown-it instance.
|
||||
* @param {Object} md Instance of markdown-it.
|
||||
* @param {Configuration} config Configuration object.
|
||||
* @param {RegExp} frontMatter Regular expression for front matter.
|
||||
* @param {boolean} handleRuleFailures Whether to handle exceptions in rules.
|
||||
|
|
@ -853,7 +853,7 @@ function markdownlint(options, callback) {
|
|||
return lintInput(options, false, callback);
|
||||
}
|
||||
|
||||
const markdownlintPromisify = util.promisify(markdownlint);
|
||||
const markdownlintPromisify = promisify(markdownlint);
|
||||
|
||||
/**
|
||||
* Lint specified Markdown files.
|
||||
|
|
@ -985,7 +985,7 @@ function readConfig(file, parsers, callback) {
|
|||
});
|
||||
}
|
||||
|
||||
const readConfigPromisify = util.promisify(readConfig);
|
||||
const readConfigPromisify = promisify(readConfig);
|
||||
|
||||
/**
|
||||
* Read specified configuration file.
|
||||
|
|
@ -1064,7 +1064,7 @@ module.exports = markdownlint;
|
|||
*
|
||||
* @typedef {Object} RuleParams
|
||||
* @property {string} name File/string name.
|
||||
* @property {MarkdownItToken[]} tokens markdown-it token objects.
|
||||
* @property {MarkdownItToken[]} tokens Token objects from markdown-it.
|
||||
* @property {string[]} lines File/string lines.
|
||||
* @property {string[]} frontMatterLines Front matter lines.
|
||||
* @property {RuleConfiguration} config Rule configuration.
|
||||
|
|
@ -1147,7 +1147,7 @@ module.exports = markdownlint;
|
|||
*/
|
||||
|
||||
/**
|
||||
* markdown-it plugin.
|
||||
* A markdown-it plugin.
|
||||
*
|
||||
* @typedef {Array} Plugin
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue