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: JavaScript / TypeScript
correctnessdata-flowauthregression
Don't drop data needed by downstream flows
Before removing the propagation of a value (token, credential, query param), verify nothing downstream depends on it; silently dropping it can break later steps.
PR: vinify-frontend · org-mining-hist-2026-06Created: Jun 19, 2026
Bad example
Old codetypescript
| 1 | // removed: router.push(`/registration?variant=google&idToken=${credential}`) |
| 2 | // but registration step still expects idToken from the URL |
Explanation (EN)
Objašnjenje (HR)
Good example
New codetypescript
| 1 | setRegistrationVariant(RegistrationVariant.GOOGLE); |
| 2 | formMethods.setValue('idToken', credential); // keep token available to next step |
Explanation (EN)
Objašnjenje (HR)