chore: add knip and remove the dead code it reports (#247)

Adds knip (pnpm knip, knip.ts covering src, scripts, perf and e2e) and runs it in the CI frontend job. Removes what it reported: the unused codemirror and @types/dompurify dependencies, exports and test hooks used nowhere (AppLogo, Tooltip, barrel re-exports, duplicate default exports of lazily loaded settings pages), the unused iterateAll helper, and the zh entry for a deleted notification. rustfmt (used by lint-staged) is ignored as a toolchain binary.

Co-authored-by: jaw52 <[email protected]>
Цей коміт міститься в:
Jaw authored and GitHub committed 2026-10-29 23:21:56 +08:00
1 джерело c3b3534f08
коміт 5217f8570b
54 files changed
+588 -351

No files matched your search

-2
Переглянути файл
@@ -678,5 +678,3 @@ export function PluginsPage() {
</div>
);
}
export default PluginsPage;
-3
Переглянути файл
@@ -183,6 +183,3 @@ export async function runPluginCommand(pluginId: string, commandId: string, arg:
return null;
}
}
/** Plugins whose contributions are live (enabled and running, or contribution-only). */
export const isLive = (p: PluginInfo) => p.status === "active" || p.status === "static";