Use readonly on properties that are initialized by Angular #2503
TomSchrier
started this conversation in
New Rule Proposals
Replies: 1 comment
-
This should already be covered by some existing rules.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The Angular style guide states:
From: https://angular.dev/style-guide#use-readonly-on-properties-that-are-initialized-by-angular
It would be nice to have a rule that gives an error if one of these properties is not marked as
readonly
.Beta Was this translation helpful? Give feedback.
All reactions