Skip to content

Latest commit

 

History

History
37 lines (29 loc) · 488 Bytes

require-render-return.md

File metadata and controls

37 lines (29 loc) · 488 Bytes

Enforces render function to always return value (require-render-return)

This rule aims to enforce render function to allways return value

📖 Rule Details

👎 Examples of incorrect code for this rule:

export default {
  render () {
  }
}
export default {
  render (h) {
    if (foo) {
      return
    }
  }
}

👍 Examples of correct code for this rule:

export default {
  render (h) {
    return
  }
}

🔧 Options

Nothing.