forked from imbytecat/fullstack-starter
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 036afb8d20 |
@@ -113,7 +113,6 @@ import type { ReactNode } from 'react'
|
|||||||
- Components: arrow functions (enforced by Biome)
|
- Components: arrow functions (enforced by Biome)
|
||||||
- Routes: TanStack Router file conventions (`export const Route = createFileRoute(...)`)
|
- Routes: TanStack Router file conventions (`export const Route = createFileRoute(...)`)
|
||||||
- Data fetching: `useSuspenseQuery(orpc.feature.list.queryOptions())`
|
- Data fetching: `useSuspenseQuery(orpc.feature.list.queryOptions())`
|
||||||
- Let React Compiler handle memoization (no manual `useMemo`/`useCallback`)
|
|
||||||
|
|
||||||
### Error Handling
|
### Error Handling
|
||||||
- Use `try-catch` for async operations; throw descriptive errors
|
- Use `try-catch` for async operations; throw descriptive errors
|
||||||
|
|||||||
@@ -226,7 +226,6 @@ import type { ReactNode } from 'react'
|
|||||||
### React
|
### React
|
||||||
- Use arrow functions for components (Biome enforced)
|
- Use arrow functions for components (Biome enforced)
|
||||||
- Use `useSuspenseQuery` for guaranteed data
|
- Use `useSuspenseQuery` for guaranteed data
|
||||||
- Let React Compiler handle memoization (no manual `useMemo`/`useCallback`)
|
|
||||||
|
|
||||||
## Environment Variables
|
## Environment Variables
|
||||||
|
|
||||||
|
|||||||
@@ -43,7 +43,6 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@furtherverse/tsconfig": "workspace:*",
|
"@furtherverse/tsconfig": "workspace:*",
|
||||||
"@rolldown/plugin-babel": "catalog:",
|
|
||||||
"@tailwindcss/vite": "catalog:",
|
"@tailwindcss/vite": "catalog:",
|
||||||
"@tanstack/devtools-vite": "catalog:",
|
"@tanstack/devtools-vite": "catalog:",
|
||||||
"@tanstack/react-devtools": "catalog:",
|
"@tanstack/react-devtools": "catalog:",
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
import babel from '@rolldown/plugin-babel'
|
|
||||||
import tailwindcss from '@tailwindcss/vite'
|
import tailwindcss from '@tailwindcss/vite'
|
||||||
import { devtools as tanstackDevtools } from '@tanstack/devtools-vite'
|
import { devtools as tanstackDevtools } from '@tanstack/devtools-vite'
|
||||||
import { tanstackStart } from '@tanstack/react-start/plugin/vite'
|
import { tanstackStart } from '@tanstack/react-start/plugin/vite'
|
||||||
import react, { reactCompilerPreset } from '@vitejs/plugin-react'
|
import react from '@vitejs/plugin-react'
|
||||||
import { nitro } from 'nitro/vite'
|
import { nitro } from 'nitro/vite'
|
||||||
import { defineConfig } from 'vite'
|
import { defineConfig } from 'vite'
|
||||||
|
|
||||||
@@ -13,9 +12,6 @@ export default defineConfig({
|
|||||||
tailwindcss(),
|
tailwindcss(),
|
||||||
tanstackStart(),
|
tanstackStart(),
|
||||||
react(),
|
react(),
|
||||||
babel({
|
|
||||||
presets: [reactCompilerPreset()],
|
|
||||||
}),
|
|
||||||
nitro({
|
nitro({
|
||||||
preset: 'bun',
|
preset: 'bun',
|
||||||
serveStatic: 'inline',
|
serveStatic: 'inline',
|
||||||
|
|||||||
@@ -55,7 +55,6 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@furtherverse/tsconfig": "workspace:*",
|
"@furtherverse/tsconfig": "workspace:*",
|
||||||
"@rolldown/plugin-babel": "catalog:",
|
|
||||||
"@tailwindcss/vite": "catalog:",
|
"@tailwindcss/vite": "catalog:",
|
||||||
"@tanstack/devtools-vite": "catalog:",
|
"@tanstack/devtools-vite": "catalog:",
|
||||||
"@tanstack/react-devtools": "catalog:",
|
"@tanstack/react-devtools": "catalog:",
|
||||||
@@ -84,7 +83,6 @@
|
|||||||
"@orpc/server": "^1.13.11",
|
"@orpc/server": "^1.13.11",
|
||||||
"@orpc/tanstack-query": "^1.13.11",
|
"@orpc/tanstack-query": "^1.13.11",
|
||||||
"@orpc/zod": "^1.13.11",
|
"@orpc/zod": "^1.13.11",
|
||||||
"@rolldown/plugin-babel": "^0.2.2",
|
|
||||||
"@t3-oss/env-core": "^0.13.11",
|
"@t3-oss/env-core": "^0.13.11",
|
||||||
"@tailwindcss/vite": "^4.2.2",
|
"@tailwindcss/vite": "^4.2.2",
|
||||||
"@tanstack/devtools-vite": "^0.6.0",
|
"@tanstack/devtools-vite": "^0.6.0",
|
||||||
|
|||||||
@@ -33,7 +33,6 @@
|
|||||||
"@orpc/server": "^1.13.11",
|
"@orpc/server": "^1.13.11",
|
||||||
"@orpc/tanstack-query": "^1.13.11",
|
"@orpc/tanstack-query": "^1.13.11",
|
||||||
"@orpc/zod": "^1.13.11",
|
"@orpc/zod": "^1.13.11",
|
||||||
"@rolldown/plugin-babel": "^0.2.2",
|
|
||||||
"@t3-oss/env-core": "^0.13.11",
|
"@t3-oss/env-core": "^0.13.11",
|
||||||
"@tailwindcss/vite": "^4.2.2",
|
"@tailwindcss/vite": "^4.2.2",
|
||||||
"@tanstack/devtools-vite": "^0.6.0",
|
"@tanstack/devtools-vite": "^0.6.0",
|
||||||
|
|||||||
Reference in New Issue
Block a user