typescript

Enforce TypeScript coding conventions for types, naming, and arktype schemas.

4|2|Updated Apr 13, 2022
One-click install
npx skills add https://github.com/XadillaX/wix-parser --skill typescript-xadillax
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: typescript
Source: https://github.com/XadillaX/wix-parser/tree/main/.trae/skills/typescript
Command: npx skills add https://github.com/XadillaX/wix-parser --skill typescript-xadillax

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

TypeScript guidelines help teams maintain consistent style and architecture across projects, reducing cognitive load and bugs.

Core Features & Use Cases

  • Type co-location rules for types and implementations
  • Acronym casing guidelines (camelCase)
  • Naming conventions and test organization practices
  • Arktype schema guidance

Quick Start

Audit your codebase against these rules and begin refactoring files to align with the co-location and naming patterns.

Frequently Asked Questions about typescript

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What are the best TypeScript naming conventions for acronyms and variables?

TypeScript naming conventions dictate using camelCase for acronyms to improve readability. Applying consistent casing to variables and functions reduces cognitive load and ensures maintainability across the codebase.

How do I organize TypeScript types and implementations in my project?

Organize TypeScript types using type co-location rules, placing type definitions alongside their implementations. This structural pattern improves codebase consistency and makes refactoring files more straightforward.

How do I use arktype schemas for optional properties in TypeScript?

Use arktype schemas to define optional properties in TypeScript, ensuring JSON Schema compatibility. This approach enforces strict type rules and validates data structures during runtime.

Does this Skill help with TypeScript test organization practices?

Yes, it specifies TypeScript test organization practices to maintain consistent architecture across projects. Auditing your codebase against these rules improves test readability and overall code maintainability.

Why should I enforce coding conventions in my TypeScript codebase?

Enforcing TypeScript coding conventions reduces cognitive load and bugs by maintaining consistent style and architecture. Targeting scenarios like defining types and organizing tests improves overall project maintainability.