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.
This commit is contained in:
Jason Miller 2023-10-17 23:00:27 -04:00 committed by GitHub
parent 4b719026bf
commit 1aa95fa6d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}