Vize

html/no-empty-palpable-content

Disallow empty elements that expect visible content.

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

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

Bad

The paragraph, list item, and table cell all have empty palpable content.

<template>
  <p></p>
  <li></li>
  <td></td>
</template>

Good

Text fills the paragraph, interpolation supplies the list item, and aria-label explicitly names the otherwise empty cell.

<template>
  <p>Overview</p>
  <li>{{ item.label }}</li>
  <td aria-label="No value"></td>
</template>

Configuration (Vite+)

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

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

Then run vp run lint.