chore: cloudcmd: actions: lint ☘️

This commit is contained in:
coderaiser 2026-03-20 14:55:06 +00:00
parent 59037f2c18
commit ddf5a59f70
3 changed files with 14 additions and 4 deletions

View file

@ -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);

View file

@ -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;

View file

@ -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,