We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44d4ac9 commit ccb0192Copy full SHA for ccb0192
1 file changed
src/utils.ts
@@ -93,14 +93,10 @@ export function formatErrors(
93
if (loaderOptions.ignoreDiagnostics.indexOf(diagnostic.code) !== -1) {
94
return false;
95
}
96
- if (matchesReportFiles !== null && diagnostic.file !== undefined) {
97
- const relativeFileName = path.relative(
98
- context,
99
- diagnostic.file.fileName,
100
- );
101
- if (!matchesReportFiles(relativeFileName)) {
+ if (matchesReportFiles !== null &&
+ diagnostic.file !== undefined &&
+ !matchesReportFiles(path.relative(context, diagnostic.file.fileName))) {
102
103
- }
104
105
return true;
106
})
0 commit comments