# no-empty-pattern

Rule `vue/no-empty-pattern`. Disallow empty destructuring patterns in `<template>`

- Source: vue
- Technologies: Vue
- Kind: correctness
- Needs type information: no
- Autofix: no
- Reach: 758.7K weekly downloads of presets that enable it
- Trend: +49.9% last quarter
- Rank: #1577 by reach, #794 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `vue/no-empty-pattern` | no | no | package `eslint-plugin-vue` | [docs](https://eslint.vuejs.org/rules/no-empty-pattern.html) |
| Biome | `correctness/noEmptyPattern` | yes | no | group correctness, since 1.0.0 | [docs](https://biomejs.dev/linter/rules/no-empty-pattern/) |

## Code examples

### Incorrect: the rule reports this

```js
var {} = foo;
```

```js
var {a: {}} = foo;
```

```js
function foo({}) {}
```

### Correct: the rule accepts this

```js
var {a = {}} = foo;
var {a, b = {}} = foo;
var {a = []} = foo;
function foo({a = {}}) {}
function foo({a = []}) {}
var [a] = foo;
```

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-empty-pattern": "error",
    },
  },
];
```

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "correctness": {
        "noEmptyPattern": "error"
      }
    }
  }
}
```

## Presets that enable it

| Preset | Linter | Package | Rules | Weekly downloads | Trend |
| --- | --- | --- | --- | --- | --- |
| [Anthony Fu's config](https://lintradar.dev/presets/antfu.md) | ESLint | `@antfu/eslint-config` | 294 | 758.7K | +49.9% |

## Related rules

- [eslint/no-empty-pattern](https://lintradar.dev/rules/eslint/no-empty-pattern.md): Disallow empty destructuring patterns
- [vue/eqeqeq](https://lintradar.dev/rules/vue/eqeqeq.md): Require the use of `===` and `!==` in `<template>`
- [vue/no-irregular-whitespace](https://lintradar.dev/rules/vue/no-irregular-whitespace.md): Disallow irregular whitespace in `.vue` files
- [vue/dot-notation](https://lintradar.dev/rules/vue/dot-notation.md): Enforce dot notation whenever possible in `<template>`
- [vue/no-loss-of-precision](https://lintradar.dev/rules/vue/no-loss-of-precision.md): Disallow literal numbers that lose precision in `<template>`
- [vue/define-macros-order](https://lintradar.dev/rules/vue/define-macros-order.md): Enforce order of compiler macros (`defineProps`, `defineEmits`, etc.)

---

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