typescript | Skill Performance & Reviews | TopRankSkills

TopRank Skills

Home / Skills / tools / typescript

typescript

maintained by FranciscoMoretti

star 999 account_tree 99 verified_user MIT License
bolt View GitHub

name: typescript description: Typescript rules for the project Applies to files matching: .tsx,.ts.

Typing Guidelines

  • Avoid any at all cost. The types should work or they indicate a problem.
  • Never use as "any" or as unknown as to solve/avoid type errors. The types should work or they indicate a problem.
  • Avoid using as to cast to a specific type. The types should work or they indicate a problem.

Exports / Imports

  • Never create index barrel files (index.ts, index.js)
  • Always use direct imports with named exports
  • Always use inline interfaces with function parameters

Examples

Good - Inline interface with function:

export function processData({
  id,
  name,
  options,
}: {
  id: string;
  name: string;
  options: ProcessingOptions;
}): ProcessedResult {
  // implementation
}

Bad - Separated interface:

interface ProcessDataProps {
  id: string;
  name: string;
  options: ProcessingOptions;
}

export function processDAta({
  id,
  name,
  options,
}: ProcessDataProps): ProcessResult {
  // Implementation
}

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!

Skill Details

GitHub Stars 999
GitHub Forks 99
Created Jan 2026
Last Updated 8个月前
tools tools code quality

Related Skills

reviewing-pr
chevron_right
creating-pr
chevron_right
packmind-standard-creator
chevron_right
packmind-standard-creator
chevron_right
code-review-router
chevron_right

Build your own?

Join 12,000+ developers contributing to the Claude ecosystem.