# no-props-shadow

Rule `vue/no-props-shadow`. Disallow declarations that shadow props in `<script setup>`

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

## Linters

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

## Enable it

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

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

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

## Related rules

- [vue/no-potential-component-option-typo](https://lintradar.dev/rules/vue/no-potential-component-option-typo.md): Disallow a potential typo in your component property
- [vue/no-restricted-block](https://lintradar.dev/rules/vue/no-restricted-block.md): Disallow specific block
- [vue/no-literals-in-template](https://lintradar.dev/rules/vue/no-literals-in-template.md): Disallow object, array, and function literals in template
- [vue/no-restricted-class](https://lintradar.dev/rules/vue/no-restricted-class.md): Disallow specific classes in Vue components
- [vue/no-extra-parens](https://lintradar.dev/rules/vue/no-extra-parens.md): Disallow unnecessary parentheses in `<template>`
- [vue/no-restricted-component-names](https://lintradar.dev/rules/vue/no-restricted-component-names.md): Disallow specific component names

---

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