Rules Hub
Coding Rules Library
← Back to all rules
Rule priority, scope & exceptions
Use this to align rules with the senior-level structure (P0/P1/P2, scope, exceptions/tradeoffs).
fullstack ruleP2universalStack: node
dependenciespackage-managementbloat
Avoid adding a dependency that overlaps one you already have
Before adding a package, confirm it isn't duplicating functionality of an existing dependency.
PR: hegnar-web · org-mining-hist-2026-06Created: Jun 19, 2026
Bad example
Old codejson
| 1 | // package.json adds both a dropdown lib and a drawer lib that bundle the same primitive |
Explanation (EN)
Objašnjenje (HR)
Good example
New codejson
| 1 | // confirm the new lib uses a different primitive, or reuse the existing one |
Explanation (EN)
Objašnjenje (HR)