# space-infix-ops

Rule `vue/space-infix-ops`. Require spacing around infix 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: #1607 by reach, #824 by growth

## Linters

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

## Enable it

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

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

export default [
  {
    plugins: { vue },
    rules: {
      "vue/space-infix-ops": "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/space-infix-ops](https://lintradar.dev/rules/eslint/space-infix-ops.md): Require spacing around infix operators
- [vue/space-in-parens](https://lintradar.dev/rules/vue/space-in-parens.md): Enforce consistent spacing inside parentheses in `<template>`
- [vue/space-unary-ops](https://lintradar.dev/rules/vue/space-unary-ops.md): Enforce consistent spacing before or after unary operators in `<template>`
- [vue/quote-props](https://lintradar.dev/rules/vue/quote-props.md): Require quotes around object literal property names in `<template>`
- [vue/template-curly-spacing](https://lintradar.dev/rules/vue/template-curly-spacing.md): Require or disallow spacing around embedded expressions of template strings in `<template>`
- [vue/padding-line-between-blocks](https://lintradar.dev/rules/vue/padding-line-between-blocks.md): Require or disallow padding lines between blocks

---

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