build: ignore files in .git when running markdownlint-cli2 (#46608)

This commit is contained in:
David Sanders 2025-04-10 16:37:07 -07:00 committed by GitHub
parent 446d0769ed
commit 74d641c7b3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;