# padding-line-between-blocks

Rule `vue/padding-line-between-blocks`. Require or disallow padding lines between blocks

- 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: #1604 by reach, #821 by growth

## Linters

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

## Code examples

### Incorrect: the rule reports this

```vue
<template>
  <div></div>
</template>
<script>
export default {}
</script>
<style></style>
```

```vue
<template>
  <div></div>
</template>
<script>
export default {}
</script>
<style></style>
```

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

<script>
export default {}
</script>

<style></style>
```

### Correct: the rule accepts this

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

<script>
export default {}
</script>

<style></style>
```

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

<script>
export default {}
</script>

<style></style>
```

```vue
<template>
  <div></div>
</template>
<script>
export default {}
</script>
<style></style>
```

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-blocks": "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

- [vue/operator-linebreak](https://lintradar.dev/rules/vue/operator-linebreak.md): Enforce consistent linebreak style for operators in `<template>`
- [vue/quote-props](https://lintradar.dev/rules/vue/quote-props.md): Require quotes around object literal property names in `<template>`
- [vue/object-property-newline](https://lintradar.dev/rules/vue/object-property-newline.md): Enforce placing object properties on separate lines in `<template>`
- [vue/space-in-parens](https://lintradar.dev/rules/vue/space-in-parens.md): Enforce consistent spacing inside parentheses in `<template>`
- [vue/object-curly-spacing](https://lintradar.dev/rules/vue/object-curly-spacing.md): Enforce consistent spacing inside braces in `<template>`
- [vue/space-infix-ops](https://lintradar.dev/rules/vue/space-infix-ops.md): Require spacing around infix operators in `<template>`

---

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