Rule: vue/sort-props
See original GitHub issuePlease 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:
- Created 5 years ago
- Reactions:3
- Comments:6 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

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