Closed szafran89 closed 4 years ago
From one side I'd say it will make components more readable BUT I also think it will just complicate peoples life and make them deal with countless eslint errors responsible only for reordering components logic. I just don't think this small enhancement is work dealing with all of this .
If it would be my internal company project I would say yes but for open source I'm against. I'm keeping issue open tho to hear more opinions.
IMO it would be great to do this and get feedback from contributors (it's fine or wrong). It's not big deal to disable this option again. Of course it will work only for theme b/c in core we have js files instead of vue. In this case our scripts section is not so long (in most cases a few lines). So we should avoid countless eslint errors ;)
@filrak did you change your mind? :)
What is the motivation for adding / enhancing this feature?
We should follow recommended rules https://vuejs.org/v2/style-guide/#Component-instance-options-order-recommended. Once we provide correct order we can easier/faster work with vue components.
What are the acceptance criteria
Can you complete this feature request by yourself?
YES
Additional information
Here is description of
order-in-components
property https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/order-in-components.md