Skip to content


enforce order of properties in components

  • ⚙️ This rule is included in all of "plugin:vue/vue3-recommended", *.configs["flat/recommended"], "plugin:vue/recommended" and *.configs["flat/vue2-recommended"].
  • 🔧 The --fix option on the command line can automatically fix some of the problems reported by this rule.
  • 💡 Some problems reported by this rule are manually fixable by editor suggestions.

📖 Rule Details

This rule makes sure you keep declared order of properties in components. Recommended order of properties can be found here.

Now loading...
Now loading...

🔧 Options

  "vue/order-in-components": ["error", {
    "order": [
      ["delimiters", "comments"],
      ["components", "directives", "filters"],
      ["provide", "inject"],
      ["props", "propsData"],
      ["template", "render"],
  • order ((string | string[])[]) ... The order of properties. Elements are the property names or one of the following groups:

    If an element is an array of strings, it means any of those can be placed there unordered. Default is above.

📚 Further Reading

🚀 Version

This rule was introduced in eslint-plugin-vue v3.2.0

🔍 Implementation