Closed
Description
As I mentioned in #10, I think that creating separate issue for each rule proposition has many benefits, so this is my first proposition:
Rule name: order-in-components
Description: Keep order of properties in components according to https://docs.gitlab.com/ce/development/fe_guide/style_guide_js.html#ordering
Gitlab's style guide lists all properties, I would however consider grouping lifecycle hooks in order to make it simpler, like so:
- name
- props
- mixins
- data
- components
- computedProps
- methods
- lifecycle hooks
Introducing order rule we can make sure that every component is written in exactly the same way, which would make it more readable and consistent across codebase.
This rule should be configurable, so that anyone can amend proposed order in .eslintrc
.