Skip to content

Commit 92ebdbf

Browse files
committed
Sync alphalib
1 parent 982becd commit 92ebdbf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.cursorrules

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
- Favor `if (!(err instanceof Error)) { throw new Error(`Was thrown a non-error: ${err}`) }` inside
66
`catch` blocks to ensure the `error` is always an instance of `Error`
77
- Favor using real paths (`../lib/schemas.ts`) over aliases (`@/app/lib/schemas`).
8-
- Favor using `.tsx` over `.jsx`.
8+
- Favor using `.tsx` over `.jsx` file extensions.
9+
- Favor the `tsx` CLI over `ts-node` for running TypeScript files.
910
- Favor `for (const comment of comments) {` over `comments.forEach((comment) => {`
1011
- Do not touch `.env` files!
1112
- Favor `satisfies` over `as`, consider `as` a sin

0 commit comments

Comments
 (0)