mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 22:10:13 +01:00
Update dependencies: c8 to 7.7.2, eslint to 7.28.0, eslint-plugin-jsdoc to 35.1.3, eslint-plugin-unicorn to 33.0.1, globby to 11.0.3, js-yaml to 4.1.0, markdown-it-texmath to 0.9.0, markdownlint-rule-helpers to 0.14.0, ts-loader to 9.2.3, typescript to 4.3.2, webpack to 5.38.1, webpack-cli to 4.7.2.
This commit is contained in:
parent
e441d247ee
commit
fb5f647368
6 changed files with 67 additions and 53 deletions
4
lib/markdownlint.d.ts
vendored
4
lib/markdownlint.d.ts
vendored
|
|
@ -334,12 +334,12 @@ type FixInfo = {
|
|||
* {@link ../schema/markdownlint-config-schema.json}.
|
||||
*/
|
||||
type Configuration = {
|
||||
[x: string]: any;
|
||||
[x: string]: RuleConfiguration;
|
||||
};
|
||||
/**
|
||||
* Rule configuration.
|
||||
*/
|
||||
type RuleConfiguration = any;
|
||||
type RuleConfiguration = boolean | any;
|
||||
/**
|
||||
* Parses a configuration string and returns a configuration object.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -190,7 +190,7 @@ function annotateTokens(tokens, lines) {
|
|||
(token.type === "thead_open") ||
|
||||
(token.type === "tbody_open")
|
||||
) {
|
||||
tableMap = token.map.slice();
|
||||
tableMap = [ ...token.map ];
|
||||
} else if (
|
||||
(token.type === "tr_close") &&
|
||||
tableMap
|
||||
|
|
@ -203,7 +203,7 @@ function annotateTokens(tokens, lines) {
|
|||
tableMap = null;
|
||||
}
|
||||
if (tableMap && !token.map) {
|
||||
token.map = tableMap.slice();
|
||||
token.map = [ ...tableMap ];
|
||||
}
|
||||
// Update token metadata
|
||||
if (token.map) {
|
||||
|
|
@ -736,7 +736,7 @@ function lintInput(options, synchronous, callback) {
|
|||
}
|
||||
let files = [];
|
||||
if (Array.isArray(options.files)) {
|
||||
files = options.files.slice();
|
||||
files = [ ...options.files ];
|
||||
} else if (options.files) {
|
||||
files = [ String(options.files) ];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue