vue/no-deprecated-v-bind-sync
eslint-plugin-vue
Safe autofixRecommended
eslint.config.js
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/no-deprecated-v-bind-sync": "error",
},
},
];Disallow use of deprecated .sync modifier on v-bind directive (in Vue.js 3.0.0+)
<MyComponent v-bind:propName.sync="foo" />
<MyComponent v-bind:[dynamiArg].sync="foo" />
<MyComponent v-bind.sync="foo" />
<MyComponent :propName.sync="foo" />
</template><MyComponent v-bind:propName="foo" />
<MyComponent :propName="foo" />Examples from the ESLint documentation.
vue/no-deprecated-v-bind-sync
eslint-plugin-vue
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/no-deprecated-v-bind-sync": "error",
},
},
];Oxlint does not have this rule.
nursery/noVueDeprecatedVBindSync
nursery · since 2.6.5
{
"linter": {
"rules": {
"nursery": {
"noVueDeprecatedVBindSync": "error"
}
}
}
}Disallow deprecated slot-scope attribute (in Vue.js 2.6.0+)
Disallow deprecated v-is directive (in Vue.js 3.1.0+)
Disallow deprecated slot attribute (in Vue.js 2.6.0+)
Disallow using deprecated .native modifiers (in Vue.js 3.0.0+)
Disallow deprecated scope attribute (in Vue.js 2.5.0+)
Disallow using deprecated number (keycode) modifiers (in Vue.js 3.0.0+)