diff --git a/test/markdownlint-test-repos-mdn-content.mjs b/test/markdownlint-test-repos-mdn-content.mjs index 718a3941..78088e86 100644 --- a/test/markdownlint-test-repos-mdn-content.mjs +++ b/test/markdownlint-test-repos-mdn-content.mjs @@ -9,5 +9,5 @@ test("https://github.com/mdn/content", (t) => { const rootDir = "./test-repos/mdn-content"; const globPatterns = [ join(rootDir, "**/*.md") ]; const configPath = join(rootDir, ".markdownlint-cli2.jsonc"); - return lintTestRepo(t, globPatterns, configPath, { "table-column-style": false }, true); + return lintTestRepo(t, globPatterns, configPath, undefined, true); }); diff --git a/test/markdownlint-test-repos.mjs b/test/markdownlint-test-repos.mjs index 317835ca..13b54c20 100644 --- a/test/markdownlint-test-repos.mjs +++ b/test/markdownlint-test-repos.mjs @@ -14,20 +14,20 @@ import { markdownlintParallel } from "./markdownlint-test-parallel.mjs"; /** * Lints a test repository. * - * @param {Object} t Test instance. + * @param {import("ava").ExecutionContext} t Test instance. * @param {string[]} globPatterns Array of files to in/exclude. * @param {string} configPath Path to config file. * @param {Configuration} [configOverrides] Configuration overrides. * @param {boolean} [parallel] True to lint in parallel. - * @returns {Promise} Test result. + * @returns {Promise} Test result. */ export function lintTestRepo(t, globPatterns, configPath, configOverrides, parallel) { t.plan(1); - const jsoncParse = (json) => { + const jsoncParse = (/** @type {string} */ json) => { const config = jsoncParser.parse(json, [], { "allowTrailingComma": true }); return config.config || config; }; - const yamlParse = (yaml) => jsYaml.load(yaml); + const yamlParse = (/** @type {string} */ yaml) => jsYaml.load(yaml); return Promise.all([ globby(globPatterns), readConfig(configPath, [ jsoncParse, yamlParse ])