Use the project's component instead of a raw element
design-system/prefer-project-componentsrc/rule-packs/design-system/rules/prefer-project-component.ts Upstream docs Run this rule
pnpm vite-doctor . --extends design-system/strict --rules design-system/prefer-project-component
Why it matters
A raw element skips the component the project built or installed for it, so it can look and behave differently from every other instance: focus rings, sizes, disabled and loading states, and form field wiring drift. The Rule learns which component replaces which element from Component Contracts, the Nuxt UI component table, or a project SFC named after the element and available through a local import or registration. The Rule skips statically invisible elements, native placeholders styled in local CSS when Nuxt UI is the replacement, and ambiguous replacements. It replaces nuxt-ui/prefer-u-button (NUXT0013) and nuxt-ui/prefer-u-form-controls (NUXT0014). Choose one config setting for the combined Rule: "off" disables both checks. Update suppression IDs and narrow their scope where needed. Regenerate the baseline instead of editing Rule IDs, since the fingerprints have changed.
Recommended fix
Render the replacing component, keep its attributes, v-model, listeners, and content, and move styling classes to the component's props. For Nuxt UI text inputs and textareas, use ui.base for classes that style the native element.
Useful links
Example
Use UButton in a Nuxt UI app
Before
<template>
<button type="button" @click="save">Save</button>
</template>
After
<template>
<UButton @click="save">Save</UButton>
</template>