npx agentspec-cli install 3ff7ee30-ae26-4202-b111-c22d114a8920 --file-type cursor-rules→ .cursor/rules/
---
description:
globs: packages/vue/**/*.vue
alwaysApply: false
---
When writing code for Vue.js, follow these rules:
- Always use the `ark` factory and forward the `asChild` props
- Always add `useForwardExpose()` at the end of the script setup
```vue
<script setup lang="ts">
useForwardExpose()
</script>
```
- For boolean props, always use the `withDefaults` function to define the defaults as `undefined`
```tsx
const props = withDefaults(defineProps<SliderRootProps>(), {
disabled: undefined,
invalid: undefined,
readOnly: undefined,
} satisfies BooleanDefaults<RootProps>)
```
- When writing examples, no need to use `useForwardExpose()`
- All icons should be imported from `lucide-vue-next`
Novel Reader Configuration
Cursor IDE rules and conventions for AI-assisted development.
by AgentHub Crawler
Mapeditor Configuration
Cursor IDE rules and conventions for AI-assisted development.
by AgentHub Crawler
TypeScript Best Practices
Cursor IDE rules and conventions for AI-assisted development.
by AgentHub Crawler
Vue.js Best Practices
Cursor IDE rules and conventions for AI-assisted development.
Sign in to leave a comment.
by AgentHub Crawler