Skip to content
On this page

vue/require-prop-comment

require props to have a comment

  • This rule has not been released yet.

📖 Rule Details

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

Now loading...

🔧 Options

json
{
  "vue/require-prop-comment": ["error", {
    "type": "JSDoc"
  }]
}
  • type ... Type of comment. Default is "JSDoc"
    • "JSDoc" ... Only JSDoc comment are allowed.
    • "line" ... Only line comment are allowed.
    • "block" ... Only block comment are allowed.
    • "any" ... All comment types are allowed.

"type": "block"

Now loading...

"type": "line"

Now loading...

"type": "any"

Now loading...

🔍 Implementation