question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Rule: vue/sort-props

See original GitHub issue

Please describe what the rule should do:

Allow enforcing a sort order for props.

What category of rule is this? (place an “X” next to just one item)

[X] Enforces code style [ ] Warns about a potential error [ ] Suggests an alternate way of doing something [ ] Other (please specify:)

Provide 2-3 code examples that this rule will warn about:

/* eslint "vue/sort-props": [2. "asc"] */
{
  props: {
    required: Boolean,
    disabled: Boolean // error
  }
}
/* eslint "vue/sort-props": [2. "desc"] */
{
  props: {
    disabled: Boolean,
    required: Boolean // error
  }
}

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jpickwellcommented, Nov 8, 2018

@armano2, that one is talking about sorting the keys inside a prop; i’m talking about just sorting the props themselves

0reactions
ota-meshicommented, Jun 3, 2020

Thank you @loren138!

Read more comments on GitHub >

github_iconTop Results From Across the Web

vue/attributes-order
Rule Details #. This rule aims to enforce ordering of component attributes. The default order is specified in the Vue.js Style Guide and...
Read more >
View Document - Maryland Code and Court Rules - Westlaw
611 (1991). The Rule thus provides for the alternative of an earlier admission of evidence with regard to writings or recorded statements than...
Read more >
Vt. R. App. P. 35 - Casetext
Read Rule 35 - Possession and use of Recording and Transmitting Devices, Vt. R. App. P. 35, see flags on bad law, and...
Read more >
Modernizing the Potent, But Overlooked, Rule of Witness ...
* Philip Reed Professor of Law, Fordham Law School. Reporter to the Judicial. Conference Advisory Committee on Evidence Rules. All views expressed are...
Read more >
Rule 4k - YouTube
Personal Jurisdiction — SIMPLIFIED · Venue Explained Civil Procedure Law School · SIMPLIFIED · What is the Litigation Process? · Rule 19(a) ·...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found