Skip to content

Commit

Permalink
feat: Add LintOptionsConfig.plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
bartlomieju committed Dec 4, 2024
1 parent 3a7f7a1 commit 6e71a6e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/deno_json/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ struct SerializedLintConfig {
#[serde(rename = "files")]
pub deprecated_files: serde_json::Value,
pub report: Option<String>,
pub plugins: Vec<String>,
}

impl SerializedLintConfig {
Expand All @@ -109,7 +110,7 @@ impl SerializedLintConfig {
log::warn!( "Warning: \"files\" configuration in \"lint\" was removed in Deno 2, use \"include\" and \"exclude\" instead.");
}
Ok(LintConfig {
options: LintOptionsConfig { rules: self.rules },
options: LintOptionsConfig { rules: self.rules, plugins: self.plugins },
files: files.into_resolved(config_file_specifier)?,
})
}
Expand All @@ -118,6 +119,7 @@ impl SerializedLintConfig {
#[derive(Clone, Debug, Default, Hash, PartialEq)]
pub struct LintOptionsConfig {
pub rules: LintRulesConfig,
pub plugins: Vec<String>,
}

#[derive(Clone, Debug, Hash, PartialEq)]
Expand Down
2 changes: 2 additions & 0 deletions src/workspace/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1423,6 +1423,8 @@ impl WorkspaceDirectory {
},
},
files: combine_patterns(root_config.files, member_config.files),
// TODO(bartlomieju): fix me
plugins: vec![]
})
}

Expand Down

0 comments on commit 6e71a6e

Please sign in to comment.