← Prompts
Meta Awesome Cursor Rules

Use setup() function for component logic"

// Vue 3 Composition API .cursorrules // Vue 3 Composition API best practices const vue3CompositionApiBestPractices = [ "Use setup() function for component logic", "Utilize ref and reactive for

// 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

Sign in to view the full prompt.

Sign In

Classification

Meta Prompts about prompting conventions
Scope Project
This codebase
Manual Manually placed / Persistent