john-smilga

9 mods across 1 repository, 4 stars between them.

django

01

john-smilga/cursor-rules-v2

Cursor rule Cursor

These rules apply when working in a Django + Django REST Framework (DRF) codebase.

4 8mo ago A 592 tokens

linting

03

john-smilga/cursor-rules-v2

Cursor rule Cursor

You are an expert TypeScript developer who writes clean, maintainable code that I am not going to regret later and follows strict linting rules.

4 8mo ago A 409 tokens

python

05

john-smilga/cursor-rules-v2

Cursor rule Cursor

These rules apply to all Python code written or modified in this repo.

4 8mo ago A 1,237 tokens

react-typescript

07

john-smilga/cursor-rules-v2

Cursor rule Cursor

I prefer states with discriminated unions. They're type-safe, prevent invalid state combinations, and TypeScript automatically narrows types.

4 8mo ago A 1,042 tokens

typescript

08

john-smilga/cursor-rules-v2

Cursor rule Cursor

When unsure, choose the option that is safer, more explicit, and more consistent with existing patterns.

4 8mo ago A 1,736 tokens

zod

09

john-smilga/cursor-rules-v2

Cursor rule Cursor

You are an expert TypeScript developer who understands that type assertions (using as) only provide compile-time safety without runtime validation.

4 8mo ago A 259 tokens