From efe956b4fd51818e3a982b9d7c4111c408d07291 Mon Sep 17 00:00:00 2001 From: Zheyu Zhang Date: Thu, 4 Nov 2021 23:12:12 +0800 Subject: fix(lint): use recommended tag if there is no tags in config file or flags (#12644) --- cli/lsp/analysis.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cli/lsp') 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, 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); -- cgit v1.2.3