# prefer-single-event-payload

Rule `vue/prefer-single-event-payload`. Enforce passing a single argument to custom event emissions

- 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: #1845 by reach

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `vue/prefer-single-event-payload` | no | no | package `eslint-plugin-vue` | [docs](https://eslint.vuejs.org/rules/prefer-single-event-payload.html) |
| Biome | `nursery/useVueSingleEventPayload` | no | no | group nursery, since 2.6.5 | [docs](https://biomejs.dev/linter/rules/use-vue-single-event-payload/) |

## Code examples

### Incorrect: the rule reports this

```vue
  <button @click="$emit('update', value, extra)" />
</template>

<script>
export default {
  emits: {
```

```vue
  update: (value, extra) => value != null,
},
methods: {
  handleClick() {
```

```vue
      this.$emit('update', value, extra)
    }
  }
}
</script>
```

### Correct: the rule accepts this

```vue
<button @click="$emit('update', { value, extra })" />
```

```vue
change: (payload) => payload != null,
```

```vue
this.$emit('change', { value, extra })
```

Examples from the ESLint documentation.

## Enable it

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

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

export default [
  {
    plugins: { vue },
    rules: {
      "vue/prefer-single-event-payload": "error",
    },
  },
];
```

### Biome: `biome.json`

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

## Related rules

- [vue/prefer-prop-type-boolean-first](https://lintradar.dev/rules/vue/prefer-prop-type-boolean-first.md): Enforce `Boolean` comes first in component prop types
- [vue/prefer-true-attribute-shorthand](https://lintradar.dev/rules/vue/prefer-true-attribute-shorthand.md): Require shorthand form attribute when `v-bind` value is `true`
- [vue/no-v-text](https://lintradar.dev/rules/vue/no-v-text.md): Disallow use of v-text
- [vue/prefer-use-template-ref](https://lintradar.dev/rules/vue/prefer-use-template-ref.md): Require using `useTemplateRef` instead of `ref`/`shallowRef` for template refs
- [vue/no-useless-concat](https://lintradar.dev/rules/vue/no-useless-concat.md): Disallow unnecessary concatenation of literals or template literals in `<template>`
- [vue/require-emit-validator](https://lintradar.dev/rules/vue/require-emit-validator.md): Require type definitions in emits

---

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