chore: clear lint rules warns: comments, tests

This commit is contained in:
2026-10-08 12:55:34 +05:00
parent 0e8c2478a1
commit 7361a82c18
93 changed files with 899 additions and 940 deletions
+3 -3
View File
@@ -22,7 +22,7 @@ function storage(): Storage | null {
return typeof localStorage === "undefined" ? null : localStorage;
}
/** Инструмент можно вставить в середину цепочки: принимает и отдаёт картинку. */
/** Tool can be inserted mid-chain: it accepts and returns an image. */
export function isChainable(toolId: string): boolean {
const tool = getTool(toolId);
return (
@@ -32,7 +32,7 @@ export function isChainable(toolId: string): boolean {
);
}
/** Страницы, чьи инструменты можно добавлять шагами (для picker'а). */
/** Pages whose tools can be added as steps (for the picker). */
export function chainablePages(): Page[] {
return PAGES.filter((p) => isChainable(p.steps[0].id));
}
@@ -57,7 +57,7 @@ export function createChain(page: Page): ChainStep[] {
return steps;
}
/** Валидация сохранённой цепочки; невалидные данные → null (дефолт страницы). */
/** Validates a saved chain; invalid data -> null (page default). */
export function parseChain(data: unknown): ChainStep[] | null {
if (
!data ||