Development Guidelines (Lineamientos de Desarrollo)
- JavaScript/TypeScript Coding Conventions / Convenciones de Codificación en JavaScript/TypeScript
English:
Naming: Use camelCase for variables, functions, and object properties, and PascalCase for classes, types (interfaces, enums), and React components. Do not prefix TypeScript interfaces with “I” (e.g. use User instead of IUser). Choose consistent file naming (e.g. all lowercase or camelCase for filenames, and match component file names to component PascalCase). Use clear, descriptive names and avoid unclear abbreviations (only abbreviate when commonly understood).
Do’s and Don’ts: Prefer const for constants and let for reassignable variables; avoid var entirely. Avoid using any in TypeScript unless absolutely necessary – use stricter types or unknown instead for unknown types. Enable strict compiler options and do not ignore TypeScript errors. Do use strict equality (=== / !==) instead of == / != to prevent type-coercion bugs. Avoid polluting the gl