# vue/require-direct-export

require the component to be directly exported

# 📖 Rule Details

This rule aims to require that the component object be directly exported.

# 🔧 Options

{
  "vue/require-direct-export": ["error", {
    "disallowFunctionalComponentFunction": false
  }]
}
  • "disallowFunctionalComponentFunction" ... If true, disallow functional component functions, available in Vue 3.x. default false

# "disallowFunctionalComponentFunction": false

# "disallowFunctionalComponentFunction": true

# 🚀 Version

This rule was introduced in eslint-plugin-vue v5.2.0

# 🔍 Implementation

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