Vize

vue/no-deprecated-filter

Disallow deprecated Vue 2 filter syntax using the pipe operator.

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

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

Bad

The pipe uses the removed Vue filter syntax to apply capitalize.

<template>
{{ message | capitalize }}
</template>

Good

Calling capitalize(message) applies the transformation as an ordinary expression.

<template>
{{ capitalize(message) }}
</template>

Configuration (Vite+)

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

export default defineConfig({}).withVue({
  linter: {
    "preset": "incremental",
    "rules": {
      "vue/no-deprecated-filter": "error"
    }
  },
});

Then run vp run lint.