# valid-model-definition

Rule `vue/valid-model-definition`. Require valid keys in model option

- Source: vue
- Technologies: Vue
- Kind: correctness
- Needs type information: no
- Autofix: no
- Deprecated: yes
- Reach: 0 weekly downloads of presets that enable it
- Trend: 0% last quarter
- Rank: #2090 by reach

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `vue/valid-model-definition` | no | no | package `eslint-plugin-vue` | [docs](https://eslint.vuejs.org/rules/valid-model-definition.html) |

## Enable it

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

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

export default [
  {
    plugins: { vue },
    rules: {
      "vue/valid-model-definition": "error",
    },
  },
];
```

## Related rules

- [vue/v-if-else-key](https://lintradar.dev/rules/vue/v-if-else-key.md): Require key attribute for conditionally rendered repeated components
- [vue/static-class-names-order](https://lintradar.dev/rules/vue/static-class-names-order.md): Enforce static class names order
- [vue/sort-keys](https://lintradar.dev/rules/vue/sort-keys.md): Enforce sort-keys in a manner that is compatible with order-in-components
- [vue/script-indent](https://lintradar.dev/rules/vue/script-indent.md): Enforce consistent indentation in `<script>`
- [vue/restricted-component-names](https://lintradar.dev/rules/vue/restricted-component-names.md): Enforce using only specific component names
- [vue/require-prop-comment](https://lintradar.dev/rules/vue/require-prop-comment.md): Require props to have a comment

---

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