Update/simplify test-repos scripts.

This commit is contained in:
David Anson 2024-05-25 18:18:32 -07:00
parent ebded850b5
commit 81dacdae0d
2 changed files with 2 additions and 8 deletions

View file

@ -34,13 +34,7 @@ async function lintTestRepo(t, globPatterns, configPath) {
Object.entries(rawConfig).
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
v
])
);
return markdownlint.promises.markdownlint({