From ddf5a59f70e0be1c2b89fdbb8ac47e003ed51356 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Fri, 20 Mar 2026 14:55:06 +0000 Subject: [PATCH] =?UTF-8?q?chore:=20cloudcmd:=20actions:=20lint=20?= =?UTF-8?q?=E2=98=98=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/client.js | 7 ++++++- client/dom/current-file.spec.js | 10 ++++++++-- client/key/vim/index.js | 1 - 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/client/client.js b/client/client.js index 1c6d2008..a0e3cb07 100644 --- a/client/client.js +++ b/client/client.js @@ -348,7 +348,12 @@ function CloudCmdProto({DOM, Listeners}) { 'pathLink', ]; - const [error, [file, path, link, pathLink]] = await tryToCatch(Files.get, names); + const [error, [ + file, + path, + link, + pathLink, + ]] = await tryToCatch(Files.get, names); if (error) return DOM.Dialog.alert(error.responseText); diff --git a/client/dom/current-file.spec.js b/client/dom/current-file.spec.js index 99294fde..6bf0509b 100644 --- a/client/dom/current-file.spec.js +++ b/client/dom/current-file.spec.js @@ -19,7 +19,10 @@ test('current-file: setCurrentName: setAttribute', (t) => { currentFile.setCurrentName('hello', current); - t.calledWith(setAttribute, ['data-name', 'js-file-aGVsbG8='], 'should call setAttribute'); + t.calledWith(setAttribute, [ + 'data-name', + 'js-file-aGVsbG8=', + ], 'should call setAttribute'); globalThis.DOM = DOM; globalThis.CloudCmd = CloudCmd; @@ -38,7 +41,10 @@ test('current-file: setCurrentName: setAttribute: cyrillic', (t) => { currentFile.setCurrentName('ай', current); - t.calledWith(setAttribute, ['data-name', 'js-file-JUQwJUIwJUQwJUI5'], 'should call setAttribute'); + t.calledWith(setAttribute, [ + 'data-name', + 'js-file-JUQwJUIwJUQwJUI5', + ], 'should call setAttribute'); globalThis.DOM = DOM; globalThis.CloudCmd = CloudCmd; diff --git a/client/key/vim/index.js b/client/key/vim/index.js index dd9cd026..5f67f4e4 100644 --- a/client/key/vim/index.js +++ b/client/key/vim/index.js @@ -36,7 +36,6 @@ const getOperations = (event, deps) => { preventDefault = event?.preventDefault?.bind(event), stopImmediatePropagation = event?.preventDefault?.bind(event), promptNewFile = DOM.promptNewFile, - toggleSelectedFile, Buffer = {}, createFindNext = _createFindNext,