AgentLint Verified 100/100Verified Framework Starter (TypeScript/JS corpus)

    Vue 3 / Nuxt CLAUDE.md & AGENTS.md Template

    Composition API <script setup>, Vue Reactivity hygiene, vue-tsc typechecking, and fast Vitest loops.

    # Vue 3 / Nuxt Project — Vue TypeScript Harness
    
    Vue 3 + TypeScript application using `<script setup>`, Pinia state stores, Vite/Nuxt, `vue-tsc`, and Vitest.
    
    ## Commands
    
    - Install: `pnpm install --frozen-lockfile`
    - Fast single test: `npx vitest run src/components/PricingCard.test.ts`
    - Full test suite: `pnpm test`
    - Typecheck & lint: `npx vue-tsc --noEmit && pnpm lint`
    - Production build: `pnpm build`
    
    ## Rules
    
    - Don't mix Options API (`export default { data() }`) into new components. Instead use `<script setup lang="ts">` with typed `defineProps<T>()` and `defineEmits<T>()`. Because mixed API styles confuse composables and type inference.
    - Don't destructure Pinia store state directly. Instead wrap state properties in `storeToRefs(store)`. Because plain destructuring silently drops Vue reactivity.
    - Don't use `tsc --noEmit` alone for `.vue` files. Instead run `npx vue-tsc --noEmit`. Because standard `tsc` skips template type errors.
    - When editing Nuxt server routes or route middleware, read `docs/nuxt-routing.md` first.
    
    ## Continuity & Safety
    
    - Keep `.env*`, `.nuxt/`, and `CLAUDE.local.md` in `.gitignore`.
    - Record verified `vue-tsc` and Vitest outputs in `HANDOFF.md`.

    Most Adopted Vue 3 / Nuxt Rules Across Real Open-Source Repos

    Adoption benchmarks measured in the parent language cohort of our 4,533-repo harness study, paired with framework-specific invariants:

    tailwindcsstooling

    Tailwind CSS styling (measured in 1,533 TypeScript corpus repos)

    38.8%595 repos
    unit-teststesting

    Composable and component unit tests (1,533 TS corpus repos)

    37.6%577 repos
    eslinttooling

    ESLint + eslint-plugin-vue rules (1,533 TS corpus repos)

    36.9%565 repos
    vitesttesting

    Vitest + @vue/test-utils (1,533 TS corpus repos)

    32.6%499 repos
    Essential Commands (Checks W1 & W7)
    install
    pnpm install --frozen-lockfile
    fastTest
    npx vitest run src/composables/useCart.test.ts
    fullTest
    pnpm test
    lint
    pnpm lint && npx vue-tsc --noEmit
    build
    pnpm build
    Common Vue 3 / Nuxt Agent Pitfalls
    • 01Agents mix Options API into a <script setup lang="ts"> Composition API codebase, splitting team conventions.
    • 02Destructuring props or reactive Pinia stores without storeToRefs() silently breaks Vue reactivity.
    • 03Running plain tsc --noEmit misses template expression type errors that only vue-tsc --noEmit catches.

    More Verified Stack Templates