# max-props

Rule `vue/max-props`. Enforce maximum number of props in Vue component

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

## Linters

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

## Code examples

### Incorrect: the rule reports this

```vue
<template>
</template>

<script setup>
defineProps({
  prop1: String,
  prop2: String,
})
</script>
```

### Correct: the rule accepts this

```vue
<script>
defineProps({
  prop1: String
})
</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/max-props": "error",
    },
  },
];
```

### Oxlint: `.oxlintrc.json`

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

### Biome: `biome.json`

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

## Related rules

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