# prefer-prop-type-boolean-first

Rule `vue/prefer-prop-type-boolean-first`. Enforce `Boolean` comes first in component prop types

- Source: vue
- Technologies: Vue
- Kind: correctness
- Needs type information: no
- Autofix: yes, in at least one linter
- Reach: 0 weekly downloads of presets that enable it
- Trend: 0% last quarter
- Rank: #1844 by reach

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `vue/prefer-prop-type-boolean-first` | no | suggestion | package `eslint-plugin-vue` | [docs](https://eslint.vuejs.org/rules/prefer-prop-type-boolean-first.html) |
| Biome | `nursery/useVueBooleanPropTypeFirst` | no | unsafe | group nursery, since 2.6.5 | [docs](https://biomejs.dev/linter/rules/use-vue-boolean-prop-type-first/) |

## Code examples

### Incorrect: the rule reports this

```vue
    e: [String, Boolean],
    f: {
      type: [String, Boolean]
    }
  }
}
</script>
```

### Correct: the rule accepts this

```vue
a: Boolean,
b: String,
c: [Boolean, String],
d: {
  type: [Boolean, String]
},
```

Examples from the ESLint documentation.

## Enable it

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

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

export default [
  {
    plugins: { vue },
    rules: {
      "vue/prefer-prop-type-boolean-first": "error",
    },
  },
];
```

### Biome: `biome.json`

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

## Related rules

- [vue/no-v-text](https://lintradar.dev/rules/vue/no-v-text.md): Disallow use of v-text
- [vue/prefer-single-event-payload](https://lintradar.dev/rules/vue/prefer-single-event-payload.md): Enforce passing a single argument to custom event emissions
- [vue/no-useless-concat](https://lintradar.dev/rules/vue/no-useless-concat.md): Disallow unnecessary concatenation of literals or template literals in `<template>`
- [vue/prefer-true-attribute-shorthand](https://lintradar.dev/rules/vue/prefer-true-attribute-shorthand.md): Require shorthand form attribute when `v-bind` value is `true`
- [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/prefer-use-template-ref](https://lintradar.dev/rules/vue/prefer-use-template-ref.md): Require using `useTemplateRef` instead of `ref`/`shallowRef` for template refs

---

Web page: https://lintradar.dev/rules/vue/prefer-prop-type-boolean-first. Data from npm and the linters' documentation, collected Dec 4, 2026. Site guide for agents: https://lintradar.dev/llms.txt
