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: typescript
seostructured-datacorrectness
Structured data must match what the page actually renders
Generate JSON-LD/SEO markup from the same item count, order and nesting the user sees, not server defaults.
PR: hegnar-forum-web · org-mining-deep-2026-06Created: Jun 17, 2026
Bad example
Old codets
| 1 | jsonLd.comments = first20 // but the page renders 50, or different nesting |
Explanation (EN)
Objašnjenje (HR)
Good example
New codets
| 1 | jsonLd.comments = renderedReplies // matches visible count/order/nesting |
Explanation (EN)
Objašnjenje (HR)