From 9d16996bbde316b6510d12326a4c1321256276ee Mon Sep 17 00:00:00 2001 From: Steve Szczecina Date: Thu, 17 Nov 2022 12:32:52 -0700 Subject: [PATCH] fix: quiet mode filter only returns errors The quiet mode filter should only return error severity results, this ensures that todo severity results are excluded from the quiet results. --- src/formatter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/formatter.ts b/src/formatter.ts index 1a4757c..33cfc43 100644 --- a/src/formatter.ts +++ b/src/formatter.ts @@ -275,7 +275,7 @@ function filterResults(results: ESLint.LintResult[]) { results.forEach((result) => { const filteredMessages = result.messages.filter( (message: Linter.LintMessage) => { - return message.severity !== Severity.warn; + return message.severity === Severity.error; } );