init
This commit is contained in:
10
.cursor/rules/vue-best-practices.mdc
Normal file
10
.cursor/rules/vue-best-practices.mdc
Normal file
@@ -0,0 +1,10 @@
|
||||
---
|
||||
description: Best practices for Vue 3 applications
|
||||
globs: *.vue
|
||||
alwaysApply: false
|
||||
---
|
||||
- Use Vue3 Composition API for better code organization and reusability
|
||||
- Components should be automatically split into multiple small components that are easy to maintain
|
||||
- parseTime/parseDate/baseURL are global properties and can be used directly
|
||||
- Leverage Vue's built-in directives like `v-model` for form handling
|
||||
- Implement proper error handling with `try/catch` in component setup
|
||||
Reference in New Issue
Block a user