It’s important to keep one standard way of ordering properties in vue components, that will defiantly ease the readability of code and debugging.
Different opinions can be found when you ask GOOGLE for help.
There are some ground rules, those need to be followed, developer’s can’t escape them, taking example of defining a method in JS. We need to follow rules defined by language or framework in order to run app correctly.
Same goes with organising properties order in vue component to maintain discipline.
Properties can be order as given blow.
- lifecycle hooks