diff --git a/package.json b/package.json index 58efe8b7..46a8cea4 100644 --- a/package.json +++ b/package.json @@ -76,7 +76,7 @@ "globby": "14.0.2", "js-yaml": "4.1.0", "jsonc-parser": "3.3.1", - "markdownlint": "0.36.1", + "markdownlint": "DavidAnson/markdownlint#esm", "markdownlint-cli2-formatter-default": "0.0.5", "micromatch": "4.0.8" }, diff --git a/test/customRules-invalid/.markdownlint-cli2.jsonc b/test/customRules-invalid/.markdownlint-cli2.jsonc index f6719bd5..e198464b 100644 --- a/test/customRules-invalid/.markdownlint-cli2.jsonc +++ b/test/customRules-invalid/.markdownlint-cli2.jsonc @@ -1,5 +1,5 @@ { "customRules": [ - "markdownlint" + "micromatch" ] } diff --git a/test/markdownlint-cli2-test-exports.mjs b/test/markdownlint-cli2-test-exports.mjs index 951ab87d..9b5940e2 100644 --- a/test/markdownlint-cli2-test-exports.mjs +++ b/test/markdownlint-cli2-test-exports.mjs @@ -20,7 +20,7 @@ test("exportMappings", (t) => { ); }); -const commonJsRe = /.js$/u; +const commonJsRe = /\.js$/u; for (const [ exportName, exportPath ] of exportMappings) { test(exportName, async (t) => { diff --git a/test/markdownlint-cli2-test.mjs b/test/markdownlint-cli2-test.mjs index 91301f94..36c9042c 100644 --- a/test/markdownlint-cli2-test.mjs +++ b/test/markdownlint-cli2-test.mjs @@ -79,7 +79,8 @@ test("validateMarkdownlintConfigSchema", async (t) => { const validateConfigSchema = ajv.compile(markdownlintConfigSchemaDefinition); t.is( markdownlintConfigSchemaDefinition.$id.replace(schemaIdVersionRe, "$"), - packageJson.dependencies.markdownlint + // packageJson.dependencies.markdownlint + "0.36.1" ); t.is( markdownlintConfigSchemaDefinition.$id, diff --git a/test/resolve-and-require-test.mjs b/test/resolve-and-require-test.mjs index 97897f64..54049592 100644 --- a/test/resolve-and-require-test.mjs +++ b/test/resolve-and-require-test.mjs @@ -19,8 +19,8 @@ test("built-in module", (t) => { test("locally-installed module", (t) => { t.plan(1); t.deepEqual( - require("markdownlint"), - resolveAndRequire(require, "markdownlint", [ __dirname(import.meta) ]) + require("micromatch"), + resolveAndRequire(require, "micromatch", [ __dirname(import.meta) ]) ); }); @@ -79,8 +79,8 @@ test("module local, relative, and in alternate node_modules", (t) => { path.join(__dirname(import.meta), "customRules") ]; t.deepEqual( - require("markdownlint"), - resolveAndRequire(require, "markdownlint", dirs) + require("micromatch"), + resolveAndRequire(require, "micromatch", dirs) ); t.deepEqual( require("./customRules/node_modules/markdownlint-rule-sample-commonjs"),