Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@ When making significant changes to the architecture or solving notable problems,

Use functional programming style using effect-ts.
When doing array operations, use effects Array for mapping, folding, etc.
When running multiple effects on an array, use the Effect.forEach pattern:
When running multiple effects on an array, use the `Effect.forEach` pattern:
```ts
const results = yield* pipe(items, Effect.forEach(item => Effect.gen(function*(){ ... })))
When creating Effect services, use Effect.Service pattern:
```
When creating Effect services, use `Effect.Service` pattern:

// :white_check_mark: Correct: Class-based service with Effect.Service
```ts
// ✅ Correct: Class-based service with Effect.Service
export class EpisodeService extends Effect.Service<EpisodeService>()(
"EpisodeService",
{
Expand All @@ -31,7 +34,7 @@ export class EpisodeService extends Effect.Service<EpisodeService>()(
})
}
) {}

```

Prefer type aliases over interfaces.
Use react-icons remix icons when you choose a new icon.
Expand Down
Loading