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).
backend ruleP1universalStack: node
importsdependenciesmaintainability
Import from a package's public entry point, not deep internal paths
Use a library's documented public export instead of reaching into its internal/private module paths, which are unstable and can break on minor upgrades.
PR: hegnar-user-ws · org-mining-2026-06Created: Jun 17, 2026
Bad example
Old codetypescript
| 1 | import { fromArrayLike } from 'rxjs/internal/observable/innerFrom'; |
Explanation (EN)
Objašnjenje (HR)
Good example
New codetypescript
| 1 | import { from } from 'rxjs'; |
Explanation (EN)
Objašnjenje (HR)