# order-in-components

Rule `vue/order-in-components`. Enforce order of properties in components

- Source: vue
- Technologies: Vue
- Kind: style
- Needs type information: no
- Autofix: yes, in at least one linter
- Reach: 11.8M weekly downloads of presets that enable it
- Trend: +49.7% last quarter
- Rank: #850 by reach, #853 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `vue/order-in-components` | yes | safe | package `eslint-plugin-vue` | [docs](https://eslint.vuejs.org/rules/order-in-components.html) |

## Enable it

### ESLint: `eslint.config.js`

```js
import vue from "eslint-plugin-vue";

export default [
  {
    plugins: { vue },
    rules: {
      "vue/order-in-components": "error",
    },
  },
];
```

## Presets that enable it

| Preset | Linter | Package | Rules | Weekly downloads | Trend |
| --- | --- | --- | --- | --- | --- |
| [Vue recommended](https://lintradar.dev/presets/vue-recommended.md) | ESLint | `eslint-plugin-vue` | 118 | 9.5M | +46.6% |
| [Nuxt](https://lintradar.dev/presets/nuxt.md) | ESLint | `@nuxt/eslint-config` | 188 | 1.5M | +72.8% |
| [Anthony Fu's config](https://lintradar.dev/presets/antfu.md) | ESLint | `@antfu/eslint-config` | 294 | 758.7K | +49.9% |

## Related rules

- [vue/attributes-order](https://lintradar.dev/rules/vue/attributes-order.md): Enforce order of attributes
- [vue/html-self-closing](https://lintradar.dev/rules/vue/html-self-closing.md): Enforce self-closing style
- [vue/html-end-tags](https://lintradar.dev/rules/vue/html-end-tags.md): Enforce end tag style
- [vue/first-attribute-linebreak](https://lintradar.dev/rules/vue/first-attribute-linebreak.md): Enforce the location of first attribute
- [vue/v-on-event-hyphenation](https://lintradar.dev/rules/vue/v-on-event-hyphenation.md): Enforce v-on event naming style on custom components in template
- [vue/component-definition-name-casing](https://lintradar.dev/rules/vue/component-definition-name-casing.md): Enforce specific casing for component definition name

---

Web page: https://lintradar.dev/rules/vue/order-in-components. Data from npm and the linters' documentation, collected Dec 4, 2026. Site guide for agents: https://lintradar.dev/llms.txt
