Skip to content

Commit

Permalink
fix(scripts/front-matter_linter): exclude conflicting/orphaned (#36905)
Browse files Browse the repository at this point in the history
  • Loading branch information
caugner authored Nov 21, 2024
1 parent 9818785 commit c753fd8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/front-matter_linter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit c753fd8

Please sign in to comment.