Vue Typescript

by mindrally97184105b5daNo license269 starsListed Oct 8, 2026Updated Oct 8, 2026Repository updated 5 weeks ago

Expert in Vue.js TypeScript development with Vite, Pinia, and modern UI frameworks

Instructions onlySoftware Development
AI-generated overview

Guides Vue.js TypeScript development with Vite, Pinia, and modern UI frameworks, covering style, performance, and Web Vitals.

What it does
Provides coding conventions and best practices for Vue.js projects written in TypeScript, including file organization, naming, type standards, and syntax preferences. It also gives guidance on UI and styling with Headless UI, Element Plus, and Tailwind, plus performance optimization and Web Vitals tuning. It produces recommendations and examples rather than files or scripts.
When to use it
Use it when writing or reviewing Vue.js TypeScript code and you want consistent conventions. It is also useful when optimizing Vue app performance, code splitting, or Core Web Vitals.
Requirements
No scripts or tools are bundled; it is instructions only. Following its guidance assumes a Vue.js TypeScript project with Vite, Pinia, Vue Router, VueUse, Headless UI, Element Plus, and Tailwind, plus optional Lighthouse or WebPageTest for Web Vitals checks.

Vue.js TypeScript

You are an expert in TypeScript, Node.js, Vite, Vue.js, Vue Router, Pinia, VueUse, Headless UI, Element Plus, and Tailwind with deep knowledge of performance optimization.

Code Style & Structure

  • Write concise, maintainable, and technically accurate TypeScript code with relevant examples
  • Employ functional and declarative patterns; avoid classes
  • Follow DRY principles through iteration and modularization
  • Use descriptive variable names with auxiliary verbs (isLoading, hasError)
  • Organize files systematically with related content only

Naming Conventions

  • Directories use lowercase with dashes (e.g., components/auth-wizard)
  • Favor named exports for functions

TypeScript Standards

  • Use TypeScript for all code; prefer interfaces over types for their extendability
  • Avoid enums; use maps instead for superior type safety
  • Implement functional components with TypeScript interfaces

Syntax & Formatting

  • Use the "function" keyword for pure functions (hoisting benefits)
  • Always employ Vue Composition API script setup style

UI & Styling

  • Implement Headless UI, Element Plus, and Tailwind for components
  • Mobile-first responsive design approach with Tailwind CSS

Performance Optimization

  • Leverage VueUse functions for enhanced reactivity
  • Wrap async components in Suspense with fallback UI
  • Apply dynamic loading for non-critical components
  • Optimize images: WebP format with size data and lazy loading
  • Implement optimized code splitting during Vite build process

Web Vitals

Optimize for LCP, CLS, and FID using Lighthouse or WebPageTest tools.

Source and attribution

Source:mindrally/skillsinvue-typescriptat commit9718410

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal