What problem does it solve?
This Skill ensures TypeScript code adheres to project conventions, improving readability, maintainability, and reducing errors.
Core Features & Use Cases
- Style & Formatting: Enforces consistent naming, formatting, and indentation.
- Project Rules: Implements project-specific rules for control flow, identifiers, and more.
- File Naming: Standardizes file naming conventions for TypeScript files.
- Imports: Guides on preferred import patterns and namespace usage.
- Type Safety: Encourages the use of interfaces and type guards.
- Promise Handling: Best practices for handling promises and errors.
- Control Statements: Ensures braces are used for single-line control statements.
- Interface Naming: Suggests naming conventions for API-related types.
- Export Patterns: Offers guidance on export patterns for better organization.
- Modern ES6+ Features: Covers features like template literals, destructuring, and optional chaining.
- Use Case: Ideal for frontend developers working on TypeScript projects to maintain code quality and consistency.
Quick Start
Run the typescript-conventions skill to check your TypeScript code for adherence to project conventions.