From e19f78c42aa989215ff231c2a6b35587f8db6fc8 Mon Sep 17 00:00:00 2001
From: David Anson <david@dlaa.me>
Date: Wed, 11 Dec 2024 21:52:50 -0800
Subject: [PATCH] wip

---
 markdownlint-cli2.mjs | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/markdownlint-cli2.mjs b/markdownlint-cli2.mjs
index 9b20f3d..46c3cb7 100755
--- a/markdownlint-cli2.mjs
+++ b/markdownlint-cli2.mjs
@@ -9,6 +9,7 @@ import pathDefault from "node:path";
 const pathPosix = pathDefault.posix;
 import { pathToFileURL } from "node:url";
 import { globby } from "globby";
+import micromatch from "micromatch";
 import { applyFixes, getVersion } from "markdownlint";
 import { lint, extendConfig, readConfig } from "markdownlint/promise";
 import { expandTildePath } from "markdownlint/helpers";
@@ -197,13 +198,12 @@ const readOptionsOrConfig = async (configPath, fs, noRequire) => {
 };
 
 // Filter a list of files to ignore by glob
-const removeIgnoredFiles = (dir, files, ignores) => {
-  const micromatch = dynamicRequire("micromatch");
-  return micromatch(
+const removeIgnoredFiles = (dir, files, ignores) => (
+  micromatch(
     files.map((file) => pathPosix.relative(dir, file)),
     ignores
-  ).map((file) => pathPosix.join(dir, file));
-};
+  ).map((file) => pathPosix.join(dir, file))
+);
 
 // Process/normalize command-line arguments and return glob patterns
 const processArgv = (argv) => {