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
dependenciescleanuppackage-json
Remove dependencies you no longer use
Delete packages added for experiments or removed features from the manifest so the dependency tree stays lean and accurate.
PR: hegnar-zephr-components · org-mining-hist-2026-06Created: Jun 19, 2026
Bad example
Old codejson
| 1 | "dependencies": { |
| 2 | "react-router-dom": "^6.10.0" // installed while debugging, never used |
| 3 | } |
Explanation (EN)
Objašnjenje (HR)
Good example
New codejson
| 1 | "dependencies": { |
| 2 | // only packages actually imported by the app |
| 3 | } |
Explanation (EN)
Objašnjenje (HR)