summaryrefslogtreecommitdiff
path: root/cli/args/config_file.rs
diff options
context:
space:
mode:
authorBrenley Dueck <brenleydueck@gmail.com>2022-10-25 07:21:20 -0500
committerGitHub <noreply@github.com>2022-10-25 14:21:20 +0200
commita189c5393e1b106687736635fea0b8aeca283826 (patch)
tree6c0119266f77611e1ba8146ee394f8e10cf8b3c4 /cli/args/config_file.rs
parentac5fcf626a77db7795f7ab2b4f15e4ecb3270171 (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.rs3
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)]