-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
missing "class-memebers" in "order" for typescript-eslint-parser #2066
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
Comments
If you mean the sort-comp rule, you can configure it with “instance-variables” per the docs. |
I tried it, but it didn't work. |
It’s possible it doesn’t work with typescript, of course. What is your exact config? |
I think there is already an open issue about this problem: #1664 |
That issue is closed. I think this is typescript specific - JS doesn’t use the private keyword. Separately, instance variables refers to public properties. I’m not sure we support JS private fields, let alone TS ones. |
We now support JS private fields and methods. If there's any issue with TS's |
When I use a tsx file (typescript) with typescript-eslint-parser, and I write a class member, it always errors me for placing it before lifecycle methods. ex:
Can you please add "class-members" to the "order" category, or support "everything-else" in multiple places?
Thanks!
The text was updated successfully, but these errors were encountered: