Skip to content

no-deprecated-v-bind-sync

Reports the .sync modifier of v-bind (:title.sync).

Vue 3 does not have .sync: the binding then does not update the parent, and the component works only until the first change.

To fix, write v-model:title="t".

Reported
<template>
<C :title.sync="t" @click.native="go" @keyup.13="k" inline-template v-is="c" />
...
<tr is="vue:row" v-model:title="t" @keyup.enter="k"></tr>
...
angular:
lint:
rules:
no-deprecated-v-bind-sync: warn # off, warn (default), error
html:
lint:
rules:
no-deprecated-v-bind-sync: warn # off, warn (default), error
svelte:
lint:
rules:
no-deprecated-v-bind-sync: warn # off, warn (default), error
vue:
lint:
rules:
no-deprecated-v-bind-sync: warn # off, warn (default), error

Enabled by the presets: html/eslint-plugin-vue-recommended.

Suppress one line with sudsy-disable-next-line no-deprecated-v-bind-sync in a comment of the file’s language.

The same check in other tools; Sudsy reports what each upstream rule reports.

Tool Rule Match
eslint-plugin-vue no-deprecated-v-bind-sync full