From 97e572a2c0ab75c3f36e9364ee2f29b17942376b Mon Sep 17 00:00:00 2001 From: Jonas Date: Tue, 26 Nov 2024 16:26:12 +0100 Subject: [PATCH] fix: fix linting errors and warnings Signed-off-by: Jonas --- cypress/e2e/directediting.spec.js | 2 +- cypress/e2e/nodes/Links.spec.js | 6 ++++++ src/components/Editor.vue | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/cypress/e2e/directediting.spec.js b/cypress/e2e/directediting.spec.js index 0b3d633dd8e..0eee92172c9 100644 --- a/cypress/e2e/directediting.spec.js +++ b/cypress/e2e/directediting.spec.js @@ -8,7 +8,7 @@ import { initUserAndFiles, randUser } from '../utils/index.js' const user = randUser() /** - * + * Enter content and close */ function enterContentAndClose() { cy.intercept({ method: 'POST', url: '**/session/*/close' }).as('closeRequest') diff --git a/cypress/e2e/nodes/Links.spec.js b/cypress/e2e/nodes/Links.spec.js index 0f24e27693b..13d6db365e6 100644 --- a/cypress/e2e/nodes/Links.spec.js +++ b/cypress/e2e/nodes/Links.spec.js @@ -27,6 +27,12 @@ describe('test link marks', function() { describe('link bubble', function() { + /** + * Find link and click on it + * + * @param {string} link The link URL + * @param {object|null} options the click options + */ const clickLink = (link, options = {}) => { cy.getContent() .find(`a[href*="${link}"]`) diff --git a/src/components/Editor.vue b/src/components/Editor.vue index 18c3fc3192b..4f89b64bbea 100644 --- a/src/components/Editor.vue +++ b/src/components/Editor.vue @@ -93,7 +93,7 @@ import { import ReadonlyBar from './Menu/ReadonlyBar.vue' import { logger } from '../helpers/logger.js' -import { getDocumentState, applyDocumentState } from '../helpers/yjs.js' +import { getDocumentState } from '../helpers/yjs.js' import { SyncService, ERROR_TYPE, IDLE_TIMEOUT } from './../services/SyncService.js' import SessionApi from '../services/SessionApi.js' import createSyncServiceProvider from './../services/SyncServiceProvider.js'