# define-props-destructuring

Rule `vue/define-props-destructuring`. Enforce consistent style for props destructuring

- 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: #1677 by reach

## Linters

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

## Code examples

### Incorrect: the rule reports this

```vue
const props = defineProps(['foo'])
const propsWithDefaults = withDefaults(defineProps(['foo']), { foo: 'default' })
withDefaults(defineProps(['foo']), { foo: 'default' })
```

```vue
  const { baz } = withDefaults(defineProps(['baz']), { baz: 'default' })
</script>
```

```vue
  const props = defineProps<{ foo?: string }>()
  const propsWithDefaults = withDefaults(defineProps<{ foo?: string }>(), { foo: 'default' })
  withDefaults(defineProps<{ foo?: string }>(), { foo: 'default' })
</script>
```

### Correct: the rule accepts this

```vue
const { foo } = defineProps(['foo'])
const { bar = 'default' } = defineProps(['bar'])
defineProps(['bar'])
```

```vue
const { foo } = defineProps<{ foo?: string }>()
const { bar = 'default' } = defineProps<{ bar?: string }>()
defineProps<{ bar?: string }>()
```

```vue
const { foo } = defineProps(['foo'])
const { bar = 'default' } = defineProps(['bar'])
```

Examples from the ESLint documentation.

## Enable it

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

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

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

### Oxlint: `.oxlintrc.json`

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

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "nursery": {
        "useVueDefinePropsDestructuring": "error"
      }
    }
  }
}
```

## Related rules

- [vue/define-props-declaration](https://lintradar.dev/rules/vue/define-props-declaration.md): Enforce declaration style of `defineProps` and `defineModel`
- [vue/max-props](https://lintradar.dev/rules/vue/max-props.md): Enforce maximum number of props in Vue component
- [vue/define-emits-declaration](https://lintradar.dev/rules/vue/define-emits-declaration.md): Enforce declaration style of `defineEmits`
- [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-destructuring. Data from npm and the linters' documentation, collected Dec 4, 2026. Site guide for agents: https://lintradar.dev/llms.txt
