mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-24 01:40:13 +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,6 +1,5 @@
|
|||
import { readFile } from "node:fs/promises";
|
||||
import library from "../lib/markdownlint.mjs";
|
||||
const markdownlint = library.promises.markdownlint;
|
||||
import { lint } from "markdownlint/promise";
|
||||
|
||||
const strings = {
|
||||
"CHANGELOG": await readFile("CHANGELOG.md", "utf8"),
|
||||
|
|
@ -14,7 +13,7 @@ const strings = {
|
|||
const start = new Date();
|
||||
for (let i = 0; i < 250; i++) {
|
||||
// eslint-disable-next-line no-await-in-loop
|
||||
await markdownlint({ strings });
|
||||
await lint({ strings });
|
||||
}
|
||||
const end = new Date();
|
||||
// eslint-disable-next-line no-console
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue