Skip to content

Commit e5ccf36

Browse files
committed
tools: restore lint-md typos
1 parent 50ae188 commit e5ccf36

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

tools/lint-md/lint-md.mjs

+14-14
Original file line numberDiff line numberDiff line change
@@ -146,13 +146,13 @@ function trough() {
146146
}
147147
}
148148
}
149-
function use(middleware) {
150-
if (typeof middleware !== 'function') {
149+
function use(middelware) {
150+
if (typeof middelware !== 'function') {
151151
throw new TypeError(
152-
'Expected `middleware` to be a function, not ' + middleware
152+
'Expected `middelware` to be a function, not ' + middelware
153153
)
154154
}
155-
fns.push(middleware);
155+
fns.push(middelware);
156156
return pipeline
157157
}
158158
}
@@ -9936,15 +9936,15 @@ function exitParagraphWithTaskListItem(token) {
99369936
if (head && head.type === 'text') {
99379937
const siblings = parent.children;
99389938
let index = -1;
9939-
let firstParagraph;
9939+
let firstParaghraph;
99409940
while (++index < siblings.length) {
99419941
const sibling = siblings[index];
99429942
if (sibling.type === 'paragraph') {
9943-
firstParagraph = sibling;
9943+
firstParaghraph = sibling;
99449944
break
99459945
}
99469946
}
9947-
if (firstParagraph === node) {
9947+
if (firstParaghraph === node) {
99489948
head.value = head.value.slice(1);
99499949
if (head.value.length === 0) {
99509950
node.children.shift();
@@ -14904,7 +14904,7 @@ const remarkLintCodeBlockStyle = lintRule$1(
1490414904
*
1490514905
* ## What is this?
1490614906
*
14907-
* This package checks the whitespace in definition labels.
14907+
* This package checks the whitepsace in definition labels.
1490814908
*
1490914909
* GFM footnotes are not affected by this rule as footnote labels cannot
1491014910
* contain whitespace.
@@ -15609,7 +15609,7 @@ const remarkLintFileExtension = lintRule$1(
1560915609
* ## Recommendation
1561015610
*
1561115611
* There are different strategies for placing definitions.
15612-
* The simplest is perhaps to place them all at the bottom of documents.
15612+
* The simplest is perhaps to place them all at the bottem of documents.
1561315613
* If you prefer that, turn on this rule.
1561415614
*
1561515615
* [api-remark-lint-final-definition]: #unifieduseremarklintfinaldefinition
@@ -17136,7 +17136,7 @@ const remarkLintNoHeadingIndent = lintRule$1(
1713617136
* @example
1713717137
* {"label": "output", "name": "not-ok.md"}
1713817138
*
17139-
* 3:1-3:10: Unexpected duplicate toplevel heading, expected a single heading with rank `1`
17139+
* 3:1-3:10: Unexpected duplicate toplevel heading, exected a single heading with rank `1`
1714017140
*
1714117141
* @example
1714217142
* {"config": 2, "label": "input", "name": "not-ok.md"}
@@ -17147,7 +17147,7 @@ const remarkLintNoHeadingIndent = lintRule$1(
1714717147
* @example
1714817148
* {"config": 2, "label": "output", "name": "not-ok.md"}
1714917149
*
17150-
* 3:1-3:11: Unexpected duplicate toplevel heading, expected a single heading with rank `2`
17150+
* 3:1-3:11: Unexpected duplicate toplevel heading, exected a single heading with rank `2`
1715117151
*
1715217152
* @example
1715317153
* {"label": "input", "name": "html.md"}
@@ -17160,7 +17160,7 @@ const remarkLintNoHeadingIndent = lintRule$1(
1716017160
* @example
1716117161
* {"label": "output", "name": "html.md"}
1716217162
*
17163-
* 5:1-5:14: Unexpected duplicate toplevel heading, expected a single heading with rank `1`
17163+
* 5:1-5:14: Unexpected duplicate toplevel heading, exected a single heading with rank `1`
1716417164
*
1716517165
* @example
1716617166
* {"label": "input", "mdx": true, "name": "mdx.mdx"}
@@ -17172,7 +17172,7 @@ const remarkLintNoHeadingIndent = lintRule$1(
1717217172
* @example
1717317173
* {"label": "output", "mdx": true, "name": "mdx.mdx"}
1717417174
*
17175-
* 4:1-4:14: Unexpected duplicate toplevel heading, expected a single heading with rank `1`
17175+
* 4:1-4:14: Unexpected duplicate toplevel heading, exected a single heading with rank `1`
1717617176
*/
1717717177
const htmlRe = /<h([1-6])/;
1717817178
const jsxNameRe = /^h([1-6])$/;
@@ -17205,7 +17205,7 @@ const remarkLintNoMultipleToplevelHeadings = lintRule$1(
1720517205
if (duplicateAncestors) {
1720617206
const duplicate = duplicateAncestors.at(-1);
1720717207
file.message(
17208-
'Unexpected duplicate toplevel heading, expected a single heading with rank `' +
17208+
'Unexpected duplicate toplevel heading, exected a single heading with rank `' +
1720917209
rank +
1721017210
'`',
1721117211
{

0 commit comments

Comments
 (0)