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 ruleP1universalStack: node
npmpackage-jsonpublishingsecurity
Set private:true on packages that should never be published
Mark internal/app package.json files with private:true so package managers refuse an accidental npm publish.
PR: hegnar-web · org-mining-hist-2026-06Created: Jun 19, 2026
Bad example
Old codejson
| 1 | { |
| 2 | "name": "my-app", |
| 3 | "version": "1.0.0" |
| 4 | } |
Explanation (EN)
Objašnjenje (HR)
Good example
New codejson
| 1 | { |
| 2 | "name": "my-app", |
| 3 | "private": true |
| 4 | } |
Explanation (EN)
Objašnjenje (HR)