mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-17 14:30:12 +01:00
Remove outdated type annotations and lint suppressions.
This commit is contained in:
parent
d9c5d24e20
commit
1513e3803b
25 changed files with 208 additions and 322 deletions
10
lib/md027.js
10
lib/md027.js
|
|
@ -13,11 +13,7 @@ module.exports = {
|
|||
"tags": ["blockquote", "whitespace", "indentation"],
|
||||
"parser": "micromark",
|
||||
"function": function MD027(params, onError) {
|
||||
// eslint-disable-next-line jsdoc/valid-types
|
||||
/** @type import("../helpers/micromark.cjs").Token[] */
|
||||
const micromarkTokens =
|
||||
// @ts-ignore
|
||||
params.parsers.micromark.tokens;
|
||||
const micromarkTokens = params.parsers.micromark.tokens;
|
||||
for (const token of filterByTypes(micromarkTokens, [ "linePrefix" ])) {
|
||||
const siblings = token.parent?.children || micromarkTokens;
|
||||
if (siblings[siblings.indexOf(token) - 1]?.type === "blockQuotePrefix") {
|
||||
|
|
@ -28,8 +24,8 @@ module.exports = {
|
|||
onError,
|
||||
startLine,
|
||||
line,
|
||||
null,
|
||||
null,
|
||||
undefined,
|
||||
undefined,
|
||||
[ startColumn, length ],
|
||||
{
|
||||
"editColumn": startColumn,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue