mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-17 06:20:12 +01:00
Update to use named exports via / /async /promise /sync, simplify references via self-referencing, refine examples.
This commit is contained in:
parent
e41f034bef
commit
8da43dd246
96 changed files with 635 additions and 548 deletions
|
|
@ -1,7 +1,6 @@
|
|||
import { readFile } from "node:fs/promises";
|
||||
import { lint } from "markdownlint/promise";
|
||||
import { parse } from "../lib/micromark-parse.mjs";
|
||||
import library from "../lib/markdownlint.mjs";
|
||||
const markdownlint = library.promises.markdownlint;
|
||||
|
||||
/* eslint-disable no-await-in-loop, no-console */
|
||||
|
||||
|
|
@ -43,7 +42,7 @@ for (const file of files) {
|
|||
let results = null;
|
||||
performance.mark("profile-start");
|
||||
for (let i = 0; i < count; i++) {
|
||||
results = await markdownlint({
|
||||
results = await lint({
|
||||
"files": [ file ]
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue