typescript-conventions

Solid

TypeScript and React coding conventions for CAST projects. Load when writing, reviewing, or debugging TypeScript/TSX/React code. Covers file naming, type patterns, hooks, component conventions, and testing approach.

AI & Automation 8 stars 1 forks Updated today MIT

Install

View on GitHub

Quality Score: 79/100

Stars 20%
32
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
38
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# TypeScript Conventions - Use React 19 patterns: functional components, hooks, no class components - Extend existing types rather than type casting: `type UserAdmin = User & { isAdmin: true }` instead of `(user as UserAdmin)` - Component files: PascalCase (`UserProfile.tsx`) - Hook files: camelCase prefixed with `use` (`useLocalStorage.ts`) - Test files live alongside source: `Foo.tsx` -> `Foo.test.tsx` - Use Vitest + React Testing Library for tests (not Jest in Vite projects) - Test behavior with `getByRole`/`getByText`, not `getByTestId` - Import order: React, third-party, local modules, types (enforce with ESLint) - Prefer `interface` over `type` for object shapes that may be extended - Use `satisfies` operator for type-safe config objects

Details

Author
ek33450505
Repository
ek33450505/claude-agent-team
Created
5 months ago
Last Updated
today
Language
Shell
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category