diff --git a/cli/tools/lint/mod.rs b/cli/tools/lint/mod.rs index c10697e106..2d8a558941 100644 --- a/cli/tools/lint/mod.rs +++ b/cli/tools/lint/mod.rs @@ -293,8 +293,10 @@ impl WorkspaceLinter { deno_lint_config: lint_config, })); + eprintln!("paths {:#?}", paths); let mut futures = Vec::with_capacity(2); - if linter.has_package_rules() { + // Package rules are only in effect if user didn't explicitly specify paths on the command line + if paths.is_empty() && linter.has_package_rules() { if self.workspace_module_graph.is_none() { let module_graph_creator = self.module_graph_creator.clone(); let packages = self.workspace_dir.jsr_packages_for_publish(); diff --git a/tests/specs/lint/package_with_css_export/__test__.jsonc b/tests/specs/lint/package_with_css_export/__test__.jsonc index 262ac37c07..d86957e606 100644 --- a/tests/specs/lint/package_with_css_export/__test__.jsonc +++ b/tests/specs/lint/package_with_css_export/__test__.jsonc @@ -6,7 +6,7 @@ }, "run_file": { "args": "lint main.ts", - "output": "output.out" + "output": "Checked 1 file\n" } } }