Mark properties and arrays `readonly` so accidental mutation is a compile error.
Why This Matters
Mutable shared data leads to action-at-a-distance bugs; `readonly` catches unintended writes at compile time.
Related Rules
Catch this automatically on every PR
BeforeMerge scans your pull requests against this rule and dozens more. Get actionable feedback before code ships.