chore: Enable some "perf" lint rules.

This commit is contained in:
cpojer
2026-01-31 15:58:24 +09:00
parent f99e3ddd6d
commit 7a9ddcd590
8 changed files with 20 additions and 13 deletions

View File

@@ -527,7 +527,7 @@ export class MemoryIndexManager {
entry.chunks = row.c ?? 0;
bySource.set(row.source, entry);
}
return sources.map((source) => ({ source, ...bySource.get(source)! }));
return sources.map((source) => Object.assign({ source }, bySource.get(source)!));
})();
return {
files: files?.c ?? 0,