Member-ordering of decorators #1424
Unanswered
dionatan-g
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
Is there a way to set an order for specific decorated properties in Angular?
I would like to achieve the following order lint:
@output
@input (setter and getter together, one after the other)
@ContentChildren
@ContentChild
@ViewChildren
@ViewChild
@HostBinding
@HostListener
public fields
private fields
constructor
lifecycles (onInit, destroy etc)
public methods
public standalone getters
private methods
Currently, there's no way to achieve this by using the typescript-eslint/member-ordering rule, does someone know a plugin or a different rule that does that?
Beta Was this translation helpful? Give feedback.
All reactions