mirror of
https://github.com/denoland/deno.git
synced 2025-08-03 10:33:54 +00:00
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=<tags> - allows specifying which set of tagged rules should be run --rules-include=<rules> - allow specifying which rules should be run --rules-exclude=<rules> - allow specifying which rules should not be run
This commit is contained in:
parent
c3001fe280
commit
d93570a619
15 changed files with 484 additions and 31 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue