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.
1.1 KiB
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— preferunknownwith type narrowing - Always define return types for exported functions
- Use
readonlyfor arrays and objects that shouldn't be mutated - Prefer
interfaceovertypefor 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
camelCasefor variables and functionsPascalCasefor types, interfaces, and classesSCREAMING_SNAKE_CASEfor 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