跳至内容

vue/require-direct-export

要求组件直接导出

📖 规则详情

此规则旨在要求组件对象直接导出。

正在加载...
正在加载...

🔧 选项

json
{
  "vue/require-direct-export": ["error", {
    "disallowFunctionalComponentFunction": false
  }]
}
  • "disallowFunctionalComponentFunction" ... 如果为 true,则禁止 Vue 3.x 中可用的函数式组件函数。默认值为 false

"disallowFunctionalComponentFunction": false

正在加载...

"disallowFunctionalComponentFunction": true

正在加载...

🚀 版本

此规则是在 eslint-plugin-vue v5.2.0 中引入的

🔍 实现