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
lintclean-codecimaintenance
Treat unused lint-disable directives as errors
Configure the linter to error on unused disable directives so stale suppressions get removed instead of lingering.
PR: hegnar-forum-web · org-mining-3rd-2026-06Created: Jun 18, 2026
Bad example
Old codetext
| 1 | // Default severity is warn, so 5 unused disable directives stay in the codebase |
Explanation (EN)
Objašnjenje (HR)
Good example
New codebash
| 1 | oxlint --report-unused-disable-directives-severity=error |
Explanation (EN)
Objašnjenje (HR)