Skip to content

Files

Latest commit

 

History

History
65 lines (51 loc) · 932 Bytes

new-line-between-multi-line-property.md

File metadata and controls

65 lines (51 loc) · 932 Bytes

Pattern: Malformed newline between multi-line properties

Issue: -

Description

This rule aims at enforcing new lines between multi-line properties in Vue components to help readability

Examples

<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>

Further Reading