chore(cloudcmd) lint

This commit is contained in:
coderaiser 2022-06-14 14:38:11 +03:00
parent 81e76857da
commit ef10ebe97c
40 changed files with 137 additions and 134 deletions

View file

@ -2,19 +2,19 @@
/* global CloudCmd, DOM */
const Info = DOM.CurrentInfo;
const clipboard = require('@cloudcmd/clipboard');
const Buffer = require('../dom/buffer');
const Events = require('../dom/events');
const Events = require('../dom/events');
const KEY = require('./key');
const vim = require('./vim');
const setCurrentByChar = require('./set-current-by-char');
const {createBinder} = require('./binder');
const fullstore = require('fullstore');
const Info = DOM.CurrentInfo;
const Chars = fullstore();
const toggleVim = (keyCode) => {

View file

@ -1,18 +1,18 @@
'use strict';
const autoGlobals = require('auto-globals');
const test = autoGlobals(require('supertape'));
const stub = require('@cloudcmd/stub');
const mockRequire = require('mock-require');
const {reRequire, stopAll} = mockRequire;
const {ESC} = require('./key');
const {
getDOM,
getCloudCmd,
} = require('./vim/globals.fixture');
const {reRequire, stopAll} = mockRequire;
const test = autoGlobals(require('supertape'));
global.DOM = getDOM();
global.CloudCmd = getCloudCmd();

View file

@ -2,8 +2,8 @@
'use strict';
const Info = DOM.CurrentInfo;
const {escapeRegExp} = require('../../common/util');
const Info = DOM.CurrentInfo;
module.exports = function setCurrentByChar(char, charStore) {
let firstByName;

View file

@ -7,12 +7,10 @@ const {
stub,
} = require('supertape');
const mockRequire = require('mock-require');
const {reRequire, stopAll} = mockRequire;
const dir = '../';
const pathVim = join(dir, 'vim');
const pathFind = join(dir, 'vim', 'find');
const {
getDOM,
@ -22,11 +20,14 @@ const {
global.DOM = getDOM();
global.CloudCmd = getCloudCmd();
const {DOM} = global;
const {Buffer} = DOM;
const vim = require(pathVim);
const {DOM} = global;
const {Buffer} = DOM;
const pathFind = join(dir, 'vim', 'find');
const {reRequire, stopAll} = mockRequire;
test('cloudcmd: client: key: set next file: no', (t) => {
const element = {};