# valid-v-memo

Rule `vue/valid-v-memo`. Enforce valid `v-memo` directives

- Source: vue
- Technologies: Vue
- Kind: correctness
- Needs type information: no
- Autofix: no
- Reach: 42.4M weekly downloads of presets that enable it
- Trend: +88.4% last quarter
- Rank: #381 by reach, #373 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `vue/valid-v-memo` | yes | no | package `eslint-plugin-vue` | [docs](https://eslint.vuejs.org/rules/valid-v-memo.html) |
| Biome | `nursery/useVueValidVMemo` | yes | no | group nursery, since 2.6.4 | [docs](https://biomejs.dev/linter/rules/use-vue-valid-v-memo/) |

## Code examples

### Incorrect: the rule reports this

```vue
  <div v-memo />
  <div v-memo:aaa="[x]" />
  <div v-memo.bbb="[x]" />
  <div v-memo="{ x }" />
  <div v-for="i in items">
    <div v-memo="[i]" />
  </div>
</template>
```

### Correct: the rule accepts this

```vue
<div v-memo="[x]" />
```

Examples from the ESLint documentation.

## Enable it

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

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

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

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "nursery": {
        "useVueValidVMemo": "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-v-is](https://lintradar.dev/rules/vue/valid-v-is.md): Enforce valid `v-is` directives
- [vue/valid-v-model](https://lintradar.dev/rules/vue/valid-v-model.md): Enforce valid `v-model` directives
- [vue/valid-v-if](https://lintradar.dev/rules/vue/valid-v-if.md): Enforce valid `v-if` directives
- [vue/valid-v-on](https://lintradar.dev/rules/vue/valid-v-on.md): Enforce valid `v-on` directives
- [vue/valid-v-html](https://lintradar.dev/rules/vue/valid-v-html.md): Enforce valid `v-html` directives
- [vue/valid-v-once](https://lintradar.dev/rules/vue/valid-v-once.md): Enforce valid `v-once` directives

---

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