From 4390715f4b6b802f648c76c6f804a046a4d1d169 Mon Sep 17 00:00:00 2001 From: David Anson Date: Fri, 10 Nov 2023 22:56:25 -0800 Subject: [PATCH] Update test repos script to transform "header"-based rule names to "heading"-based now that the former aliases have been removed. --- test/markdownlint-test-repos.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/markdownlint-test-repos.js b/test/markdownlint-test-repos.js index d4d27332..20a73b38 100644 --- a/test/markdownlint-test-repos.js +++ b/test/markdownlint-test-repos.js @@ -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