Remove https://github.com/mochajs/mocha from README/Examples and test repos because it no longer uses markdownlint.
Some checks failed
Checkers / linkcheck (push) Has been cancelled
Checkers / spellcheck (push) Has been cancelled
CI / build (20, macos-latest) (push) Has been cancelled
CI / build (20, ubuntu-latest) (push) Has been cancelled
CI / build (20, windows-latest) (push) Has been cancelled
CI / build (22, macos-latest) (push) Has been cancelled
CI / build (22, ubuntu-latest) (push) Has been cancelled
CI / build (22, windows-latest) (push) Has been cancelled
CI / build (24, macos-latest) (push) Has been cancelled
CI / build (24, ubuntu-latest) (push) Has been cancelled
CI / build (24, windows-latest) (push) Has been cancelled
CI / pnpm (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
TestRepos / build (latest, ubuntu-latest) (push) Has been cancelled
UpdateTestRepos / update (push) Has been cancelled

This commit is contained in:
David Anson 2026-01-02 15:39:46 -08:00
parent 866b56a79f
commit 9e08a4c86e
5 changed files with 3 additions and 31 deletions

View file

@ -1058,7 +1058,6 @@ following projects or one of the tools in the [Related section](#related):
- [Garden React Components][garden] ([Search repository][garden-search])
- [MDN Web Docs][mdn] ([Search repository][mdn-search])
- [MkDocs][mkdocs] ([Search repository][mkdocs-search])
- [Mocha][mocha] ([Search repository][mocha-search])
- [Pi-hole documentation][pi-hole] ([Search repository][pi-hole-search])
- [Reactable][reactable] ([Search repository][reactable-search])
- [V8][v8] ([Search repository][v8-search])
@ -1091,8 +1090,6 @@ For more advanced integration scenarios:
[mdn-search]: https://github.com/mdn/content/search?q=markdownlint
[mkdocs]: https://www.mkdocs.org/
[mkdocs-search]: https://github.com/mkdocs/mkdocs/search?q=markdownlint
[mocha]: https://mochajs.org/
[mocha-search]: https://github.com/mochajs/mocha/search?q=markdownlint
[pi-hole]: https://docs.pi-hole.net
[pi-hole-search]: https://github.com/pi-hole/docs/search?q=markdownlint
[reactable]: https://glittershark.github.io/reactable/

View file

@ -50,24 +50,6 @@ test("https://github.com/mkdocs/mkdocs", (t) => {
return lintTestRepo(t, globPatterns, configPath);
});
test("https://github.com/mochajs/mocha", (t) => {
const rootDir = "./test-repos/mochajs-mocha";
const globPatterns = [
join(rootDir, "*.md"),
join(rootDir, "docs/**/*.md"),
join(rootDir, ".github/*.md"),
join(rootDir, "lib/**/*.md"),
join(rootDir, "test/**/*.md"),
join(rootDir, "example/**/*.md"),
...excludeGlobs(
rootDir,
"CHANGELOG.md"
)
];
const configPath = join(rootDir, ".markdownlint.json");
return lintTestRepo(t, globPatterns, configPath);
});
test("https://github.com/pi-hole/docs", (t) => {
const rootDir = "./test-repos/pi-hole-docs";
const globPatterns = [ join(rootDir, "**/*.md") ];

View file

@ -16,7 +16,7 @@ import { markdownlintParallel } from "./markdownlint-test-parallel.mjs";
*
* @param {import("ava").ExecutionContext<unknown>} t Test instance.
* @param {string[]} globPatterns Array of files to in/exclude.
* @param {string} configPath Path to config file.
* @param {string} [configPath] Path to config file.
* @param {Configuration} [configOverrides] Configuration overrides.
* @param {boolean} [parallel] True to lint in parallel.
* @returns {Promise<void>} Test result.
@ -30,9 +30,8 @@ export function lintTestRepo(t, globPatterns, configPath, configOverrides, paral
const yamlParse = (/** @type {string} */ yaml) => jsYaml.load(yaml);
return Promise.all([
globby(globPatterns),
readConfig(configPath, [ jsoncParse, yamlParse ])
]).then((globbyAndReadConfigResults) => {
const [ files, rawConfig ] = globbyAndReadConfigResults;
configPath ? readConfig(configPath, [ jsoncParse, yamlParse ]) : {}
]).then(([ files, rawConfig ]) => {
// eslint-disable-next-line no-console
console.log(`${t.title}: Linting ${files.length} files...`);
const cookedConfig = Object.fromEntries(

View file

@ -337,12 +337,6 @@ Generated by [AVA](https://avajs.dev).
## https://github.com/mkdocs/mkdocs
> Expected linting violations
''
## https://github.com/mochajs/mocha
> Expected linting violations
''