bun test- Run all testsbun test test/specific.test.ts- Run single test filebun build- Build the project (TypeScript compilation + bundling)bun run compare- Run performance comparisons
- Indentation: Tabs (not spaces)
- Quotes: Double quotes for strings
- Imports: Auto-organized imports enabled
- Formatting: Use
biome formatfor consistent styling - Linting: Use
biome lintfor code quality checks
- Strict mode: Enabled with
noUncheckedIndexedAccess - Module system: ESNext with bundler resolution
- Target: ESNext for modern JavaScript features
- JSX: React JSX transform enabled
- Classes: PascalCase (e.g.,
JsonSchemaPatcher,StructuredDiff) - Functions/Variables: camelCase (e.g.,
buildPlan,diffArray) - Types/Interfaces: PascalCase (e.g.,
Operation,JsonValue) - Constants: camelCase for local, UPPER_CASE for module-level
- Use explicit type checking before operations
- Prefer early returns over nested conditionals
- Handle undefined/null values explicitly in type guards