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 中引入的