{"data":{"slug":"discovered-e980f324b71d89d2b9b7f7f5fa2fb945e36c864542fd527b","title":"Vue Expert Js","summary":"Creates Vue 3 components, builds vanilla JS composables, configures Vite projects, and sets up routing and state management using JavaScript only \u2014 no TypeScript. Generates JSDoc-typed code with @typedef, @param, and @returns annotations for full type coverage without a TS compiler.","url":"https:\/\/skillshunter.net\/skills\/discovered-e980f324b71d89d2b9b7f7f5fa2fb945e36c864542fd527b","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/discovered-e980f324b71d89d2b9b7f7f5fa2fb945e36c864542fd527b","markdown_url":"https:\/\/skillshunter.net\/skills\/discovered-e980f324b71d89d2b9b7f7f5fa2fb945e36c864542fd527b.md","download_url":"https:\/\/skillshunter.net\/skills\/discovered-e980f324b71d89d2b9b7f7f5fa2fb945e36c864542fd527b\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Before proceeding, ensure that JSDoc plugin (`eslint-plugin-jsdoc`) is installed and configured to verify type coverage. Use `.mjs` extension for ES modules when needed, and avoid TypeScript syntax or `.ts` file extensions.","instructions":"---\nname: vue-expert-js\ndescription: Creates Vue 3 components, builds vanilla JS composables, configures Vite projects, and sets up routing and state management using JavaScript only \u2014 no TypeScript. Generates JSDoc-typed code with @typedef, @param, and @returns annotations for full type coverage without a TS compiler. Use when building Vue 3 applications with JavaScript only (no TypeScript), when projects require JSDoc-based type hints, when migrating from Vue 2 Options API to Composition API in JS, or when teams prefer vanilla JavaScript, .mjs modules, or need quick prototypes without TypeScript setup.\nlicense: MIT\nmetadata:\n  author: https:\/\/github.com\/Jeffallan\n  company: https:\/\/synergetic.solutions\n  version: \"1.1.0\"\n  domain: frontend\n  triggers: Vue JavaScript, Vue without TypeScript, Vue JSDoc, Vue JS only, Vue vanilla JavaScript, .mjs Vue, Vue no TS\n  role: specialist\n  scope: implementation\n  output-format: code\n  related-skills: vue-expert, javascript-pro\n---\n\n# Vue Expert (JavaScript)\n\nSenior Vue specialist building Vue 3 applications with JavaScript and JSDoc typing instead of TypeScript.\n\n## Core Workflow\n\n1. **Design architecture** \u2014 Plan component structure and composables with JSDoc type annotations\n2. **Implement** \u2014 Build with `<script setup>` (no `lang=\"ts\"`), `.mjs` modules where needed\n3. **Annotate** \u2014 Add comprehensive JSDoc comments (`@typedef`, `@param`, `@returns`, `@type`) for full type coverage; then run ESLint with the JSDoc plugin (`eslint-plugin-jsdoc`) to verify coverage \u2014 fix any missing or malformed annotations before proceeding\n4. **Test** \u2014 Verify with Vitest using JavaScript files; confirm JSDoc coverage on all public APIs; if tests fail, revisit the relevant composable or component, correct the logic or annotation, and re-run until the suite is green\n\n## Reference Guide\n\nLoad detailed guidance based on context:\n\n| Topic | Reference | Load When |\n|-------|-----------|-----------|\n| JSDoc Typing | `references\/jsdoc-typing.md` | JSDoc types, @typedef, @param, type hints |\n| Composables | `references\/composables-patterns.md` | custom composables, ref, reactive, lifecycle hooks |\n| Components | `references\/component-architecture.md` | props, emits, slots, provide\/inject |\n| State | `references\/state-management.md` | Pinia, stores, reactive state |\n| Testing | `references\/testing-patterns.md` | Vitest, component testing, mocking |\n\n**For shared Vue concepts, defer to vue-expert:**\n- `..\/vue-expert\/references\/composition-api.md` - Core reactivity patterns\n- `..\/vue-expert\/references\/components.md` - Props, emits, slots\n- `..\/vue-expert\/references\/state-management.md` - Pinia stores\n\n## Code Patterns\n\n### Component with JSDoc-typed props and emits\n\n```vue\n<script setup>\n\/**\n * @typedef {Object} UserCardProps\n * @property {string} name - Display name of the user\n * @property {number} age - User's age\n * @property {boolean} [isAdmin=false] - Whether the user has admin rights\n *\/\n\n\/** @type {UserCardProps} *\/\nconst props = defineProps({\n  name:    { type: String,  required: true },\n  age:     { type: Number,  required: true },\n  isAdmin: { type: Boolean, default: false },\n})\n\n\/**\n * @typedef {Object} UserCardEmits\n * @property {(id: string) => void} select - Emitted when the card is selected\n *\/\nconst emit = defineEmits(['select'])\n\n\/** @param {string} id *\/\nfunction handleSelect(id) {\n  emit('select', id)\n}\n<\/script>\n\n<template>\n  <div @click=\"handleSelect(props.name)\">\n    {{ props.name }} ({{ props.age }})\n  <\/div>\n<\/template>\n```\n\n### Composable with @typedef, @param, and @returns\n\n```js\n\/\/ composables\/useCounter.mjs\nimport { ref, computed } from 'vue'\n\n\/**\n * @typedef {Object} CounterState\n * @property {import('vue').Ref<number>} count - Reactive count value\n * @property {import('vue').ComputedRef<boolean>} isPositive - True when count > 0\n * @property {() => void} increment - Increases count by step\n * @property {() => void} reset - Resets count to initial value\n *\/\n\n\/**\n * Composable for a simple counter with configurable step.\n * @param {number} [initial=0] - Starting value\n * @param {number} [step=1]    - Amount to increment per call\n * @returns {CounterState}\n *\/\nexport function useCounter(initial = 0, step = 1) {\n  \/** @type {import('vue').Ref<number>} *\/\n  const count = ref(initial)\n\n  const isPositive = computed(() => count.value > 0)\n\n  function increment() {\n    count.value += step\n  }\n\n  function reset() {\n    count.value = initial\n  }\n\n  return { count, isPositive, increment, reset }\n}\n```\n\n### @typedef for a complex object used across files\n\n```js\n\/\/ types\/user.mjs\n\n\/**\n * @typedef {Object} User\n * @property {string}   id       - UUID\n * @property {string}   name     - Full display name\n * @property {string}   email    - Contact email\n * @property {'admin'|'viewer'} role - Access level\n *\/\n\n\/\/ Import in other files with:\n\/\/ \/** @type {import('.\/types\/user.mjs').User} *\/\n```\n\n## Constraints\n\n### MUST DO\n- Use Composition API with `<script setup>`\n- Use JSDoc comments for type documentation\n- Use `.mjs` extension for ES modules when needed\n- Annotate every public function with `@param` and `@returns`\n- Use `@typedef` for complex object shapes shared across files\n- Use `@type` annotations for reactive variables\n- Follow vue-expert patterns adapted for JavaScript\n\n### MUST NOT DO\n- Use TypeScript syntax (no `<script setup lang=\"ts\">`)\n- Use `.ts` file extensions\n- Skip JSDoc types for public APIs\n- Use CommonJS `require()` in Vue files\n- Ignore type safety entirely\n- Mix TypeScript files with JavaScript in the same component\n\n## Output Templates\n\nWhen implementing Vue features in JavaScript:\n1. Component file with `<script setup>` (no lang attribute) and JSDoc-typed props\/emits\n2. `@typedef` definitions for complex prop or state shapes\n3. Composable with `@param` and `@returns` annotations\n4. Brief note on type coverage\n\n## Knowledge Reference\n\nVue 3 Composition API, JSDoc, ESM modules, Pinia, Vue Router 4, Vite, VueUse, Vitest, Vue Test Utils, JavaScript ES2022+\n\nMaintained by [@jeffallan](https:\/\/github.com\/jeffallan), Principal Consultant at [Synergetic Solutions](https:\/\/synergetic.solutions)\n\n[Documentation](https:\/\/jeffallan.github.io\/claude-skills\/skills\/frontend\/vue-expert-js\/)\n","use_cases":["Building Vue 3 applications with JavaScript only (no TypeScript)","Migrating from Vue 2 Options API to Composition API in JS","Creating JSDoc-typed code for type hints without a TS compiler","Setting up Vite projects with JavaScript-based Vue components"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/Jeffallan\/claude-skills\/blob\/a8be463010e2ca23afe00ea00773aea7128e8971\/plugin\/skills\/vue-expert-js\/SKILL.md","source_commit":"a8be463010e2ca23afe00ea00773aea7128e8971","license":null,"version":null,"listing_approved_at":"2026-11-29","created_at":"2026-11-28T18:48:18.000000Z","updated_at":"2026-11-29T10:53:27.000000Z","seo_title":"Vue Expert Js - JavaScript-only Vue 3 Development with JSDoc","seo_description":"Build Vue 3 applications using JavaScript only with full type coverage via JSDoc annotations. No TypeScript required. Ideal for teams preferring vanilla JS, .mjs modules,","seo_keywords":["Vue JavaScript","Vue without TypeScript","Vue JSDoc","Vue JS only","Vue vanilla JavaScript",".mjs Vue","Vue no TS"]}}