Add @stylistic/eslint-plugin to ESLint configuration.

This commit is contained in:
David Anson 2024-09-01 16:16:05 -07:00
parent fe02674ce0
commit 164bbac651
21 changed files with 103 additions and 78 deletions

View file

@ -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,