TypeScript standards and best practices with modern tooling. Use when working with TypeScript or TypeScript React files.
Overall
score
60%
Does it follow best practices?
If you maintain this skill, you can automatically optimize it using the tessl CLI to improve its score:
npx tessl skill review --optimize ./path/to/skillValidation for skill structure
Standards and best practices for TypeScript development with modern tooling. Follow these guidelines when writing or modifying TypeScript code.
Apply DRY, KISS, and SOLID consistently. Prefer functional approaches where relevant; use classes for stateful behavior. Use composition over inheritance. Each module should have a single responsibility. Use dependency injection for class dependencies.
any unless necessaryany: Use unknown instead of any when the type is truly unknown. Narrow types appropriately.src/ directory structure*.test.ts or *.spec.ts@vitest/coverage-v8 for coveragejsdom for DOM testing when neededprintWidth: 120, singleQuote: true, jsxSingleQuote: truepnpm format to format codepnpm format:check to check formatting@typescript-eslint/parser and @typescript-eslint/eslint-pluginpnpm lint to check lintingpnpm lint:fix to auto-fix issuespackageManager field in package.jsonWhen implementing TypeScript code:
For monorepo-specific patterns using pnpm, see references/pnpm-monorepo.md.
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.