TypeScript standards and best practices with modern tooling. Use when working with TypeScript or TypeScript React files.
59
48%
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Passed
No known issues
Optimize this skill with Tessl
npx tessl skill review --optimize ./skills/typescript/SKILL.mdStandards 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.
3376255
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.