Skip to content

Commit

Permalink
Update test repos script to transform "header"-based rule names to "h…
Browse files Browse the repository at this point in the history
…eading"-based now that the former aliases have been removed.
  • Loading branch information
DavidAnson committed Nov 11, 2023
1 parent a9a7794 commit 4390715
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/markdownlint-test-repos.js
Expand Up @@ -32,9 +32,14 @@ async function lintTestRepo(t, globPatterns, configPath) {
// @ts-ignore
readConfigPromise(configPath, [ jsoncParse, yamlParse ])
]).then((globbyAndReadConfigResults) => {
const [ files, config ] = globbyAndReadConfigResults;
const [ files, rawConfig ] = globbyAndReadConfigResults;
// eslint-disable-next-line no-console
console.log(`${t.title}: Linting ${files.length} files...`);
const config = Object.fromEntries(
// @ts-ignore
Object.entries(rawConfig).
map(([ k, v ]) => [ k.replace(/header/, "heading"), v ])
);
return markdownlintPromise({
files,
config
Expand Down

0 comments on commit 4390715

Please sign in to comment.