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).
frontend ruleP2universalStack: html
htmlcleanupattributesnitpick
Remove element id attributes that are not used
Drop id attributes added to markup when nothing references them for styling, scripting, or hydration.
PR: hegnar-web · org-mining-hist-2026-06Created: Jun 19, 2026
Bad example
Old codehtml
| 1 | <div id="autolease-wrapper" className="c-autolease" /> |
Explanation (EN)
Objašnjenje (HR)
Good example
New codehtml
| 1 | <div className="c-autolease" /> |
Explanation (EN)
Objašnjenje (HR)