mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-22 05:40:48 +02: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,10 +1,9 @@
|
|||
// @ts-check
|
||||
|
||||
import { parentPort, workerData } from "node:worker_threads";
|
||||
import library from "../lib/markdownlint.mjs";
|
||||
const { markdownlint } = library.promises;
|
||||
import { lint } from "markdownlint/promise";
|
||||
|
||||
const lintResults = await markdownlint(workerData);
|
||||
const lintResults = await lint(workerData);
|
||||
// @ts-ignore
|
||||
parentPort
|
||||
// eslint-disable-next-line unicorn/require-post-message-target-origin
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue