From 9ee49aecf63df2b44293949733ff94df391641bf Mon Sep 17 00:00:00 2001 From: IhorKaleniuk666 Date: Tue, 20 Jan 2026 15:19:05 +0200 Subject: [PATCH] fix linter --- .../core/src/abstract/CollectionWithCategories.ts | 4 +++- packages/core/src/dom_components/index.ts | 8 +------- packages/core/src/selector_manager/index.ts | 11 +++-------- packages/core/src/utils/fractionalIndex.ts | 6 +----- .../patch_manager/collection/CollectionWithPatches.js | 10 ++++++++-- 5 files changed, 16 insertions(+), 23 deletions(-) diff --git a/packages/core/src/abstract/CollectionWithCategories.ts b/packages/core/src/abstract/CollectionWithCategories.ts index c5d640100..cd4ad5bf5 100644 --- a/packages/core/src/abstract/CollectionWithCategories.ts +++ b/packages/core/src/abstract/CollectionWithCategories.ts @@ -11,7 +11,9 @@ interface ModelWithCategoryProps { const CATEGORY_KEY = 'category'; -export abstract class CollectionWithCategories> extends CollectionWithPatches { +export abstract class CollectionWithCategories< + T extends Model, +> extends CollectionWithPatches { abstract getCategories(): Categories; initCategory(model: T) { diff --git a/packages/core/src/dom_components/index.ts b/packages/core/src/dom_components/index.ts index 8fc0cd147..468e7f345 100644 --- a/packages/core/src/dom_components/index.ts +++ b/packages/core/src/dom_components/index.ts @@ -364,13 +364,7 @@ export default class ComponentManager extends ItemManagerModule { await Promise.resolve(); pm.trackCollection(coll2); - const patch1b = { ...patch1, changes: [{ ...patch1.changes[0], path: ['test-collection', 'root-2', 'order', 'c'] }] }; - const patch2b = { ...patch2, changes: [{ ...patch2.changes[0], path: ['test-collection', 'root-2', 'order', 'd'] }] }; + const patch1b = { + ...patch1, + changes: [{ ...patch1.changes[0], path: ['test-collection', 'root-2', 'order', 'c'] }], + }; + const patch2b = { + ...patch2, + changes: [{ ...patch2.changes[0], path: ['test-collection', 'root-2', 'order', 'd'] }], + }; pm.apply(patch2b, { external: true }); pm.apply(patch1b, { external: true });