update prettier 替换为 oxfmt 格式化整个项目的代码结构

This commit is contained in:
疯狂的狮子Li
2026-04-01 17:03:20 +08:00
parent 199771997d
commit 16d9e1e7fe
131 changed files with 3750 additions and 1571 deletions
+1 -3
View File
@@ -6,9 +6,7 @@ const MAX_READ_IDS = 300;
const buildCacheKey = (userId: string | number) => `${MESSAGE_READ_KEY}:${userId}`;
const normalizeIds = (ids: Array<string | number>) => {
const values = ids
.map((item) => String(item))
.filter((item) => !!item);
const values = ids.map(item => String(item)).filter(item => !!item);
return Array.from(new Set(values)).slice(0, MAX_READ_IDS);
};