Vue3 Composition Api
Cursor rules for Vue 3 development with Composition API integration.
Awesome CursorRulesv10 Sterne · 0 Forks · 0 Werke≈236 Tokens
// Vue 3 Composition API .cursorrules
// Vue 3 Composition API best practices
const vue3CompositionApiBestPractices = [ "Use setup() function for component logic", "Utilize ref and reactive for reactive state", "Implement computed properties with computed()", "Use watch and watchEffect for side effects", "Implement lifecycle hooks with onMounted, onUpdated, etc.", "Utilize provide/inject for dependency injection", ];
// Folder structure
const folderStructure = src/ components/ composables/ views/ router/ store/ assets/ App.vue main.js;
// Additional instructions
const additionalInstructions = `
- Use TypeScript for type safety
- Implement proper props and emits definitions
- Utilize Vue 3's Teleport component when needed
- Use Suspense for async components
- Implement proper error handling
- Follow Vue 3 style guide and naming conventions
- Use Vite for fast development and building `;