build: ignore files in .git when running markdownlint-cli2 (#46609)
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: David Sanders <dsanders11@ucsbalum.com>
This commit is contained in:
parent
323aca8822
commit
f66c385080
1 changed files with 1 additions and 1 deletions
|
@ -278,7 +278,7 @@ const LINTERS = [{
|
||||||
}, {
|
}, {
|
||||||
key: 'md',
|
key: 'md',
|
||||||
roots: ['.'],
|
roots: ['.'],
|
||||||
ignoreRoots: ['node_modules', 'spec/node_modules'],
|
ignoreRoots: ['.git', 'node_modules', 'spec/node_modules'],
|
||||||
test: filename => filename.endsWith('.md'),
|
test: filename => filename.endsWith('.md'),
|
||||||
run: async (opts, filenames) => {
|
run: async (opts, filenames) => {
|
||||||
let errors = false;
|
let errors = false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue