Skip to content

Add props properties order rule #541

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
soullivaneuh opened this issue Jul 31, 2018 · 0 comments
Open

Add props properties order rule #541

soullivaneuh opened this issue Jul 31, 2018 · 0 comments

Comments

@soullivaneuh
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants