mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 14:00:13 +01:00
Update test repos script to transform "allow_different_nesting" rule parameter to "siblings_only" per removal of former.
This commit is contained in:
parent
f2725178b1
commit
652244fbab
2 changed files with 10 additions and 1 deletions
|
|
@ -38,7 +38,16 @@ async function lintTestRepo(t, globPatterns, configPath) {
|
|||
const config = Object.fromEntries(
|
||||
// @ts-ignore
|
||||
Object.entries(rawConfig).
|
||||
map(([ k, v ]) => [ k.replace(/header/, "heading"), v ])
|
||||
map(([ k, v ]) => [
|
||||
k.replace(/header/, "heading"),
|
||||
typeof v === "object" ?
|
||||
Object.fromEntries(
|
||||
// @ts-ignore
|
||||
Object.entries(v).
|
||||
map(([ kk, vv ]) => [ kk.replace(/^allow_different_nesting$/, "siblings_only"), vv ])
|
||||
) :
|
||||
v
|
||||
])
|
||||
);
|
||||
return markdownlintPromise({
|
||||
files,
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue