Skip to content

vue/no-deprecated-model-definition

disallow deprecated model definition (in Vue.js 3.0.0+)

  • ⚙️ This rule is included in all of "plugin:vue/essential", *.configs["flat/essential"], "plugin:vue/strongly-recommended", *.configs["flat/strongly-recommended"], "plugin:vue/recommended" and *.configs["flat/recommended"].
  • 💡 Some problems reported by this rule are manually fixable by editor suggestions.

📖 Rule Details

This rule reports use of the component model option, which has been deprecated in Vue.js 3.0.0+.

See Migration Guide – v-model for more details.

Now loading...

🔧 Options

json
{
  "vue/no-deprecated-model-definition": ["error", {
    "allowVue3Compat": true
  }]
}

"allowVue3Compat": true

Allow model definitions with prop/event names that match the Vue.js 3.0.0+ v-model syntax, i.e. modelValue/update:modelValue or model-value/update:model-value.

Now loading...

📚 Further Reading

🚀 Version

This rule was introduced in eslint-plugin-vue v9.16.0

🔍 Implementation

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy