Vize

html/deprecated-attr

Disallow deprecated HTML attributes.

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

The paragraph uses the deprecated presentational align attribute.

<template>
<p align="center">Notice</p>
</template>

Good

The class and text-align: center declaration express the alignment through CSS.

<template><p class="notice">Notice</p></template>
<style scoped>.notice { text-align: center; }</style>

Configuration (Vite+)

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

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

Then run vp run lint.