-
-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[prefer-readonly-type] Support Readonly<T> #51
Comments
I'm interested in taking this on. |
@kevinbarabash it's yours 😄. Edit: removed the rest of this comment as it was irrelevant to this issue. |
Thanks. I'll start work on this this weekend. |
@kevinbarabash How you going with this? |
I ended up getting side-tracked by something else and have put my TypeScript development on hold. |
+1 for this. Having to put the |
+1 |
Just wanted to point out that https://typescript-eslint.io/rules/prefer-readonly-parameter-types works with |
@adrian-gierakowski I've actually been working over there helping with that rule. I've also since extracted out the relevant bits and improved upon them in a new lib called is-immutable-type. v5 of this lib (currently in beta) uses that library and resolves this issue. |
Support the following case (at the moment
functional/prefer-readonly-type
gets emitted):This is a prerequisite for #32 (which is about a fixer to
Readonly<T>
if I understand it correctly); but the validation can implemented before.The text was updated successfully, but these errors were encountered: