Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 660 Bytes

require-render-return.md

File metadata and controls

39 lines (29 loc) · 660 Bytes

enforce render function to always return value (vue/require-render-return)

  • ⚙️ This rule is included in all of "plugin:vue/essential", "plugin:vue/strongly-recommended" and "plugin:vue/recommended".

This rule aims to enforce render function to always return value

📖 Rule Details

👎 Examples of incorrect code for this rule:

export default {
  render () {}
}
export default {
  render (h) {
    if (foo) {
      return h('div', 'hello')
    }
  }
}

👍 Examples of correct code for this rule:

export default {
  render (h) {
    return h('div', 'hello')
  }
}

🔧 Options

Nothing.