fix: resolve type errors and lint issues for CI

- Fix SkeletonWithRelations type mapping in batch-processor.ts by explicitly mapping only the required fields
- Escape unescaped entities in tutorial pages (apostrophes and quotes)
This commit is contained in:
Ajax Davis 2026-01-07 15:40:50 +10:00
parent 152a076580
commit 287d84163f
3 changed files with 25 additions and 17 deletions

View file

@ -259,13 +259,16 @@ export class BatchProcessor {
: new Map();
return skeletons
.map((s) => {
.map((s): SkeletonWithRelations | null => {
const category = categoryMap.get(s.categoryId);
const verb = verbMap.get(s.verbId);
const object = objectMap.get(s.objectId);
if (!category || !verb || !object) return null;
return {
...s,
id: s.id,
hash: s.hash,
rawName: s.rawName,
compatibilityScore: s.compatibilityScore,
category,
verb,
object,