From d93570a6195d2be5fe448bb0d33d4f64e839676e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Fri, 3 Sep 2021 17:01:58 +0200 Subject: feat(lint): add support for config file and CLI flags for rules (#11776) This commit adds support for following flags in deno lint subcommand: --config - allows to load configuration file and parses "lint" object --rules-tags= - allows specifying which set of tagged rules should be run --rules-include= - allow specifying which rules should be run --rules-exclude= - allow specifying which rules should not be run --- cli/lsp/language_server.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/lsp/language_server.rs') diff --git a/cli/lsp/language_server.rs b/cli/lsp/language_server.rs index 6f944f404..8d13382a7 100644 --- a/cli/lsp/language_server.rs +++ b/cli/lsp/language_server.rs @@ -392,7 +392,7 @@ impl Inner { ConfigFile::read(path)? }; let (value, maybe_ignored_options) = - config_file.as_compiler_options()?; + config_file.to_compiler_options()?; tsconfig.merge(&value); self.maybe_config_file = Some(config_file); self.maybe_config_uri = Some(config_url); -- cgit v1.2.3