From 1aa95fa6d6dbc1d35c13e70ac48b9f9dd662d444 Mon Sep 17 00:00:00 2001 From: Jason Miller Date: Tue, 17 Oct 2023 23:00:27 -0400 Subject: [PATCH] Fix oxlint --quiet suppressing errors (#1008) As explained by the comment in source, --quiet should only suppress warning output. Please double-check that I haven't done something totally wrong here, I don't know Rust. --- crates/oxc_diagnostics/src/service.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/oxc_diagnostics/src/service.rs b/crates/oxc_diagnostics/src/service.rs index 1654b7868..0eee575f8 100644 --- a/crates/oxc_diagnostics/src/service.rs +++ b/crates/oxc_diagnostics/src/service.rs @@ -110,7 +110,7 @@ impl DiagnosticService { } // The --quiet flag follows ESLint's --quiet behavior as documented here: https://eslint.org/docs/latest/use/command-line-interface#--quiet // Note that it does not disable ALL diagnostics, only Warning diagnostics - if self.quiet { + else if self.quiet { continue; }