# define-props-declaration

Rule `vue/define-props-declaration`. Enforce declaration style of `defineProps` and `defineModel`

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

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `vue/define-props-declaration` | no | no | package `eslint-plugin-vue` | [docs](https://eslint.vuejs.org/rules/define-props-declaration.html) |
| Oxlint | `vue/define-props-declaration` | no | no | plugin `vue`, category style | [docs](https://oxc.rs/docs/guide/usage/linter/rules/vue/define-props-declaration.html) |
| Biome | `style/useVueConsistentDefinePropsDeclaration` | no | no | group style, since 2.3.11 | [docs](https://biomejs.dev/linter/rules/use-vue-consistent-define-props-declaration/) |

## Code examples

### Incorrect: the rule reports this

```vue
// "vue/define-props-declaration": ["error", "type-based"]
<script setup lang="ts">
  const props = defineProps({
    kind: { type: String },
  })
  </script>

// "vue/define-props-declaration": ["error", "runtime"]
<script setup lang="ts">
const props = defineProps<{
  kind: string;
}>()
</script>
```

### Correct: the rule accepts this

```vue
// "vue/define-props-declaration": ["error", "type-based"]
<script setup lang="ts">
const props = defineProps<{
  kind: string;
}>()
</script>

// "vue/define-props-declaration": ["error", "runtime"]
<script setup lang="ts">
  const props = defineProps({
    kind: { type: String },
  })
  </script>
```

Examples from the Oxlint documentation.

## Enable it

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

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

export default [
  {
    plugins: { vue },
    rules: {
      "vue/define-props-declaration": "error",
    },
  },
];
```

### Oxlint: `.oxlintrc.json`

```json
{
  "plugins": [
    "vue"
  ],
  "rules": {
    "vue/define-props-declaration": "error"
  }
}
```

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "style": {
        "useVueConsistentDefinePropsDeclaration": "error"
      }
    }
  }
}
```

## Related rules

- [vue/define-emits-declaration](https://lintradar.dev/rules/vue/define-emits-declaration.md): Enforce declaration style of `defineEmits`
- [vue/define-props-destructuring](https://lintradar.dev/rules/vue/define-props-destructuring.md): Enforce consistent style for props destructuring
- [vue/max-props](https://lintradar.dev/rules/vue/max-props.md): Enforce maximum number of props in Vue component
- [vue/no-this-in-before-route-enter](https://lintradar.dev/rules/vue/no-this-in-before-route-enter.md): Disallow `this` usage in a `beforeRouteEnter` method
- [vue/require-default-export](https://lintradar.dev/rules/vue/require-default-export.md): Require components to be the default export
- [vue/require-typed-ref](https://lintradar.dev/rules/vue/require-typed-ref.md): Require `ref` and `shallowRef` functions to be strongly typed

---

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