# next-tick-style

Rule `vue/next-tick-style`. Enforce Promise or callback style in `nextTick`

- Source: vue
- Technologies: Vue
- Kind: style
- Needs type information: no
- Autofix: yes, in at least one linter
- Reach: 30.6M weekly downloads of presets that enable it
- Trend: +109.3% last quarter
- Rank: #477 by reach, #112 by growth

## Linters

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

## Code examples

### Incorrect: the rule reports this

```js
this.$nextTick(() => {})
Vue.nextTick(() => {})
import { nextTick } from 'vue'
nextTick(() => {})
```

```js
await this.$nextTick()
Vue.nextTick().then(() => {})
```

### Correct: the rule accepts this

```js
this.$nextTick().then(() => {})
await Vue.nextTick()
import { nextTick } from 'vue'
await nextTick()
```

```js
this.$nextTick(() => {})
Vue.nextTick(() => {})
```

Examples from the Oxlint documentation.

## Enable it

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

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

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

### Oxlint: `.oxlintrc.json`

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

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "style": {
        "useVueNextTickPromise": "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% |
| [Ultracite for Biome](https://lintradar.dev/presets/ultracite-biome.md) | Biome | `ultracite` | 616 | 2.1M | +151.7% |

## Related rules

- [vue/no-import-compiler-macros](https://lintradar.dev/rules/vue/no-import-compiler-macros.md): Disallow importing Vue compiler macros
- [vue/enforce-style-attribute](https://lintradar.dev/rules/vue/enforce-style-attribute.md): Enforce or forbid the use of the `scoped` and `module` attributes in SFC top level style tags
- [vue/no-boolean-default](https://lintradar.dev/rules/vue/no-boolean-default.md): Disallow boolean defaults
- [vue/no-root-v-if](https://lintradar.dev/rules/vue/no-root-v-if.md): Disallow `v-if` directives on root element
- [vue/no-unused-emit-declarations](https://lintradar.dev/rules/vue/no-unused-emit-declarations.md): Disallow unused emit declarations
- [vue/prefer-define-options](https://lintradar.dev/rules/vue/prefer-define-options.md): Enforce use of `defineOptions` instead of default export

---

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