📎 Implement useReadonlyClassProperties
- typescript-eslint/prefer-readonly
#4356
Labels
A-Linter
Area: linter
L-JavaScript
Language: JavaScript and super languages
S-Help-wanted
Status: you're familiar with the code base and want to help the project
Description
Implement typescript-eslint/prefer-readonly.
Want to contribute? Lets you know you are interested! We will assign you to the issue to prevent several people to work on the same issue. Don't worry, we can unassign you later if you are no longer interested in the issue! Read our contributing guide and analyzer contributing guide.
I suggested the name
useReadonlyClassProperties
because it is in line with some of our existing names such asnoUnusedPrivateClassMembers
.See the related discussion for some context.
Options
I don't think we should implement the ESLint's option
onlyInlineLambdas
because it is very rarely used.I propose adding an option
checkPublic
that extends the check on all properties (public
andprotected
properties).The text was updated successfully, but these errors were encountered: