Remove outdated type annotations and lint suppressions.

This commit is contained in:
David Anson 2024-06-21 21:03:30 -07:00
parent d9c5d24e20
commit 1513e3803b
25 changed files with 208 additions and 322 deletions

View file

@ -25,14 +25,12 @@ module.exports = {
const indent = Number(params.config.indent || 2);
const startIndented = !!params.config.start_indented;
const startIndent = Number(params.config.start_indent || indent);
// eslint-disable-next-line jsdoc/valid-types
/** @type import("../helpers/micromark.cjs").Token[] */
const micromarkTokens =
// @ts-ignore
params.parsers.micromark.tokens;
const unorderedListNesting = new Map();
let lastBlockQuotePrefix = null;
const tokens = filterByTypes(micromarkTokens, unorderedListTypes);
const tokens = filterByTypes(
params.parsers.micromark.tokens,
unorderedListTypes
);
for (const token of tokens) {
const { endColumn, parent, startColumn, startLine, type } = token;
if (type === "blockQuotePrefix") {