Back to browse

Vue.js Conventions

agent · Cursorcodingother

Conventions for Vue.js components, including option ordering, directive usage, and preferring single file components.

Agent definition

- Follow Vue.js documentation for best practices. - Organize component options in a consistent order (e.g., data, computed, methods, watch, lifecycle hooks). - Use `v-bind` and `v-on` directives for data binding and event handling. - Prefer using single file components (.vue files).

Setup

Place in .cursor/rules/ (or as .cursorrules) at the root of your project.

Imported from the original source by sanjeed5, licensed CC0-1.0.

Are you the author and want this removed or changed? Request removal