From 763f05e74dfd0032b238603f625893a52e363591 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Thu, 25 Jul 2024 09:07:59 -0400 Subject: fix(unstable): move sloppy-import warnings to lint rule (#24710) Adds a new `no-sloppy-imports` lint rule and cleans up the lint code. Closes #22844 Closes https://github.com/denoland/deno_lint/issues/1293 --- cli/tools/run/mod.rs | 7 ------- 1 file changed, 7 deletions(-) (limited to 'cli/tools/run') diff --git a/cli/tools/run/mod.rs b/cli/tools/run/mod.rs index baa8e72db..65044fbad 100644 --- a/cli/tools/run/mod.rs +++ b/cli/tools/run/mod.rs @@ -45,13 +45,6 @@ To grant permissions, set them before the script argument. For example: let deno_dir = factory.deno_dir()?; let http_client = factory.http_client_provider(); - if cli_options.unstable_sloppy_imports() { - log::warn!( - "{} Sloppy imports are not recommended and have a negative impact on performance.", - crate::colors::yellow("Warning"), - ); - } - // Run a background task that checks for available upgrades or output // if an earlier run of this background task found a new version of Deno. #[cfg(feature = "upgrade")] -- cgit v1.2.3