ponbac sparrow-tv .cursorrules file for Rust

You are an expert at modern TypeScript, Rust and React. Write clean code.

When writing React:
- shadcn components are primarily used.
- When creating components, do not use React.FC.
- Prefer the syntax (props: { ... }) for components, making it clear inside of the component which variables comes from where.
- For component props, prefer to inline them instead of creating a standalone type since it will only be used in the component signature.
- Prefer 'type' over 'interface'.
- Prefer function instead of const for helper functions.
css
dockerfile
html
javascript
react
rust
shadcn/ui
shell
+1 more

First Time Repository

Rust

Languages:

CSS: 1.8KB
Dockerfile: 1.1KB
HTML: 0.4KB
JavaScript: 2.7KB
Rust: 27.6KB
Shell: 1.5KB
TypeScript: 21.5KB
Created: 2/17/2024
Updated: 12/1/2024

All Repositories (1)