From c753fd859cfabeaa64be5f0ac8cf895ca091f83e Mon Sep 17 00:00:00 2001 From: Claas Augner <495429+caugner@users.noreply.github.com> Date: Thu, 21 Nov 2024 17:28:32 +0100 Subject: [PATCH] fix(scripts/front-matter_linter): exclude conflicting/orphaned (#36905) --- scripts/front-matter_linter.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/front-matter_linter.js b/scripts/front-matter_linter.js index c49c3eb565a1f9c..d351a157c3a10cd 100644 --- a/scripts/front-matter_linter.js +++ b/scripts/front-matter_linter.js @@ -24,11 +24,14 @@ async function resolveDirectory(file) { .withErrors() .withFullPaths() .filter((filePath) => filePath.endsWith("index.md")) + .exclude((dirName) => dirName === "conflicting" || dirName === "orphaned") .crawl(file); return api.withPromise(); } else if ( stats.isFile() && file.endsWith("index.md") && + !file.includes("/conflicting/") && + !file.includes("/orphaned/") && !file.includes("tests/front-matter_test_files") ) { return [file];