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: TypeScript
typescriptnamingconsistency
Keep type and variable singular/plural naming aligned
Don't pair a plural type name with a singular variable (or vice versa); name both consistently and generically (PdfFontConfig, not CurrentPdfFonts for one value).
PR: vinify-frontend · org-mining-hist-2026-06Created: Jun 19, 2026
Bad example
Old codetypescript
| 1 | type PdfFonts = { title: string }; |
| 2 | const currentPdfFont: PdfFonts = { title: 'serif' }; |
Explanation (EN)
Objašnjenje (HR)
Good example
New codetypescript
| 1 | type PdfFontConfig = { title: string }; |
| 2 | const pdfFontConfig: PdfFontConfig = { title: 'serif' }; |
Explanation (EN)
Objašnjenje (HR)