# operator-linebreak

Rule `vue/operator-linebreak`. Enforce consistent linebreak style for operators in `<template>`

- Source: vue
- Technologies: Vue
- Kind: style
- Needs type information: no
- Autofix: yes, in at least one linter
- Reach: 758.7K weekly downloads of presets that enable it
- Trend: +49.9% last quarter
- Rank: #1603 by reach, #820 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `vue/operator-linebreak` | no | safe | package `eslint-plugin-vue` | [docs](https://eslint.vuejs.org/rules/operator-linebreak.html) |

## Enable it

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

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

export default [
  {
    plugins: { vue },
    rules: {
      "vue/operator-linebreak": "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/operator-linebreak](https://lintradar.dev/rules/eslint/operator-linebreak.md): Enforce consistent linebreak style for operators
- [vue/object-property-newline](https://lintradar.dev/rules/vue/object-property-newline.md): Enforce placing object properties on separate lines in `<template>`
- [vue/padding-line-between-blocks](https://lintradar.dev/rules/vue/padding-line-between-blocks.md): Require or disallow padding lines between blocks
- [vue/object-curly-spacing](https://lintradar.dev/rules/vue/object-curly-spacing.md): Enforce consistent spacing inside braces in `<template>`
- [vue/quote-props](https://lintradar.dev/rules/vue/quote-props.md): Require quotes around object literal property names in `<template>`
- [vue/no-restricted-v-bind](https://lintradar.dev/rules/vue/no-restricted-v-bind.md): Disallow specific argument in `v-bind`

---

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