From d0f9c4a27f72402163faacb2dafee11760a2a2e3 Mon Sep 17 00:00:00 2001 From: Kevin Jahns Date: Wed, 2 Mar 2022 13:25:56 +0100 Subject: [PATCH] lint --- README.md | 4 +++- src/utils/updates.js | 4 ++-- tests/undo-redo.tests.js | 4 ++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 8b651cee..db1ed2aa 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,9 @@ build collaborative or distributed applications ping us at ## Sponsorship -Please contribute to the project financially if your company relies on Yjs. Support the project and receive more attention on your tickets. [![Become a Sponsor](https://img.shields.io/static/v1?label=Become%20a%20Sponsor&message=%E2%9D%A4&logo=GitHub&style=flat&color=d42f2d)](https://github.com/sponsors/dmonad) +Please contribute to the project financially if your company relies on Yjs. +Support the project and receive more attention on your tickets. +[![Become a Sponsor](https://img.shields.io/static/v1?label=Become%20a%20Sponsor&message=%E2%9D%A4&logo=GitHub&style=flat&color=d42f2d)](https://github.com/sponsors/dmonad) ## Who is using Yjs diff --git a/src/utils/updates.js b/src/utils/updates.js index 83ac18b3..f770cd4b 100644 --- a/src/utils/updates.js +++ b/src/utils/updates.js @@ -131,8 +131,8 @@ export const decodeUpdateV2 = (update, YDecoder = UpdateDecoderV2) => { structs.push(curr) } return { - 'structs': structs, - 'ds': readDeleteSet(updateDecoder), + structs, + ds: readDeleteSet(updateDecoder) } } diff --git a/tests/undo-redo.tests.js b/tests/undo-redo.tests.js index 4394e9ab..3ce65d5e 100644 --- a/tests/undo-redo.tests.js +++ b/tests/undo-redo.tests.js @@ -530,7 +530,7 @@ export const testUndoBlockBug = tc => { /** * Undo text formatting delete should not corrupt peer state. - * + * * @see https://github.com/yjs/yjs/issues/392 * @param {t.TestCase} tc */ @@ -539,7 +539,7 @@ export const testUndoDeleteTextFormat = tc => { const text = doc.getText() text.insert(0, 'Attack ships on fire off the shoulder of Orion.') const doc2 = new Y.Doc() - const text2 = doc2.getText(); + const text2 = doc2.getText() Y.applyUpdate(doc2, Y.encodeStateAsUpdate(doc)) const undoManager = new Y.UndoManager(text)