# no-undef-properties

Rule `vue/no-undef-properties`. Disallow undefined properties

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

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `vue/no-undef-properties` | no | no | package `eslint-plugin-vue` | [docs](https://eslint.vuejs.org/rules/no-undef-properties.html) |
| Biome | `nursery/noVueUndeclaredProperties` | no | no | group nursery, since 2.6.5 | [docs](https://biomejs.dev/linter/rules/no-vue-undeclared-properties/) |

## Code examples

### Incorrect: the rule reports this

```vue
  <div>{{ label }}: {{ cnt }}</div>
</template>
<script setup>
const prop = defineProps(['name', 'def'])
let count = 0

/* ✓ GOOD */
watch(() => prop.def, () => console.log('Updated!'))

/* ✗ BAD */
watch(() => prop.undef, () => console.log('Updated!'))
</script>
```

```vue
  <div>{{ label }}: {{ cnt }}</div>
</template>
<script>
export default {
  props: ['name'],
  data() {
    return {
      count: 0
    }
  },
  methods: {
    click() {
      /* ✓ GOOD */
      this.count++

      /* ✗ BAD */
      this.cnt++
    }
  }
}
</script>
```

### Correct: the rule accepts this

```vue
<div>{{ name }}: {{ count }}</div>
```

```vue
<div>{{ name }}: {{ count }}</div>
```

```vue
  <div>{{ $t('foo') }}</div>
</template>
<script>
export default {
  mounted() {
    /* ✓ GOOD */
    const hash = this.$route.hash
  }
}
</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/no-undef-properties": "error",
    },
  },
];
```

### Biome: `biome.json`

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

## Related rules

- [vue/no-undef-directives](https://lintradar.dev/rules/vue/no-undef-directives.md): Disallow use of undefined custom directives
- [vue/no-use-v-else-with-v-for](https://lintradar.dev/rules/vue/no-use-v-else-with-v-for.md): Disallow using `v-else-if`/`v-else` on the same element as `v-for`
- [vue/no-template-target-blank](https://lintradar.dev/rules/vue/no-template-target-blank.md): Disallow target="_blank" attribute without rel="noopener noreferrer"
- [vue/no-useless-concat](https://lintradar.dev/rules/vue/no-useless-concat.md): Disallow unnecessary concatenation of literals or template literals in `<template>`
- [vue/no-shadow-native-events](https://lintradar.dev/rules/vue/no-shadow-native-events.md): Disallow the use of event names that collide with native web event names
- [vue/no-v-text](https://lintradar.dev/rules/vue/no-v-text.md): Disallow use of v-text

---

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