Skip to content

Files

Latest commit

 

History

History
32 lines (22 loc) · 975 Bytes

no-deprecated-v-bind-sync.md

File metadata and controls

32 lines (22 loc) · 975 Bytes

Pattern: Use of deprecated .sync modifier on v-bind

Issue: -

Description

This rule reports use of deprecated .sync modifier on v-bind directive (in Vue.js 3.0.0+).

<template>
  <!-- ✓ GOOD -->
  <MyComponent v-bind:propName="foo"/>
  <MyComponent :propName="foo"/>


  <!-- ✗ BAD -->
  <MyComponent v-bind:propName.sync="foo"/>
  <MyComponent v-bind:[dynamiArg].sync="foo"/>
  <MyComponent v-bind.sync="foo"/>
  <MyComponent :propName.sync="foo"/>
</template>

Further Reading