Index of every page on this site: llms.txt
All skills
jyasuu avatar

/vue-best-practices

@d3e2684
Run it yourself

Vue 3 and Vue.js best practices for TypeScript, vue-tsc, and Volar. This skill should be used when writing, reviewing, or refactoring Vue components to ensure correct typing patterns. Triggers on tasks involving Vue components, props extraction, wrapper components, template type checking, or Volar configuration.

  • 18 files
  • 39.7 KB
  • MIT
  • Updated 10 months ago
  • GitHub
Use this Skill: https://skilld.dev/gh/jyasuu/cheat-sheet/vue-best-practices

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

rulescodeactions-save-performance.md

≈460 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Fix Slow Save Times with Code Actions Setting

Impact: HIGH - fixes 30-60 second save delays in large Vue projects

In large Vue projects, saving files can take 30-60+ seconds due to VSCode's code actions triggering expensive TypeScript state synchronization.

Problem

Symptoms:

  • Save operation takes 30+ seconds
  • Editor becomes unresponsive during save
  • CPU spikes when saving Vue files
  • Happens more in larger projects

Root Cause

VSCode emits document change events multiple times during save cycles. Each event triggers Volar to synchronize with TypeScript, causing expensive re-computation.

Solution

Disable code actions or limit their timeout:

Option 1: Disable code actions (fastest)

// .vscode/settings.json
{
  "vue.codeActions.enabled": false
}

Option 2: Limit code action time

// .vscode/settings.json
{
  "vue.codeActions.savingTimeLimit": 1000
}

Option 3: Disable specific code actions

// .vscode/settings.json
{
  "vue.codeActions.enabled": true,
  "editor.codeActionsOnSave": {
    "source.organizeImports": "never"
  }
}

VSCode Version Requirement

VSCode 1.81.0+ includes fixes that reduce save time issues. Upgrade if using an older version.

Additional Optimizations

// .vscode/settings.json
{
  "vue.codeActions.enabled": false,
  "editor.formatOnSave": true,
  "editor.codeActionsOnSave": {},
  "[vue]": {
    "editor.formatOnSave": true,
    "editor.defaultFormatter": "Vue.volar"
  }
}

Reference

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at d3e2684. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last month.

Steadyupdated 10 months ago
metadata
{
  "author": "hyf0",
  "version": "8.0.0"
}

README badge

README badge for jyasuu/cheat-sheet/vue-best-practices