mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-01-18 05:35:29 +01:00
wip
This commit is contained in:
parent
4447540366
commit
3ea07a7614
15 changed files with 15 additions and 363 deletions
|
|
@ -1101,7 +1101,7 @@ test("readme", async(t) => {
|
|||
});
|
||||
|
||||
test("validateJsonUsingConfigSchemaStrict", async(t) => {
|
||||
t.plan(222);
|
||||
t.plan(220);
|
||||
// @ts-ignore
|
||||
const ajv = new Ajv(ajvOptions);
|
||||
const validateSchemaStrict = ajv.compile(configSchemaStrict);
|
||||
|
|
|
|||
|
|
@ -72533,242 +72533,6 @@ Generated by [AVA](https://avajs.dev).
|
|||
`,
|
||||
}
|
||||
|
||||
## table-column-style-wide-characters-custom.md
|
||||
|
||||
> Snapshot 1
|
||||
|
||||
{
|
||||
errors: [
|
||||
{
|
||||
errorContext: null,
|
||||
errorDetail: 'Table pipe does not align with heading for style "aligned"',
|
||||
errorRange: [
|
||||
6,
|
||||
1,
|
||||
],
|
||||
fixInfo: null,
|
||||
lineNumber: 12,
|
||||
ruleDescription: 'Table column style',
|
||||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md060.md',
|
||||
ruleNames: [
|
||||
'MD060',
|
||||
'table-column-style',
|
||||
],
|
||||
severity: 'error',
|
||||
},
|
||||
{
|
||||
errorContext: null,
|
||||
errorDetail: 'Table pipe does not align with heading for style "aligned"',
|
||||
errorRange: [
|
||||
11,
|
||||
1,
|
||||
],
|
||||
fixInfo: null,
|
||||
lineNumber: 12,
|
||||
ruleDescription: 'Table column style',
|
||||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md060.md',
|
||||
ruleNames: [
|
||||
'MD060',
|
||||
'table-column-style',
|
||||
],
|
||||
severity: 'error',
|
||||
},
|
||||
{
|
||||
errorContext: null,
|
||||
errorDetail: 'Table pipe does not align with heading for style "aligned"',
|
||||
errorRange: [
|
||||
11,
|
||||
1,
|
||||
],
|
||||
fixInfo: null,
|
||||
lineNumber: 13,
|
||||
ruleDescription: 'Table column style',
|
||||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md060.md',
|
||||
ruleNames: [
|
||||
'MD060',
|
||||
'table-column-style',
|
||||
],
|
||||
severity: 'error',
|
||||
},
|
||||
{
|
||||
errorContext: null,
|
||||
errorDetail: 'Table pipe does not align with heading for style "aligned"',
|
||||
errorRange: [
|
||||
6,
|
||||
1,
|
||||
],
|
||||
fixInfo: null,
|
||||
lineNumber: 14,
|
||||
ruleDescription: 'Table column style',
|
||||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md060.md',
|
||||
ruleNames: [
|
||||
'MD060',
|
||||
'table-column-style',
|
||||
],
|
||||
severity: 'error',
|
||||
},
|
||||
{
|
||||
errorContext: null,
|
||||
errorDetail: 'Table pipe does not align with heading for style "aligned"',
|
||||
errorRange: [
|
||||
11,
|
||||
1,
|
||||
],
|
||||
fixInfo: null,
|
||||
lineNumber: 14,
|
||||
ruleDescription: 'Table column style',
|
||||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md060.md',
|
||||
ruleNames: [
|
||||
'MD060',
|
||||
'table-column-style',
|
||||
],
|
||||
severity: 'error',
|
||||
},
|
||||
],
|
||||
fixed: `# Table Column Style - Wide Characters (Custom)␊
|
||||
␊
|
||||
| NN | W |␊
|
||||
| -- | -- |␊
|
||||
| NN | NN |␊
|
||||
| W | NN |␊
|
||||
| NN | W |␊
|
||||
| W | W |␊
|
||||
| ✅N | NN |␊
|
||||
| NN | ✅N |␊
|
||||
| ✅N | ✅N |␊
|
||||
| WW | NN |␊
|
||||
| NN | WW |␊
|
||||
| WW | WW |␊
|
||||
␊
|
||||
{MD060:-4} {MD060:-3} {MD060:-2}␊
|
||||
␊
|
||||
<!-- markdownlint-configure-file {␊
|
||||
"table-column-style": {␊
|
||||
"style": "aligned",␊
|
||||
"wide_character": "[W]"␊
|
||||
}␊
|
||||
} -->␊
|
||||
`,
|
||||
}
|
||||
|
||||
## table-column-style-wide-characters-disable.md
|
||||
|
||||
> Snapshot 1
|
||||
|
||||
{
|
||||
errors: [
|
||||
{
|
||||
errorContext: null,
|
||||
errorDetail: 'Table pipe does not align with heading for style "aligned"',
|
||||
errorRange: [
|
||||
5,
|
||||
1,
|
||||
],
|
||||
fixInfo: null,
|
||||
lineNumber: 6,
|
||||
ruleDescription: 'Table column style',
|
||||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md060.md',
|
||||
ruleNames: [
|
||||
'MD060',
|
||||
'table-column-style',
|
||||
],
|
||||
severity: 'error',
|
||||
},
|
||||
{
|
||||
errorContext: null,
|
||||
errorDetail: 'Table pipe does not align with heading for style "aligned"',
|
||||
errorRange: [
|
||||
10,
|
||||
1,
|
||||
],
|
||||
fixInfo: null,
|
||||
lineNumber: 6,
|
||||
ruleDescription: 'Table column style',
|
||||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md060.md',
|
||||
ruleNames: [
|
||||
'MD060',
|
||||
'table-column-style',
|
||||
],
|
||||
severity: 'error',
|
||||
},
|
||||
{
|
||||
errorContext: null,
|
||||
errorDetail: 'Table pipe does not align with heading for style "aligned"',
|
||||
errorRange: [
|
||||
10,
|
||||
1,
|
||||
],
|
||||
fixInfo: null,
|
||||
lineNumber: 7,
|
||||
ruleDescription: 'Table column style',
|
||||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md060.md',
|
||||
ruleNames: [
|
||||
'MD060',
|
||||
'table-column-style',
|
||||
],
|
||||
severity: 'error',
|
||||
},
|
||||
{
|
||||
errorContext: null,
|
||||
errorDetail: 'Table pipe does not align with heading for style "aligned"',
|
||||
errorRange: [
|
||||
5,
|
||||
1,
|
||||
],
|
||||
fixInfo: null,
|
||||
lineNumber: 8,
|
||||
ruleDescription: 'Table column style',
|
||||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md060.md',
|
||||
ruleNames: [
|
||||
'MD060',
|
||||
'table-column-style',
|
||||
],
|
||||
severity: 'error',
|
||||
},
|
||||
{
|
||||
errorContext: null,
|
||||
errorDetail: 'Table pipe does not align with heading for style "aligned"',
|
||||
errorRange: [
|
||||
9,
|
||||
1,
|
||||
],
|
||||
fixInfo: null,
|
||||
lineNumber: 8,
|
||||
ruleDescription: 'Table column style',
|
||||
ruleInformation: 'https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/md060.md',
|
||||
ruleNames: [
|
||||
'MD060',
|
||||
'table-column-style',
|
||||
],
|
||||
severity: 'error',
|
||||
},
|
||||
],
|
||||
fixed: `# Table Column Style - Wide Characters (Disable)␊
|
||||
␊
|
||||
| NN | WW |␊
|
||||
| -- | -- |␊
|
||||
| NN | NN |␊
|
||||
| W | NN |␊
|
||||
| NN | W |␊
|
||||
| W | W |␊
|
||||
| ✅N | NN |␊
|
||||
| NN | ✅N |␊
|
||||
| ✅N | ✅N |␊
|
||||
| WW | NN |␊
|
||||
| NN | WW |␊
|
||||
| WW | WW |␊
|
||||
␊
|
||||
{MD060:-10} {MD060:-9} {MD060:-8}␊
|
||||
␊
|
||||
<!-- markdownlint-configure-file {␊
|
||||
"table-column-style": {␊
|
||||
"style": "aligned",␊
|
||||
"wide_character": "[]"␊
|
||||
}␊
|
||||
} -->␊
|
||||
`,
|
||||
}
|
||||
|
||||
## table-column-style-wide-characters.md
|
||||
|
||||
> Snapshot 1
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -1,23 +0,0 @@
|
|||
# Table Column Style - Wide Characters (Custom)
|
||||
|
||||
| NN | W |
|
||||
| -- | -- |
|
||||
| NN | NN |
|
||||
| W | NN |
|
||||
| NN | W |
|
||||
| W | W |
|
||||
| ✅N | NN |
|
||||
| NN | ✅N |
|
||||
| ✅N | ✅N |
|
||||
| WW | NN |
|
||||
| NN | WW |
|
||||
| WW | WW |
|
||||
|
||||
{MD060:-4} {MD060:-3} {MD060:-2}
|
||||
|
||||
<!-- markdownlint-configure-file {
|
||||
"table-column-style": {
|
||||
"style": "aligned",
|
||||
"wide_character": "[W]"
|
||||
}
|
||||
} -->
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
# Table Column Style - Wide Characters (Disable)
|
||||
|
||||
| NN | WW |
|
||||
| -- | -- |
|
||||
| NN | NN |
|
||||
| W | NN |
|
||||
| NN | W |
|
||||
| W | W |
|
||||
| ✅N | NN |
|
||||
| NN | ✅N |
|
||||
| ✅N | ✅N |
|
||||
| WW | NN |
|
||||
| NN | WW |
|
||||
| WW | WW |
|
||||
|
||||
{MD060:-10} {MD060:-9} {MD060:-8}
|
||||
|
||||
<!-- markdownlint-configure-file {
|
||||
"table-column-style": {
|
||||
"style": "aligned",
|
||||
"wide_character": "[]"
|
||||
}
|
||||
} -->
|
||||
Loading…
Add table
Add a link
Reference in a new issue