You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crates/biome_json_analyze/src/lint/nursery/no_duplicate_dependencies.rs
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,8 @@ use biome_rowan::{AstNode, AstSeparatedList};
7
7
use biome_rule_options::no_duplicate_dependencies::NoDuplicateDependenciesOptions;
8
8
use rustc_hash::FxHashMap;
9
9
10
+
usecrate::utils::is_package_json;
11
+
10
12
declare_lint_rule!{
11
13
/// Prevent the listing of duplicate dependencies.
12
14
/// The rule supports the following dependency groups: "bundledDependencies", "bundleDependencies", "dependencies", "devDependencies", "overrides", "optionalDependencies", and "peerDependencies".
"Add the missing script"{{if missing_count > 1{"s"} else {""}}}" to your package.json."
136
+
"Consistent scripts across packages ensure that each can be ran reliably from the root of our project. Add the missing script"{{if missing_count > 1{"s"} else {""}}}" to your package.json."
0 commit comments