Files
skills-here-run-place/data/rules/example-rule.md
Alejandro Martinez b86c9f3e3a Add hooks and CLAUDE.md resource types with install/uninstall scripts
Introduces two new resource types (hooks, claude-md) with full CRUD,
   visual hook config editor, section-delimited CLAUDE.md installs,
   uninstall endpoints, and shell injection hardening in sync scripts.
2026-02-16 11:51:33 +01:00

1.1 KiB

name, description, paths, tags, author, author-email
name description paths tags author author-email
TypeScript Strict Enforce strict TypeScript patterns and conventions for all TS/TSX files. src/**/*.ts, src/**/*.tsx typescript, conventions Alejandro Martinez amartinez2@certinia.com

TypeScript Strict Rules

When working with TypeScript files, always follow these conventions:

Type Safety

  • Never use any — prefer unknown with type narrowing
  • Always define return types for exported functions
  • Use readonly for arrays and objects that shouldn't be mutated
  • Prefer interface over type for object shapes (except unions/intersections)

Imports

  • Use named imports, not default imports
  • Group imports: external libs, then internal modules, then relative paths
  • No circular dependencies

Naming

  • camelCase for variables and functions
  • PascalCase for types, interfaces, and classes
  • SCREAMING_SNAKE_CASE for constants
  • Prefix boolean variables with is, has, should, can

Error Handling

  • Never swallow errors silently (empty catch blocks)
  • Use custom error classes for domain errors
  • Always type error parameters in catch blocks