Vize

html/no-consecutive-br

Disallow consecutive <br> elements.

Default severity Presets Automatic fix Options
warning happy-path, nuxt, ecosystem, opinionated No None

Applies to: Vue SFC templates and blocks, with script context where the rule requires it.

Bad

Two consecutive break elements create spacing between blocks inside a single paragraph.

<template>
  <p>First line<br /><br />Second block</p>
</template>

Good

Separate paragraphs express the two content blocks without repeated break elements.

<template>
  <p>First line</p>
  <p>Second block</p>
</template>

Configuration (Vite+)

import { defineConfig } from "@vizejs/vite-plugin/vite-plus";

export default defineConfig({}).withVue({
  linter: {
    "preset": "incremental",
    "rules": {
      "html/no-consecutive-br": "warn"
    }
  },
});

Then run vp run lint.