Appearance
vue/no-expose-after-await
禁止异步注册的
expose
- ⚙️ 此规则包含在
"plugin:vue/essential"、*.configs["flat/essential"]、"plugin:vue/strongly-recommended"、*.configs["flat/strongly-recommended"]、"plugin:vue/recommended"和*.configs["flat/recommended"]中。
📖 规则详情
此规则报告 await 表达式后 expose() 和 defineExpose() 的使用情况。在 setup() 函数中,expose() 应该同步注册。在 <script setup> 中,defineExpose() 应该同步注册。
¥This rule reports usages of expose() and defineExpose() after an await expression.\ In the setup() function, expose() should be registered synchronously.\ In the <script setup>, defineExpose() should be registered synchronously.
🔧选项
¥🔧 Options
无。
¥Nothing.
📚扩展阅读
¥📚 Further Reading
🚀版本
¥🚀 Version
此规则在 eslint-plugin-vue v8.1.0 中引入
¥This rule was introduced in eslint-plugin-vue v8.1.0
🔍代码实现
¥🔍 Implementation