Pattern: Malformed newline between multi-line properties
Issue: -
This rule aims at enforcing new lines between multi-line properties in Vue components to help readability
<script>
/* ✗ BAD */
export default {
props: {
value: {
type: String,
required: true
},
focused: {
type: Boolean,
default: false,
required: true
},
label: String,
icon: String
},
computed: {
}
}
</script>
<script>
/* ✓ GOOD */
export default {
props: {
value: {
type: String,
required: true
},
focused: {
type: Boolean,
default: false,
required: true
},
label: String,
icon: String
},
computed: {
}
}
</script>