mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 22:10:13 +01:00
Add "// @ts-check" to top of new micromark-related modules, fix import typo.
This commit is contained in:
parent
7142bbd8ed
commit
000281e2f0
3 changed files with 8 additions and 1 deletions
|
|
@ -1,3 +1,5 @@
|
|||
// @ts-check
|
||||
|
||||
import assert from "node:assert/strict";
|
||||
// eslint-disable-next-line n/no-unpublished-import
|
||||
import { parse, postprocess, preprocess } from "../micromark/exports.mjs";
|
||||
|
|
@ -64,6 +66,7 @@ function micromarkParse(markdown) {
|
|||
assert.equal(endLine, current.endLine);
|
||||
assert.equal(endColumn, current.endColumn);
|
||||
assert.equal(text, current.text);
|
||||
// @ts-ignore
|
||||
current = history.pop();
|
||||
assert.ok(current, "Empty history");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
// @ts-check
|
||||
|
||||
/* eslint-disable n/file-extension-in-import */
|
||||
|
||||
export { parse } from "micromark/lib/parse";
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
// @ts-check
|
||||
|
||||
import fs from "node:fs/promises";
|
||||
import test from "ava";
|
||||
import newLineRe from "../helpers/helpers.js";
|
||||
import { newLineRe } from "../helpers/helpers.js";
|
||||
import { parse } from "../lib/micromark.mjs";
|
||||
|
||||
test("parse", async(t) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue