mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-01-27 17:36:10 +01:00
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
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:
parent
866b56a79f
commit
9e08a4c86e
5 changed files with 3 additions and 31 deletions
|
|
@ -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") ];
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
''
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue