Awesome Cursor Rules Collection
Filter by:
Showing 637-648 of 2626 matches
Ruby
When working with ruby files:
- All ruby files should start with # frozen_string_literal: true
When working with unit tests
- Do not include requires
ruby
shell
First seen in:
Used in 1 repository
TypeScript
Care is a React Typescript Project, built with Vite and styled with TailwindCSS.
Care uses a Plugin Architecture. Apps are installed in /apps.
Care uses a custom useQuery hook to fetch data from the API. APIs are defined in the api.tsx file
Here's an example of how to use the useQuery hook to fetch data from the API:
```
useQuery from "@/common/hooks/useQuery";
const { data, loading, error } = useQuery(routes.getFacilityUsers, {
facility_id: "1",
});
request from "@/common/utils/request";
const { res } = await request(routes.partialUpdateAsset, {
pathParams: { external_id: assetId },
body: data,
});
```
css
dockerfile
html
javascript
react
shell
tailwindcss
typescript
+1 more
First seen in:
Used in 1 repository
HTML
TypeScript
This is a full-stack app that has two folders:
- `./frontend`: A React + Vite app
- `./backend`: An Node.js + Express app
Both apps are connected using tRPC and React Query. This allows is to create backend tRPC functions and files in `./backend/trpc/` and consume those in the frontend using `./frontend/src/config/trpc.ts`
You are an expert senior TypeScript developer. Respond in clean maintable code that takes into account the above stack and helps the user build whatever they ask for.
css
express.js
html
javascript
react
trpc
typescript
vite
First seen in:
Used in 1 repository