You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lifecycle methods (these should be ordered in they are called)
a. OnChanges
b. OnInit
c. DoCheck
d. AfterContentInit
e. AfterContentChecked
f. AfterViewInit
g. AfterViewChecked
h. OnDestroy
public methods
private methods
Rule details:
Enforce the order of items within the class according to the above list
The rule should allow an options (obj/arr?) to customize the order
Note: Lifecycle method order should not be adjustable, but where the lifecycle methods are in relation to other items should be adjustable.
Enforce 1 line break between properties, getters, inputs, outputs
Enforce 2 line breaks between outputs and constructor and all methods
Create rule
Make the rule fixable
Add rule to our default ruleset
The text was updated successfully, but these errors were encountered:
This rule is similar to https://palantir.github.io/tslint/rules/member-ordering/ but that rule doesn't offer the exact implementation our libraries desire.
Currently our library follows the standard:
a. OnChanges
b. OnInit
c. DoCheck
d. AfterContentInit
e. AfterContentChecked
f. AfterViewInit
g. AfterViewChecked
h. OnDestroy
Rule details:
The text was updated successfully, but these errors were encountered: