Skip to content

Commit 6fccb20

Browse files
authored
fix: avoid loading configs from node_modules dir (#613)
Closes: #606
1 parent 7cba5f3 commit 6fccb20

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/eslint-reporter/reporter/EsLintReporter.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ function createEsLintReporter(configuration: EsLintReporterConfiguration): Repor
2121

2222
function isFileIncluded(path: string) {
2323
return (
24+
!path.includes('node_modules') &&
2425
includedGlobPatterns.some((pattern) => minimatch(path, pattern)) &&
2526
!engine.isPathIgnored(path)
2627
);

0 commit comments

Comments
 (0)