mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 22:10:13 +01:00
Add @stylistic/eslint-plugin to ESLint configuration.
This commit is contained in:
parent
fe02674ce0
commit
164bbac651
21 changed files with 103 additions and 78 deletions
14
lib/md039.js
14
lib/md039.js
|
|
@ -29,10 +29,12 @@ function addLabelSpaceError(onError, label, labelText, isStart) {
|
|||
isStart,
|
||||
!isStart,
|
||||
range,
|
||||
range ? {
|
||||
"editColumn": range[0],
|
||||
"deleteCount": range[1]
|
||||
} : undefined
|
||||
range ?
|
||||
{
|
||||
"editColumn": range[0],
|
||||
"deleteCount": range[1]
|
||||
} :
|
||||
undefined
|
||||
);
|
||||
}
|
||||
|
||||
|
|
@ -57,8 +59,8 @@ module.exports = {
|
|||
"parser": "micromark",
|
||||
"function": function MD039(params, onError) {
|
||||
const { definitions } = getReferenceLinkImageData();
|
||||
const labels = filterByTypesCached([ "label" ]).
|
||||
filter((label) => label.parent?.type === "link");
|
||||
const labels = filterByTypesCached([ "label" ])
|
||||
.filter((label) => label.parent?.type === "link");
|
||||
for (const label of labels) {
|
||||
const labelTexts = filterByTypes(
|
||||
label.children,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue