diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2021-11-23 10:38:11 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-23 10:38:11 -0500 |
commit | 51e3db956a5927229e3f46f4eaaf317e935f8f17 (patch) | |
tree | 1af79152c7c1edc2c9bc21e8501aad1ba5d7e426 /cli/tools/lint.rs | |
parent | d8afd5683857de83f3cc80c33322df3d65377210 (diff) |
fix(cli): config file should resolve paths relative to the config file (#12867)
* Add `specifier_to_file_path` to support converting a ModuleSpecifier with a unix-style path to a PathBuf on Windows.
Diffstat (limited to 'cli/tools/lint.rs')
-rw-r--r-- | cli/tools/lint.rs | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/cli/tools/lint.rs b/cli/tools/lint.rs index ec42adc34..2c68a0dac 100644 --- a/cli/tools/lint.rs +++ b/cli/tools/lint.rs @@ -71,21 +71,11 @@ pub async fn lint( if let Some(lint_config) = maybe_lint_config.as_ref() { if include_files.is_empty() { - include_files = lint_config - .files - .include - .iter() - .map(PathBuf::from) - .collect::<Vec<PathBuf>>(); + include_files = lint_config.files.include.clone(); } if exclude_files.is_empty() { - exclude_files = lint_config - .files - .exclude - .iter() - .map(PathBuf::from) - .collect::<Vec<PathBuf>>(); + exclude_files = lint_config.files.exclude.clone(); } } |