- ⚙️ 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
👎 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')
}
}
Nothing.