A rule to enforce readonly
modifier in typescript class
#4310
Answered
by
Conaclos
freiondrej-lokalise
asked this question in
Q&A
-
Hello, I found https://biomejs.dev/linter/rules/use-naming-convention/ which does work with the modifiers, but not quite how I thought it would - I hoped it could automatically apply the readonly modifier to members which aren't written to outside the constructor. |
Beta Was this translation helpful? Give feedback.
Answered by
Conaclos
Oct 16, 2024
Replies: 1 comment 1 reply
-
This is not the purpose of useNamingConvention. Please add comment to #3 to request a new rule and possibly a link to an existing rule of another linter that does what you want. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
freiondrej-lokalise
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is not the purpose of useNamingConvention. Please add comment to #3 to request a new rule and possibly a link to an existing rule of another linter that does what you want.