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 ruleP2universalStack: typescript
namingconventionslintingreadability
Reserve the leading-underscore name prefix for intentionally unused bindings
Do not prefix used variables/params with an underscore; the underscore convention signals 'intentionally unused' to linters and readers.
PR: hegnar-journalist-boost · org-mining-deep-2026-06Created: Jun 17, 2026
Bad example
Old codetypescript
| 1 | const _redisConnection = getRedisConnection(); |
| 2 | queue.use(_redisConnection); // it IS used |
Explanation (EN)
Objašnjenje (HR)
Good example
New codetypescript
| 1 | const redisConnection = getRedisConnection(); |
| 2 | queue.use(redisConnection); |
Explanation (EN)
Objašnjenje (HR)