# no-restricted-call-after-await

Rule `vue/no-restricted-call-after-await`. Disallow asynchronously called restricted methods

- Source: vue
- Technologies: Vue
- Kind: style
- Needs type information: no
- Autofix: no
- Reach: 0 weekly downloads of presets that enable it
- Trend: 0% last quarter
- Rank: #1832 by reach

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `vue/no-restricted-call-after-await` | no | no | package `eslint-plugin-vue` | [docs](https://eslint.vuejs.org/rules/no-restricted-call-after-await.html) |
| Biome | `nursery/noVueRestrictedCallAfterAwait` | no | no | group nursery, since 2.6.5 | [docs](https://biomejs.dev/linter/rules/no-vue-restricted-call-after-await/) |

## Code examples

### Incorrect: the rule reports this

```vue
<script>
import { useI18n } from "vue-i18n";

export default {
  async setup() {
    await fetchUser();
    const { t } = useI18n();
    return { t };
  },
};
</script>
```

### Correct: the rule accepts this

```vue
<script>
import { useI18n } from "vue-i18n";

export default {
  async setup() {
    const { t } = useI18n();
    await fetchUser();
    return { t };
  },
};
</script>
```

Examples from the Biome documentation.

## Enable it

### ESLint: `eslint.config.js`

```js
import vue from "eslint-plugin-vue";

export default [
  {
    plugins: { vue },
    rules: {
      "vue/no-restricted-call-after-await": "error",
    },
  },
];
```

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "nursery": {
        "noVueRestrictedCallAfterAwait": "error"
      }
    }
  }
}
```

## Related rules

- [vue/no-ref-object-reactivity-loss](https://lintradar.dev/rules/vue/no-ref-object-reactivity-loss.md): Disallow usages of ref objects that can lead to loss of reactivity
- [vue/no-restricted-component-options](https://lintradar.dev/rules/vue/no-restricted-component-options.md): Disallow specific component option
- [vue/no-negated-v-if-condition](https://lintradar.dev/rules/vue/no-negated-v-if-condition.md): Disallow negated conditions in v-if/v-else
- [vue/no-restricted-html-elements](https://lintradar.dev/rules/vue/no-restricted-html-elements.md): Disallow specific elements
- [vue/no-negated-condition](https://lintradar.dev/rules/vue/no-negated-condition.md): Disallow negated conditions in `<template>`
- [vue/no-restricted-v-on](https://lintradar.dev/rules/vue/no-restricted-v-on.md): Disallow specific argument in `v-on`

---

Web page: https://lintradar.dev/rules/vue/no-restricted-call-after-await. Data from npm and the linters' documentation, collected Dec 4, 2026. Site guide for agents: https://lintradar.dev/llms.txt
