pub fn format_lint_json(results: &[FileLintResult], compact: bool) -> String
Format lint results as JSON.