mirror of
https://github.com/jakejarvis/sofa.git
synced 2026-08-29 05:05:38 -04:00
- Add `openapi-fetch` dependency; generate `lib/tmdb/schema.d.ts` from TMDB's OpenAPI spec and delete `lib/tmdb/types.ts` - Rewrite `lib/tmdb/client.ts` to use the typed fetch client against the generated schema, exporting `TmdbMovieDetails`, `TmdbTvDetails`, `TmdbVideo`, and `TmdbGenre` directly - Fix null-safety across services (`credits`, `availability`, `metadata`, `person`, `webhooks`) and call sites (explore page, search route, explore actions) to handle optional fields produced by the stricter generated types - Update `metadata.ts` and `metadata.test.ts` to import shared types from `@/lib/tmdb/client` instead of the removed `types.ts` - Exclude `lib/tmdb/schema.d.ts` from Biome linting
64 lines
1.2 KiB
JSON
64 lines
1.2 KiB
JSON
{
|
|
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
|
|
"vcs": {
|
|
"enabled": true,
|
|
"clientKind": "git",
|
|
"useIgnoreFile": true
|
|
},
|
|
"files": {
|
|
"ignoreUnknown": true,
|
|
"includes": [
|
|
"**",
|
|
"!node_modules",
|
|
"!.next",
|
|
"!dist",
|
|
"!build",
|
|
"!drizzle",
|
|
"!lib/tmdb/schema.d.ts"
|
|
]
|
|
},
|
|
"css": {
|
|
"parser": {
|
|
"cssModules": true,
|
|
"tailwindDirectives": true
|
|
}
|
|
},
|
|
"formatter": {
|
|
"enabled": true,
|
|
"indentStyle": "space",
|
|
"indentWidth": 2
|
|
},
|
|
"linter": {
|
|
"enabled": true,
|
|
"domains": {
|
|
"next": "recommended",
|
|
"react": "recommended"
|
|
},
|
|
"rules": {
|
|
"recommended": true,
|
|
"suspicious": {
|
|
"noUnknownAtRules": "off"
|
|
},
|
|
"nursery": {
|
|
"useSortedClasses": {
|
|
"level": "error",
|
|
"options": {
|
|
"attributes": ["classList"],
|
|
"functions": ["cn", "clsx", "cva"]
|
|
}
|
|
},
|
|
"noFloatingPromises": "error",
|
|
"noMisusedPromises": "error",
|
|
"useDestructuring": "error"
|
|
}
|
|
}
|
|
},
|
|
"assist": {
|
|
"actions": {
|
|
"source": {
|
|
"organizeImports": "on"
|
|
}
|
|
}
|
|
}
|
|
}
|