1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 15:24:46 -05:00

fix(cli/tools/lint): output json reports to stdout (#11311)

This commit is contained in:
Casper Beyer 2021-07-08 02:39:24 +08:00 committed by GitHub
parent 5bcbbb75e9
commit f48a3fd194
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -350,7 +350,7 @@ impl LintReporter for JsonLintReporter {
fn close(&mut self, _check_count: usize) {
sort_diagnostics(&mut self.diagnostics);
let json = serde_json::to_string_pretty(&self);
eprintln!("{}", json.unwrap());
println!("{}", json.unwrap());
}
}