/nuxt-modern-dev:typescript-strictfrom nuxt-modern-dev
Enforces TypeScript strict mode in Vue, Nuxt, and Node projects: types composables, API responses, and external data; bans `any` and `@ts-ignore`.
Ships in nuxt-modern-dev. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Baseline: TypeScript strict mode. Confirm the exact compiler version from the repository lockfile.
| ALWAYS | NEVER |
|---|---|
strict: true in tsconfig | any (use unknown + narrow) |
| Type props, emits, composable returns | Silence errors with @ts-ignore / blanket as any |
Type useFetch / API data | Fake/mock data when the real API fails |
Prefer interface/type for shared shapes | Implicit any parameters |
unknown then narrow, or zod/schema if project already uses itdefineProps<{ ... }>() typedunknown in catch, narrow before use// composable return — named fields, readonly state
export function useCounter(initial = 0) {
const count = ref(initial)
function inc() {
count.value++
}
return { count: readonly(count), inc }
}
// fetch — type the data, handle error state (no mock fallback)
const { data, error, pending } = await useFetch<Item[]>('/api/items')
if (error.value) {
// show error UI — do not invent items
}
// bad
function parse(x: any) {
return x.foo
}
// good
function parse(x: unknown): string {
if (typeof x === 'object' && x && 'foo' in x && typeof (x as { foo: unknown }).foo === 'string') {
return (x as { foo: string }).foo
}
throw new Error('Invalid payload')
}
bun run typecheck
# or
nuxi typecheck
| Excuse | Reality |
|---|---|
| "any is faster" | Breaks refactors; use unknown |
| "I'll fix types later" | Later never; type at the boundary now |
| "Mock data if API fails" | Forbidden — show error state |
any / @ts-ignoretypecheck considered or runWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
TypeScript, Vue, Nuxt, Node
npx claudepluginhub pstuart/pstuart --plugin nuxt-modern-dev7 skills in this plugin
/accessibility-auditAudit web pages and apps for WCAG 2.1 AA accessibility compliance. Use when fixing lighthouse issues, contrast ratios, ARIA labels, or keyboard navigation./nuxt4-frontendUse when building or reviewing Nuxt 4 apps, app/ directory layout, pages, layouts, server routes, composables, layers, or Nuxt data fetching./security-auditSecurity audit checklist for web applications. Use when reviewing security posture, checking for vulnerabilities, or hardening a deployment.Other plugins' skills for the same job