Skip to content

Commit

Permalink
Update packages/eslint-plugin/docs/rules/prefer-readonly.md
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaKGoldberg committed Oct 19, 2023
1 parent 34151ee commit 397cb60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/eslint-plugin/docs/rules/prefer-readonly.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description: "Require private members to be marked as `readonly` if they're neve
>
> See **https://typescript-eslint.io/rules/prefer-readonly** for documentation.
Private member variables (whether using the `private` modifier, or private fields) are never permitted to be modified outside of their declaring class.
Private member variables (whether using the `private` modifier or private `#` fields) are never permitted to be modified outside of their declaring class.
If that class never modifies their value, they may safely be marked as `readonly`.

This rule reports on private members are marked as `readonly` if they're never modified outside of the constructor.
Expand Down

0 comments on commit 397cb60

Please sign in to comment.