mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 14:00:13 +01:00
Reimplement MD009/no-trailing-spaces using micromark tokens.
This commit is contained in:
parent
37ab4a0faf
commit
4072cf7417
7 changed files with 380 additions and 116 deletions
|
|
@ -57272,6 +57272,25 @@ Generated by [AVA](https://avajs.dev).
|
|||
'no-trailing-spaces',
|
||||
],
|
||||
},
|
||||
{
|
||||
errorContext: null,
|
||||
errorDetail: 'Expected: 0 or 2; Actual: 6',
|
||||
errorRange: [
|
||||
1,
|
||||
6,
|
||||
],
|
||||
fixInfo: {
|
||||
deleteCount: 6,
|
||||
editColumn: 1,
|
||||
},
|
||||
lineNumber: 35,
|
||||
ruleDescription: 'Trailing spaces',
|
||||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md',
|
||||
ruleNames: [
|
||||
'MD009',
|
||||
'no-trailing-spaces',
|
||||
],
|
||||
},
|
||||
{
|
||||
errorContext: null,
|
||||
errorDetail: 'Expected: 0 or 2; Actual: 6',
|
||||
|
|
@ -57310,6 +57329,82 @@ Generated by [AVA](https://avajs.dev).
|
|||
'no-trailing-spaces',
|
||||
],
|
||||
},
|
||||
{
|
||||
errorContext: null,
|
||||
errorDetail: 'Expected: 0 or 2; Actual: 3',
|
||||
errorRange: [
|
||||
1,
|
||||
3,
|
||||
],
|
||||
fixInfo: {
|
||||
deleteCount: 3,
|
||||
editColumn: 1,
|
||||
},
|
||||
lineNumber: 57,
|
||||
ruleDescription: 'Trailing spaces',
|
||||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md',
|
||||
ruleNames: [
|
||||
'MD009',
|
||||
'no-trailing-spaces',
|
||||
],
|
||||
},
|
||||
{
|
||||
errorContext: null,
|
||||
errorDetail: 'Expected: 0 or 2; Actual: 3',
|
||||
errorRange: [
|
||||
1,
|
||||
3,
|
||||
],
|
||||
fixInfo: {
|
||||
deleteCount: 3,
|
||||
editColumn: 1,
|
||||
},
|
||||
lineNumber: 58,
|
||||
ruleDescription: 'Trailing spaces',
|
||||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md',
|
||||
ruleNames: [
|
||||
'MD009',
|
||||
'no-trailing-spaces',
|
||||
],
|
||||
},
|
||||
{
|
||||
errorContext: null,
|
||||
errorDetail: 'Expected: 0 or 2; Actual: 3',
|
||||
errorRange: [
|
||||
1,
|
||||
3,
|
||||
],
|
||||
fixInfo: {
|
||||
deleteCount: 3,
|
||||
editColumn: 1,
|
||||
},
|
||||
lineNumber: 60,
|
||||
ruleDescription: 'Trailing spaces',
|
||||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md',
|
||||
ruleNames: [
|
||||
'MD009',
|
||||
'no-trailing-spaces',
|
||||
],
|
||||
},
|
||||
{
|
||||
errorContext: null,
|
||||
errorDetail: 'Expected: 0 or 2; Actual: 3',
|
||||
errorRange: [
|
||||
1,
|
||||
3,
|
||||
],
|
||||
fixInfo: {
|
||||
deleteCount: 3,
|
||||
editColumn: 1,
|
||||
},
|
||||
lineNumber: 61,
|
||||
ruleDescription: 'Trailing spaces',
|
||||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md',
|
||||
ruleNames: [
|
||||
'MD009',
|
||||
'no-trailing-spaces',
|
||||
],
|
||||
},
|
||||
],
|
||||
fixed: `# Heading␊
|
||||
␊
|
||||
|
|
@ -57345,7 +57440,7 @@ Generated by [AVA](https://avajs.dev).
|
|||
␊
|
||||
1. text␊
|
||||
text␊
|
||||
␊
|
||||
␊
|
||||
1. text␊
|
||||
␊
|
||||
1. text␊
|
||||
|
|
@ -57361,10 +57456,24 @@ Generated by [AVA](https://avajs.dev).
|
|||
- text␊
|
||||
text␊
|
||||
␊
|
||||
{MD009:35}␊
|
||||
{MD009:37}␊
|
||||
{MD009:50}␊
|
||||
␊
|
||||
1. text␊
|
||||
text␊
|
||||
␊
|
||||
␊
|
||||
1. text␊
|
||||
␊
|
||||
␊
|
||||
{MD009:57}␊
|
||||
{MD009:58}␊
|
||||
{MD009:60}␊
|
||||
{MD009:61}␊
|
||||
␊
|
||||
<!-- markdownlint-configure-file {␊
|
||||
"no-multiple-blanks": false,␊
|
||||
"no-trailing-spaces": {␊
|
||||
"list_item_empty_lines": true,␊
|
||||
"strict": true␊
|
||||
|
|
@ -57417,6 +57526,25 @@ Generated by [AVA](https://avajs.dev).
|
|||
'no-trailing-spaces',
|
||||
],
|
||||
},
|
||||
{
|
||||
errorContext: null,
|
||||
errorDetail: 'Expected: 0 or 2; Actual: 6',
|
||||
errorRange: [
|
||||
1,
|
||||
6,
|
||||
],
|
||||
fixInfo: {
|
||||
deleteCount: 6,
|
||||
editColumn: 1,
|
||||
},
|
||||
lineNumber: 35,
|
||||
ruleDescription: 'Trailing spaces',
|
||||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md',
|
||||
ruleNames: [
|
||||
'MD009',
|
||||
'no-trailing-spaces',
|
||||
],
|
||||
},
|
||||
{
|
||||
errorContext: null,
|
||||
errorDetail: 'Expected: 0 or 2; Actual: 6',
|
||||
|
|
@ -57455,6 +57583,82 @@ Generated by [AVA](https://avajs.dev).
|
|||
'no-trailing-spaces',
|
||||
],
|
||||
},
|
||||
{
|
||||
errorContext: null,
|
||||
errorDetail: 'Expected: 0 or 2; Actual: 3',
|
||||
errorRange: [
|
||||
1,
|
||||
3,
|
||||
],
|
||||
fixInfo: {
|
||||
deleteCount: 3,
|
||||
editColumn: 1,
|
||||
},
|
||||
lineNumber: 57,
|
||||
ruleDescription: 'Trailing spaces',
|
||||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md',
|
||||
ruleNames: [
|
||||
'MD009',
|
||||
'no-trailing-spaces',
|
||||
],
|
||||
},
|
||||
{
|
||||
errorContext: null,
|
||||
errorDetail: 'Expected: 0 or 2; Actual: 3',
|
||||
errorRange: [
|
||||
1,
|
||||
3,
|
||||
],
|
||||
fixInfo: {
|
||||
deleteCount: 3,
|
||||
editColumn: 1,
|
||||
},
|
||||
lineNumber: 58,
|
||||
ruleDescription: 'Trailing spaces',
|
||||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md',
|
||||
ruleNames: [
|
||||
'MD009',
|
||||
'no-trailing-spaces',
|
||||
],
|
||||
},
|
||||
{
|
||||
errorContext: null,
|
||||
errorDetail: 'Expected: 0 or 2; Actual: 3',
|
||||
errorRange: [
|
||||
1,
|
||||
3,
|
||||
],
|
||||
fixInfo: {
|
||||
deleteCount: 3,
|
||||
editColumn: 1,
|
||||
},
|
||||
lineNumber: 60,
|
||||
ruleDescription: 'Trailing spaces',
|
||||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md',
|
||||
ruleNames: [
|
||||
'MD009',
|
||||
'no-trailing-spaces',
|
||||
],
|
||||
},
|
||||
{
|
||||
errorContext: null,
|
||||
errorDetail: 'Expected: 0 or 2; Actual: 3',
|
||||
errorRange: [
|
||||
1,
|
||||
3,
|
||||
],
|
||||
fixInfo: {
|
||||
deleteCount: 3,
|
||||
editColumn: 1,
|
||||
},
|
||||
lineNumber: 61,
|
||||
ruleDescription: 'Trailing spaces',
|
||||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md009.md',
|
||||
ruleNames: [
|
||||
'MD009',
|
||||
'no-trailing-spaces',
|
||||
],
|
||||
},
|
||||
],
|
||||
fixed: `# Heading␊
|
||||
␊
|
||||
|
|
@ -57490,7 +57694,7 @@ Generated by [AVA](https://avajs.dev).
|
|||
␊
|
||||
1. text␊
|
||||
text␊
|
||||
␊
|
||||
␊
|
||||
1. text␊
|
||||
␊
|
||||
1. text␊
|
||||
|
|
@ -57506,10 +57710,24 @@ Generated by [AVA](https://avajs.dev).
|
|||
- text␊
|
||||
text␊
|
||||
␊
|
||||
{MD009:35}␊
|
||||
{MD009:37}␊
|
||||
{MD009:50}␊
|
||||
␊
|
||||
1. text␊
|
||||
text␊
|
||||
␊
|
||||
␊
|
||||
1. text␊
|
||||
␊
|
||||
␊
|
||||
{MD009:57}␊
|
||||
{MD009:58}␊
|
||||
{MD009:60}␊
|
||||
{MD009:61}␊
|
||||
␊
|
||||
<!-- markdownlint-configure-file {␊
|
||||
"no-multiple-blanks": false,␊
|
||||
"no-trailing-spaces": {␊
|
||||
"list_item_empty_lines": true␊
|
||||
}␊
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -48,10 +48,24 @@
|
|||
- text
|
||||
text
|
||||
|
||||
{MD009:35}
|
||||
{MD009:37}
|
||||
{MD009:50}
|
||||
|
||||
1. text
|
||||
text
|
||||
|
||||
|
||||
1. text
|
||||
|
||||
|
||||
{MD009:57}
|
||||
{MD009:58}
|
||||
{MD009:60}
|
||||
{MD009:61}
|
||||
|
||||
<!-- markdownlint-configure-file {
|
||||
"no-multiple-blanks": false,
|
||||
"no-trailing-spaces": {
|
||||
"list_item_empty_lines": true,
|
||||
"strict": true
|
||||
|
|
|
|||
|
|
@ -48,10 +48,24 @@
|
|||
- text
|
||||
text
|
||||
|
||||
{MD009:35}
|
||||
{MD009:37}
|
||||
{MD009:50}
|
||||
|
||||
1. text
|
||||
text
|
||||
|
||||
|
||||
1. text
|
||||
|
||||
|
||||
{MD009:57}
|
||||
{MD009:58}
|
||||
{MD009:60}
|
||||
{MD009:61}
|
||||
|
||||
<!-- markdownlint-configure-file {
|
||||
"no-multiple-blanks": false,
|
||||
"no-trailing-spaces": {
|
||||
"list_item_empty_lines": true
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue