# padding-line-between-tags

Rule `vue/padding-line-between-tags`. Require or disallow newlines between sibling tags in template

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

## Linters

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

## Code examples

### Incorrect: the rule reports this

```vue
    <div></div>
    <div>
    </div>
    <div /><div />
  </div>
</template>
```

```vue
    <div v-if="foo" />

    <div v-else />
  </div>
</template>
```

### Correct: the rule accepts this

```vue
<div></div>

<div>
</div>

<div />

<div />
```

```vue
<span>This is a single-line tag</span>
<span>This is a single-line tag</span>
```

```vue
<div>
  This is a multi-line tag
</div>
```

Examples from the ESLint documentation.

## Enable it

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

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

export default [
  {
    plugins: { vue },
    rules: {
      "vue/padding-line-between-tags": "error",
    },
  },
];
```

## Related rules

- [vue/object-curly-newline](https://lintradar.dev/rules/vue/object-curly-newline.md): Enforce consistent line breaks after opening and before closing braces in `<template>`
- [vue/padding-lines-in-component-definition](https://lintradar.dev/rules/vue/padding-lines-in-component-definition.md): Require or disallow padding lines in component definition
- [vue/require-expose](https://lintradar.dev/rules/vue/require-expose.md): Require declare public properties using `expose`
- [vue/require-name-property](https://lintradar.dev/rules/vue/require-name-property.md): Require a name property in Vue components
- [vue/no-useless-mustaches](https://lintradar.dev/rules/vue/no-useless-mustaches.md): Disallow unnecessary mustache interpolations
- [vue/require-prop-comment](https://lintradar.dev/rules/vue/require-prop-comment.md): Require props to have a comment

---

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