Vue · VUE0024
Prefer true attribute shorthand
Prefer native boolean attributes over v-bind expressions that only pass true.
vue/template/prefer-true-attribute-shorthandsrc/rule-packs/vue/rules/vue/prefer-true-attribute-shorthand.ts Upstream docs Run this rule
pnpm vite-doctor . --framework vue --rules vue/template/prefer-true-attribute-shorthand
Why it matters
Native boolean attributes are true by presence, so binding a literal true adds template noise without changing behavior.
Recommended fix
Use the bare native attribute, such as disabled, instead of
Useful links
Example
Use native boolean shorthand
Before
<template>
<button :disabled="true">Save</button>
</template>
After
<template>
<button disabled>Save</button>
</template>