Skip to content

vue/no-unsupported-features

disallow unsupported Vue.js syntax on the specified version

  • 🔧 The --fix option on the command line can automatically fix some of the problems reported by this rule.

📖 Rule Details

This rule reports unsupported Vue.js syntax on the specified version.

🔧 Options

json
{
  "vue/no-unsupported-features": ["error", {
    "version": "^2.6.0",
    "ignores": []
  }]
}
  • version ... The version option accepts the valid version range of node-semver. Set the version of Vue.js you are using. This option is required.
  • ignores ... You can use this ignores option to ignore the given features. The "ignores" option accepts an array of the following strings.
    • Vue.js 3.4.0+
      • "define-model" ... defineModel() macro.
      • "v-bind-same-name-shorthand" ... v-bind same-name shorthand.
    • Vue.js 3.3.0+
      • "define-slots" ... defineSlots() macro.
      • "define-options" ... defineOptions() macro.
    • Vue.js 3.2.0+
      • "v-memo" ... v-memo directive.
      • "v-bind-prop-modifier-shorthand" ... v-bind with .prop modifier shorthand.
      • "v-bind-attr-modifier" ... .attr modifier on v-bind directive.
    • Vue.js 3.1.0+
    • Vue.js 3.0.0+
    • Vue.js 2.7.0+
    • Vue.js 2.6.0+
    • Vue.js 2.5.0+

{"version": "^2.6.0"}

Now loading...

{"version": "^2.5.0"}

Now loading...

📚 Further Reading

🚀 Version

This rule was introduced in eslint-plugin-vue v6.1.0

🔍 Implementation