Add Apache Airflow and Electron repositories to README Examples and test-repos.js.

This commit is contained in:
David Anson 2022-12-19 21:15:35 -08:00
parent d3605b5c3c
commit c346e0dbac
3 changed files with 26 additions and 1 deletions

View file

@ -128,6 +128,13 @@ function excludeGlobs(rootDir, ...globs) {
// Run markdownlint the same way the corresponding repositories do
/* eslint-disable max-len */
test("https://github.com/apache-airflow", (t) => {
const rootDir = "./test-repos/apache-airflow";
const globPatterns = [ join(rootDir, "**/*.{md,mdown,markdown}") ];
const configPath = join(rootDir, ".markdownlint.yml");
return lintTestRepo(t, globPatterns, configPath);
});
test("https://github.com/dotnet/docs", (t) => {
const rootDir = "./test-repos/dotnet-docs";
const globPatterns = [ join(rootDir, "**/*.md") ];
@ -135,6 +142,16 @@ test("https://github.com/dotnet/docs", (t) => {
return lintTestRepo(t, globPatterns, configPath);
});
test("https://github.com/electron-electron", (t) => {
const rootDir = "./test-repos/electron-electron";
const globPatterns = [
join(rootDir, "*.md"),
join(rootDir, "docs/**/*.md")
];
const configPath = join(rootDir, ".markdownlint.json");
return lintTestRepo(t, globPatterns, configPath);
});
test("https://github.com/eslint/eslint", (t) => {
const rootDir = "./test-repos/eslint-eslint";
const globPatterns = [ join(rootDir, "docs/**/*.md") ];