Skip to content

Commit

Permalink
fix: avoid loading configs from node_modules dir (#613)
Browse files Browse the repository at this point in the history
Closes: #606
  • Loading branch information
ratherblue committed May 11, 2021
1 parent 7cba5f3 commit 6fccb20
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/eslint-reporter/reporter/EsLintReporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ function createEsLintReporter(configuration: EsLintReporterConfiguration): Repor

function isFileIncluded(path: string) {
return (
!path.includes('node_modules') &&
includedGlobPatterns.some((pattern) => minimatch(path, pattern)) &&
!engine.isPathIgnored(path)
);
Expand Down

0 comments on commit 6fccb20

Please sign in to comment.