From 22b6eefc50a96b3ef0029c5d0ca7c9b7034147a3 Mon Sep 17 00:00:00 2001 From: "trop[bot]" <37223003+trop[bot]@users.noreply.github.com> Date: Fri, 11 Apr 2025 11:21:20 +0200 Subject: [PATCH] build: ignore files in .git when running markdownlint-cli2 (#46611) Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: David Sanders --- script/lint.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/lint.js b/script/lint.js index bf9109cb7e6f..06f0b7ac305c 100755 --- a/script/lint.js +++ b/script/lint.js @@ -278,7 +278,7 @@ const LINTERS = [{ }, { key: 'md', roots: ['.'], - ignoreRoots: ['node_modules', 'spec/node_modules'], + ignoreRoots: ['.git', 'node_modules', 'spec/node_modules'], test: filename => filename.endsWith('.md'), run: async (opts, filenames) => { let errors = false;