# no-unused-properties

Rule `vue/no-unused-properties`. Disallow unused 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: #2075 by reach

## Linters

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

## Code examples

### Incorrect: the rule reports this

```vue
<template>
  <div>{{ cnt }}</div>
</template>
<script>
export default {
  props: ['count']
}
</script>
```

```vue
<script>
export default {
  data() {
    return {
      count: null
    }
  },
  created() {
    this.cnt = 2
  }
}
</script>
```

```vue
<template>
  <p>{{ message }}</p>
</template>
<script>
export default {
  data() {
    return {
      message: 'Hello'
    }
  },
  computed: {
    reversedMessage() {
      return this.message.split('').reverse().join('')
    }
  }
}
</script>
```

### Correct: the rule accepts this

```vue
<template>
  <div>{{ count }}</div>
</template>
<script>
export default {
  props: ['count']
}
</script>
```

```vue
<script>
export default {
  data() {
    return {
      count: null
    }
  },
  created() {
    this.count = 2
  }
}
</script>
```

```vue
<template>
  <p>{{ reversedMessage }}</p>
</template>
<script>
export default {
  data() {
    return {
      message: 'Hello'
    }
  },
  computed: {
    reversedMessage() {
      return this.message.split('').reverse().join('')
    }
  }
}
</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-unused-properties": "error",
    },
  },
];
```

## Related rules

- [unicorn/no-unused-properties](https://lintradar.dev/rules/unicorn/no-unused-properties.md): Disallow unused object properties.
- [vue/no-unsupported-features](https://lintradar.dev/rules/vue/no-unsupported-features.md): Disallow unsupported Vue.js syntax on the specified version
- [vue/no-useless-mustaches](https://lintradar.dev/rules/vue/no-useless-mustaches.md): Disallow unnecessary mustache interpolations
- [vue/no-undef-components](https://lintradar.dev/rules/vue/no-undef-components.md): Disallow use of undefined components in `<template>`
- [vue/no-static-inline-styles](https://lintradar.dev/rules/vue/no-static-inline-styles.md): Disallow static inline `style` attributes
- [vue/no-restricted-static-attribute](https://lintradar.dev/rules/vue/no-restricted-static-attribute.md): Disallow specific attribute

---

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