What problem does it solve?
Inconsistent coding styles across a team or project lead to reduced readability, increased cognitive load, and frequent, often subjective, code review debates. This Skill enforces a unified coding style, promoting clarity and efficiency.
Core Features & Use Cases
- TypeScript Strictness: Leverage strict TypeScript rules (e.g.,
no-explicit-any, prefer-nullish-coalescing) for robust, error-free, and maintainable code.
- Naming Conventions: Apply consistent file, class, function, and variable naming (e.g., kebab-case for files, PascalCase for classes) for immediate understanding.
- Automated Formatting: Utilize ESLint and Prettier for automatic code quality checks and formatting, reducing manual effort and ensuring consistency.
- Use Case: When writing new TypeScript code, automatically ensure imports are sorted, variables are properly typed (no
any), and the code adheres to the 120-character line width, significantly reducing manual review effort.
Quick Start
Review this TypeScript file and suggest improvements to its coding style, focusing on import organization, variable naming, and adherence to strict TypeScript rules as defined in our project.