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
|
|
@ -681,7 +681,7 @@ test.cb("filesArrayNotModified", (t) => {
|
|||
"./test/atx_heading_spacing.md",
|
||||
"./test/first_heading_bad_atx.md"
|
||||
];
|
||||
const expectedFiles = files.slice();
|
||||
const expectedFiles = [ ...files ];
|
||||
markdownlint({ "files": files }, function callback(err) {
|
||||
t.falsy(err);
|
||||
t.deepEqual(files, expectedFiles, "Files modified.");
|
||||
|
|
@ -811,12 +811,13 @@ test.cb("readme", (t) => {
|
|||
fs.readFile("README.md", "utf8",
|
||||
function readFile(err, contents) {
|
||||
t.falsy(err);
|
||||
const rulesLeft = rules.slice();
|
||||
const rulesLeft = [ ...rules ];
|
||||
let seenRelated = false;
|
||||
let seenRules = false;
|
||||
let inRules = false;
|
||||
let seenTags = false;
|
||||
let inTags = false;
|
||||
// @ts-ignore
|
||||
md.parse(contents, {}).forEach(function forToken(token) {
|
||||
if (
|
||||
(token.type === "bullet_list_open") &&
|
||||
|
|
@ -878,7 +879,7 @@ test.cb("rules", (t) => {
|
|||
fs.readFile("doc/Rules.md", "utf8",
|
||||
(err, contents) => {
|
||||
t.falsy(err);
|
||||
const rulesLeft = rules.slice();
|
||||
const rulesLeft = [ ...rules ];
|
||||
let inHeading = false;
|
||||
let rule = null;
|
||||
let ruleHasTags = true;
|
||||
|
|
@ -896,6 +897,7 @@ test.cb("rules", (t) => {
|
|||
t.true(!ruleUsesParams,
|
||||
"Missing parameters for rule " + r.names + ".");
|
||||
};
|
||||
// @ts-ignore
|
||||
md.parse(contents, {}).forEach(function forToken(token) {
|
||||
if ((token.type === "heading_open") && (token.tag === "h2")) {
|
||||
inHeading = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue