# noVueMixin

Rule `biome/noVueMixin`. Disallow the `mixins` option in Vue components.

- Source: biome
- Technologies: JavaScript
- Kind: style
- Needs type information: no
- Autofix: no
- Reach: 30.6M weekly downloads of presets that enable it
- Trend: +109.3% last quarter
- Rank: #581 by reach, #216 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| Biome | `nursery/noVueMixin` | yes | no | group nursery, since 2.6.5 | [docs](https://biomejs.dev/linter/rules/no-vue-mixin/) |

## Code examples

### Incorrect: the rule reports this

```vue
<script>
import counterMixin from "./counterMixin";

export default {
  mixins: [counterMixin],
};
</script>
```

```js
import { defineComponent } from "vue";
import counterMixin from "./counterMixin";

export default defineComponent({
  mixins: [counterMixin],
});
```

### Correct: the rule accepts this

```vue
<script setup>
import { useCounter } from "./useCounter";

const { count, increment } = useCounter();
</script>
```

Examples from the Biome documentation.

## Enable it

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "nursery": {
        "noVueMixin": "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% |
| [Ultracite for Biome](https://lintradar.dev/presets/ultracite-biome.md) | Biome | `ultracite` | 616 | 2.1M | +151.7% |

## Related rules

- [biome/noVoidTypeReturn](https://lintradar.dev/rules/biome/noVoidTypeReturn.md): Disallow returning a value from a function with the return type 'void'
- [biome/noZeroLengthUnit](https://lintradar.dev/rules/biome/noZeroLengthUnit.md): Disallow units on zero lengths.
- [biome/noUselessStringRaw](https://lintradar.dev/rules/biome/noUselessStringRaw.md): Disallow unnecessary `String.raw` function in template string literals without any escape sequence.
- [biome/useBiomeIgnoreFolder](https://lintradar.dev/rules/biome/useBiomeIgnoreFolder.md): Prefer folder exclusions that prevent Biome from scanning the folder.
- [biome/noUselessReExportAll](https://lintradar.dev/rules/biome/noUselessReExportAll.md): Disallow `export * from` a module that has no named exports.
- [biome/useBiomeKindSets](https://lintradar.dev/rules/biome/useBiomeKindSets.md): Require kind sets instead of comparing kind names one by one in Biome JS plugins.

---

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