# require-prop-type-constructor

Rule `vue/require-prop-type-constructor`. Require prop type to be a constructor

- Source: vue
- Technologies: Vue
- Kind: correctness
- Needs type information: no
- Autofix: yes, in at least one linter
- Reach: 42.4M weekly downloads of presets that enable it
- Trend: +88.4% last quarter
- Rank: #331 by reach, #323 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `vue/require-prop-type-constructor` | yes | safe | package `eslint-plugin-vue` | [docs](https://eslint.vuejs.org/rules/require-prop-type-constructor.html) |
| Oxlint | `vue/require-prop-type-constructor` | no | safe | plugin `vue`, category correctness | [docs](https://oxc.rs/docs/guide/usage/linter/rules/vue/require-prop-type-constructor.html) |
| Biome | `nursery/useVuePropTypeConstructor` | yes | unsafe | group nursery, since 2.6.5 | [docs](https://biomejs.dev/linter/rules/use-vue-prop-type-constructor/) |

## Code examples

### Incorrect: the rule reports this

```vue
<script>
export default {
  props: {
    /* ✓ GOOD */
    myProp: Number,
    anotherProp: [Number, String],
    myFieldWithBadType: {
      type: Object,
      default: function () {
        return {}
      },
    },
    myOtherFieldWithBadType: {
      type: Number,
      default: 1,
    },
    /* ✗ BAD */
    myProp: 'Number',
    anotherProp: ['Number', 'String'],
    myFieldWithBadType: {
      type: 'Object',
      default: function () {
        return {}
      },
    },
    myOtherFieldWithBadType: {
      type: 'Number',
      default: 1,
    },
  }
}
</script>
```

Examples from the ESLint documentation.

## Enable it

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

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

export default [
  {
    plugins: { vue },
    rules: {
      "vue/require-prop-type-constructor": "error",
    },
  },
];
```

### Oxlint: `.oxlintrc.json`

```json
{
  "plugins": [
    "vue"
  ],
  "rules": {
    "vue/require-prop-type-constructor": "error"
  }
}
```

### Biome: `biome.json`

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

## Presets that enable it

| Preset | Linter | Package | Rules | Weekly downloads | Trend |
| --- | --- | --- | --- | --- | --- |
| [Biome recommended](https://lintradar.dev/presets/biome-recommended.md) | Biome | `@biomejs/biome` | 491 | 28.5M | +106.8% |
| [Vue recommended](https://lintradar.dev/presets/vue-recommended.md) | ESLint | `eslint-plugin-vue` | 118 | 9.5M | +46.6% |
| [Vue essential](https://lintradar.dev/presets/vue-essential.md) | ESLint | `eslint-plugin-vue` | 85 | 9.5M | +46.6% |
| [Vue strongly recommended](https://lintradar.dev/presets/vue-strongly-recommended.md) | ESLint | `eslint-plugin-vue` | 110 | 9.5M | +46.6% |
| [Ultracite for Biome](https://lintradar.dev/presets/ultracite-biome.md) | Biome | `ultracite` | 616 | 2.1M | +151.7% |
| [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/prefer-import-from-vue](https://lintradar.dev/rules/vue/prefer-import-from-vue.md): Enforce import from 'vue' instead of import from '@vue/*'
- [vue/require-render-return](https://lintradar.dev/rules/vue/require-render-return.md): Enforce render function to always return value
- [vue/no-watch-after-await](https://lintradar.dev/rules/vue/no-watch-after-await.md): Disallow asynchronously registered `watch`
- [vue/require-slots-as-functions](https://lintradar.dev/rules/vue/require-slots-as-functions.md): Enforce properties of `$slots` to be used as a function
- [vue/no-side-effects-in-computed-properties](https://lintradar.dev/rules/vue/no-side-effects-in-computed-properties.md): Disallow side effects in computed properties
- [vue/return-in-computed-property](https://lintradar.dev/rules/vue/return-in-computed-property.md): Enforce that a return statement is present in computed property

---

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