# valid-next-tick

Rule `vue/valid-next-tick`. Enforce valid `nextTick` function calls

- Source: vue
- Technologies: Vue
- Kind: correctness
- Needs type information: no
- Autofix: yes, in at least one linter
- Reach: 42.4M weekly downloads of presets that enable it
- Trend: +88.4% last quarter
- Rank: #339 by reach, #331 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `vue/valid-next-tick` | yes | safe | package `eslint-plugin-vue` | [docs](https://eslint.vuejs.org/rules/valid-next-tick.html) |
| Oxlint | `vue/valid-next-tick` | no | safe | plugin `vue`, category correctness | [docs](https://oxc.rs/docs/guide/usage/linter/rules/vue/valid-next-tick.html) |
| Biome | `nursery/useVueValidNextTick` | yes | unsafe | group nursery, since 2.6.5 | [docs](https://biomejs.dev/linter/rules/use-vue-valid-next-tick/) |

## Code examples

### Incorrect: the rule reports this

```vue
<script>
import { nextTick } from 'vue'
export default {
  async mounted() {
    nextTick()                     // missing await or callback
    this.$nextTick                 // not invoked
    this.$nextTick(a, b)           // too many args
    await this.$nextTick(callback) // both await and callback
  }
}
</script>
```

### Correct: the rule accepts this

```vue
<script>
import { nextTick } from 'vue'
export default {
  async mounted() {
    await nextTick()
    this.$nextTick(callback)
    this.$nextTick().then(callback)
  }
}
</script>
```

Examples from the Oxlint documentation.

## Enable it

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

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

export default [
  {
    plugins: { vue },
    rules: {
      "vue/valid-next-tick": "error",
    },
  },
];
```

### Oxlint: `.oxlintrc.json`

```json
{
  "plugins": [
    "vue"
  ],
  "rules": {
    "vue/valid-next-tick": "error"
  }
}
```

### Biome: `biome.json`

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

## Presets that enable it

| Preset | Linter | Package | Rules | Weekly downloads | Trend |
| --- | --- | --- | --- | --- | --- |
| [Biome recommended](https://lintradar.dev/presets/biome-recommended.md) | Biome | `@biomejs/biome` | 491 | 28.5M | +106.8% |
| [Vue recommended](https://lintradar.dev/presets/vue-recommended.md) | ESLint | `eslint-plugin-vue` | 118 | 9.5M | +46.6% |
| [Vue essential](https://lintradar.dev/presets/vue-essential.md) | ESLint | `eslint-plugin-vue` | 85 | 9.5M | +46.6% |
| [Vue strongly recommended](https://lintradar.dev/presets/vue-strongly-recommended.md) | ESLint | `eslint-plugin-vue` | 110 | 9.5M | +46.6% |
| [Ultracite for Biome](https://lintradar.dev/presets/ultracite-biome.md) | Biome | `ultracite` | 616 | 2.1M | +151.7% |
| [Nuxt](https://lintradar.dev/presets/nuxt.md) | ESLint | `@nuxt/eslint-config` | 188 | 1.5M | +72.8% |
| [Anthony Fu's config](https://lintradar.dev/presets/antfu.md) | ESLint | `@antfu/eslint-config` | 294 | 758.7K | +49.9% |

## Related rules

- [vue/valid-define-props](https://lintradar.dev/rules/vue/valid-define-props.md): Enforce valid `defineProps` compiler macro
- [vue/no-child-content](https://lintradar.dev/rules/vue/no-child-content.md): Disallow element's child contents which would be overwritten by a directive like `v-html` or `v-text`
- [vue/valid-define-options](https://lintradar.dev/rules/vue/valid-define-options.md): Enforce valid `defineOptions` compiler macro
- [vue/no-deprecated-dollar-listeners-api](https://lintradar.dev/rules/vue/no-deprecated-dollar-listeners-api.md): Disallow using deprecated `$listeners` (in Vue.js 3.0.0+)
- [vue/valid-define-emits](https://lintradar.dev/rules/vue/valid-define-emits.md): Enforce valid `defineEmits` compiler macro
- [vue/no-deprecated-dollar-scopedslots-api](https://lintradar.dev/rules/vue/no-deprecated-dollar-scopedslots-api.md): Disallow using deprecated `$scopedSlots` (in Vue.js 3.0.0+)

---

Web page: https://lintradar.dev/rules/vue/valid-next-tick. Data from npm and the linters' documentation, collected Dec 4, 2026. Site guide for agents: https://lintradar.dev/llms.txt
