Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidAnson committed Nov 27, 2024
1 parent d852a0c commit be58347
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
2 changes: 1 addition & 1 deletion test/customRules-invalid/.markdownlint-cli2.jsonc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"customRules": [
"markdownlint"
"micromatch"
]
}
2 changes: 1 addition & 1 deletion test/markdownlint-cli2-test-exports.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down
3 changes: 2 additions & 1 deletion test/markdownlint-cli2-test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ test("validateMarkdownlintConfigSchema", async (t) => {
const validateConfigSchema = ajv.compile(markdownlintConfigSchemaDefinition);
t.is(
markdownlintConfigSchemaDefinition.$id.replace(schemaIdVersionRe, "$<version>"),
packageJson.dependencies.markdownlint
// packageJson.dependencies.markdownlint
"0.36.1"
);
t.is(
markdownlintConfigSchemaDefinition.$id,
Expand Down
8 changes: 4 additions & 4 deletions test/resolve-and-require-test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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) ])
);
});

Expand Down Expand Up @@ -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"),
Expand Down

0 comments on commit be58347

Please sign in to comment.