Lightlines
By vuejs-ai

vue-options-api-best-practices

vuejs-ai10.8k installs

Avoid common bugs in Vue Options API components.

What it does

Guides Vue Options API development with rules for component context, lifecycle cleanup, and TypeScript typing.

When to use it

Use when working on Options API components with type-inference problems, incorrect component context, or shared debounced-function state.

How to use it

It changes how the agent writes Vue Options API components, preserving component context and applying the documented typing and lifecycle rules.

What you provide

  • An existing project

Latest review

What you need · 2

The guidance works on Vue Options API components and uses the vue package's component-definition utilities.

Enables the TypeScript-specific guidance; projects below version 4.7 require the documented arrow-function workaround for prop validators and defaults.


Access · 0

No additional actions listed.