Skip to content
On this page

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.

Now loading...
Now loading...

🔧 Options

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

"disallowFunctionalComponentFunction": false

Now loading...

"disallowFunctionalComponentFunction": true

Now loading...

🚀 Version

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

🔍 Implementation