From a189c5393e1b106687736635fea0b8aeca283826 Mon Sep 17 00:00:00 2001 From: Brenley Dueck Date: Tue, 25 Oct 2022 07:21:20 -0500 Subject: feat(lint): add a report lint config setting (#16045) Builds off this PR to add a "report" setting to deno.json which can be "pretty", "compact", or "json". --- cli/args/config_file.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cli/args') diff --git a/cli/args/config_file.rs b/cli/args/config_file.rs index b0a5b355b..cf88e3999 100644 --- a/cli/args/config_file.rs +++ b/cli/args/config_file.rs @@ -342,6 +342,7 @@ impl FilesConfig { struct SerializedLintConfig { pub rules: LintRulesConfig, pub files: SerializedFilesConfig, + pub report: Option, } impl SerializedLintConfig { @@ -352,6 +353,7 @@ impl SerializedLintConfig { Ok(LintConfig { rules: self.rules, files: self.files.into_resolved(config_file_specifier)?, + report: self.report, }) } } @@ -360,6 +362,7 @@ impl SerializedLintConfig { pub struct LintConfig { pub rules: LintRulesConfig, pub files: FilesConfig, + pub report: Option, } #[derive(Clone, Copy, Debug, Serialize, Deserialize)] -- cgit v1.2.3