# vue/no-expose-after-await

disallow asynchronously registered expose

# 📖 Rule Details

This rule reports the expose() after await expression.
In setup() function, expose() should be registered synchronously.

<script> import { watch } from 'vue' export default { async setup(props, { expose }) { /* ✓ GOOD */ expose({/* ... */}) await doSomething() /* ✗ BAD */ expose({/* ... */}) } } </script>
Now loading...

# 🔧 Options

Nothing.

# 📚 Further Reading

# 🚀 Version

This rule was introduced in eslint-plugin-vue v8.1.0

# 🔍 Implementation

Last Updated: 11/18/2021, 5:38:21 AM