# vue/require-render-return

enforce render function to always return value

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

# 📖 Rule Details

This rule aims to enforce render function to always return value

<script> export default { /* ✓ GOOD */ render (h) { return h('div', 'hello') } } </script>
Now loading...
<script> export default { /* ✗ BAD */ render (h) { if (foo) { return h('div', 'hello') } } } </script>
Now loading...

# 🔧 Options

Nothing.

# 📚 Further Reading

# 🚀 Version

This rule was introduced in eslint-plugin-vue v3.10.0

# 🔍 Implementation

Last Updated: 12/24/2020, 2:51:18 AM