pageClass | sidebarDepth | title | description | since |
---|---|---|---|---|
rule-details |
0 |
vue/no-expose-after-await |
disallow asynchronously registered `expose` |
v8.1.0 |
disallow asynchronously registered
expose
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>
Nothing.
This rule was introduced in eslint-plugin-vue v8.1.0