Skip to content

Commit e288438

Browse files
authored
fix(eslint): don't lint ignored files (#491)
Filter out files ignored by the eslint config when linting on watched builds. Before this, ignored files would still be passed to the linter when changed and would trigger warnings in webpack. Closes #485
1 parent f3a0c98 commit e288438

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/eslint-reporter/reporter/EsLintReporter.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ function createEsLintReporter(configuration: EsLintReporterConfiguration): Repor
4040
) &&
4141
(configuration.options.extensions || []).some((extension) =>
4242
changedFile.endsWith(extension)
43-
)
43+
) &&
44+
!engine.isPathIgnored(changedFile)
4445
);
4546

4647
if (changedAndIncludedFiles.length) {

0 commit comments

Comments
 (0)