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 ruleP2project specificStack: css
scssorderingconsistencylint
Keep style properties in a consistent (alphabetical) order
Order CSS declarations consistently (e.g. alphabetically) to reduce churn and ease scanning.
PR: hegnar-forum-web · org-mining-hist-2026-06Created: Jun 20, 2026
Bad example
Old codescss
| 1 | .row { |
| 2 | padding: 8px; |
| 3 | align-items: center; |
| 4 | color: blue; |
| 5 | } |
Explanation (EN)
Objašnjenje (HR)
Good example
New codescss
| 1 | .row { |
| 2 | align-items: center; |
| 3 | color: blue; |
| 4 | padding: 8px; |
| 5 | } |
Explanation (EN)
Objašnjenje (HR)