mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-17 14:30:12 +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
|
// @ts-ignore
|
||||||
readConfigPromise(configPath, [ jsoncParse, yamlParse ])
|
readConfigPromise(configPath, [ jsoncParse, yamlParse ])
|
||||||
]).then((globbyAndReadConfigResults) => {
|
]).then((globbyAndReadConfigResults) => {
|
||||||
const [ files, config ] = globbyAndReadConfigResults;
|
const [ files, rawConfig ] = globbyAndReadConfigResults;
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
console.log(`${t.title}: Linting ${files.length} files...`);
|
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({
|
return markdownlintPromise({
|
||||||
files,
|
files,
|
||||||
config
|
config
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue