Skip to content

Commit

Permalink
Update/simplify test-repos scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidAnson committed May 26, 2024
1 parent ebded85 commit 81dacda
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion test/markdownlint-test-repos-mdn-content.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ const { lintTestRepo } = require("./markdownlint-test-repos");
test("https://github.com/mdn/content", (t) => {
const rootDir = "./test-repos/mdn-content";
const globPatterns = [ join(rootDir, "**/*.md") ];
const configPath = join(rootDir, ".markdownlint.jsonc");
const configPath = join(rootDir, ".markdownlint-cli2.jsonc");
return lintTestRepo(t, globPatterns, configPath);
});
8 changes: 1 addition & 7 deletions test/markdownlint-test-repos.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 81dacda

Please sign in to comment.