diff options
author | Brenley Dueck <brenleydueck@gmail.com> | 2022-10-25 07:21:20 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-25 14:21:20 +0200 |
commit | a189c5393e1b106687736635fea0b8aeca283826 (patch) | |
tree | 6c0119266f77611e1ba8146ee394f8e10cf8b3c4 /cli/args/config_file.rs | |
parent | ac5fcf626a77db7795f7ab2b4f15e4ecb3270171 (diff) |
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".
Diffstat (limited to 'cli/args/config_file.rs')
-rw-r--r-- | cli/args/config_file.rs | 3 |
1 files changed, 3 insertions, 0 deletions
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<String>, } 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<String>, } #[derive(Clone, Copy, Debug, Serialize, Deserialize)] |