mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-17 22:40:13 +01:00
Add error/warning severity property to LintError object.
This commit is contained in:
parent
c07a63117a
commit
895f377860
16 changed files with 4079 additions and 911 deletions
|
|
@ -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"
|
||||
]
|
||||
);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue