From 6eb3dbcbc727b52df0110d21dc0beff15cf72e20 Mon Sep 17 00:00:00 2001 From: Peter Savchenko Date: Fri, 17 Feb 2023 22:23:22 +0200 Subject: [PATCH] eslint --- src/components/block/index.ts | 8 ++++---- test/cypress/tests/api/tools.spec.ts | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/block/index.ts b/src/components/block/index.ts index f99c06a8..f7632936 100644 --- a/src/components/block/index.ts +++ b/src/components/block/index.ts @@ -210,7 +210,7 @@ export default class Block extends EventsDispatcher { */ private didMutated = _.debounce((mutationsOrInputEvent: MutationRecord[] | InputEvent = undefined): void => { /** - * We won't fire a Block mutation event for nodes that contain 'data-mutation-free' attributes + * We won't fire a Block mutation event if mutation contain only nodes marked with 'data-mutation-free' attributes */ let shouldFireUpdate; @@ -230,7 +230,7 @@ export default class Block extends EventsDispatcher { const { addedNodes, removedNodes } = record; const changedNodes = [ ...Array.from(addedNodes), - ...Array.from(removedNodes) + ...Array.from(removedNodes), ]; return changedNodes.some((node) => { @@ -239,8 +239,8 @@ export default class Block extends EventsDispatcher { } return (node as HTMLElement).dataset.mutationFree === 'true'; - }) - }) + }); + }); if (everyRecordIsMutationFree) { shouldFireUpdate = false; diff --git a/test/cypress/tests/api/tools.spec.ts b/test/cypress/tests/api/tools.spec.ts index ce326cbc..38073fff 100644 --- a/test/cypress/tests/api/tools.spec.ts +++ b/test/cypress/tests/api/tools.spec.ts @@ -512,7 +512,7 @@ describe('Editor Tools Api', () => { /** config specified handled tag */ public static get pasteConfig(): PasteConfig { return { - tags: ['img'], // only tag name specified. Attributes should be sanitized + tags: [ 'img' ], // only tag name specified. Attributes should be sanitized }; } @@ -564,7 +564,7 @@ describe('Editor Tools Api', () => { /** config specified handled tag */ public static get pasteConfig(): PasteConfig { return { - tags: ['img'], // only tag name specified. Attributes should be sanitized + tags: [ 'img' ], // only tag name specified. Attributes should be sanitized }; }