summaryrefslogtreecommitdiff
path: root/cli/lsp/analysis.rs
diff options
context:
space:
mode:
authorZheyu Zhang <zheyuzhang03@gmail.com>2021-11-04 23:12:12 +0800
committerGitHub <noreply@github.com>2021-11-04 11:12:12 -0400
commitefe956b4fd51818e3a982b9d7c4111c408d07291 (patch)
tree9e3bf26c021758e962473468a7e954fc9cb63937 /cli/lsp/analysis.rs
parent318dcc33afd510c02984d4d3527c88bf4383bcf1 (diff)
fix(lint): use recommended tag if there is no tags in config file or flags (#12644)
Diffstat (limited to 'cli/lsp/analysis.rs')
-rw-r--r--cli/lsp/analysis.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/cli/lsp/analysis.rs b/cli/lsp/analysis.rs
index 709131689..011ffa757 100644
--- a/cli/lsp/analysis.rs
+++ b/cli/lsp/analysis.rs
@@ -132,8 +132,7 @@ pub fn get_lint_references(
parsed_source: &deno_ast::ParsedSource,
maybe_lint_config: Option<&LintConfig>,
) -> Result<Vec<Reference>, AnyError> {
- let lint_rules =
- get_configured_rules(maybe_lint_config, vec![], vec![], vec![])?;
+ let lint_rules = get_configured_rules(maybe_lint_config, None, None, None)?;
let linter = create_linter(parsed_source.media_type(), lint_rules);
let lint_diagnostics = linter.lint_with_ast(parsed_source);