Skip to content

Files

Latest commit

 

History

History
34 lines (23 loc) · 535 Bytes

require-prop-comment .md

File metadata and controls

34 lines (23 loc) · 535 Bytes

Pattern: Missing comment for prop

Issue: -

Description

This rule enforces that every prop has a comment that documents it.

<script>
export default defineComponent({
  props: {
    // ✓ GOOD

    /** JSDoc comment */
    a: Number,

    // ✗ BAD

    // line comment
    b: Number,

    /* block comment */
    c: Number,

    d: Number,
  }
})
</script>

Further Reading