From 51e3db956a5927229e3f46f4eaaf317e935f8f17 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Tue, 23 Nov 2021 10:38:11 -0500 Subject: 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. --- cli/tools/lint.rs | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'cli/tools/lint.rs') 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::>(); + include_files = lint_config.files.include.clone(); } if exclude_files.is_empty() { - exclude_files = lint_config - .files - .exclude - .iter() - .map(PathBuf::from) - .collect::>(); + exclude_files = lint_config.files.exclude.clone(); } } -- cgit v1.2.3