Add error/warning severity property to LintError object.

This commit is contained in:
David Anson 2025-09-11 20:34:24 -07:00
parent c07a63117a
commit 895f377860
16 changed files with 4079 additions and 911 deletions

View file

@ -537,10 +537,10 @@ test("formatLintResults", async(t) => {
t.deepEqual(
formatLintResults(lintResults),
[
"content:1:3 MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: \"# Heading\"]",
"content:1 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: \"# Heading\"]",
"content:2:1 MD033/no-inline-html Inline HTML [Element: br]",
"content:2:5 MD047/single-trailing-newline Files should end with a single newline character"
"content:1:3 error MD019/no-multiple-space-atx Multiple spaces after hash on atx style heading [Context: \"# Heading\"]",
"content:1 error MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: \"# Heading\"]",
"content:2:1 error MD033/no-inline-html Inline HTML [Element: br]",
"content:2:5 error MD047/single-trailing-newline Files should end with a single newline character"
]
);
});