mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 22:10:13 +01:00
Update test repos script to transform "header"-based rule names to "heading"-based now that the former aliases have been removed.
This commit is contained in:
parent
a9a77940c5
commit
4390715f4b
1 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue