Skip to content

Add props properties order rule #541

Open
@soullivaneuh

Description

@soullivaneuh

As it's done in order-in-components rule, it would be nice to have a another one (or improve the existing one?) to force a particular order of each props.

For example, this code part might be OK:

props: {
  domain: {
    type: String,
    required: true,
  },
}

And not this one, because required is placed before type:

props: {
  domain: {
    required: true,
    type: String,
  },
}

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions