diff --git a/client/dom/current-file.spec.js b/client/dom/current-file.spec.js index 8f24f3c8..3c907fcd 100644 --- a/client/dom/current-file.spec.js +++ b/client/dom/current-file.spec.js @@ -285,7 +285,15 @@ test('current-file: parseHrefAttribute', (t) => { t.end(); }); -function getDOM({link = {}, getCurrentDirPath = stub(), getCurrentDirName = stub(), getByDataName = stub(), isContainClass = stub(), getCurrentType = stub(), getCurrentPath = stub()} = {}) { +function getDOM({ + link = {}, + getCurrentDirPath = stub(), + getCurrentDirName = stub(), + getByDataName = stub(), + isContainClass = stub(), + getCurrentType = stub(), + getCurrentPath = stub(), +} = {}) { return { getCurrentDirPath, getCurrentDirName, diff --git a/client/dom/events/index.js b/client/dom/events/index.js index d1fca862..551a9a93 100644 --- a/client/dom/events/index.js +++ b/client/dom/events/index.js @@ -11,7 +11,7 @@ function EventsProto() { const getEventOptions = (eventName) => { if (eventName !== 'touchstart') return false; - + return { passive: true, }; diff --git a/client/key/vim/find.js b/client/key/vim/find.js index 131ba267..43b3d36a 100644 --- a/client/key/vim/find.js +++ b/client/key/vim/find.js @@ -37,13 +37,13 @@ module.exports._previous = previous; function next(index, length) { if (index === length - 1) return 0; - + return ++index; } function previous(index, length) { if (!index) return length - 1; - + return --index; } diff --git a/client/modules/config/input.js b/client/modules/config/input.js index ca1c638d..97fde024 100644 --- a/client/modules/config/input.js +++ b/client/modules/config/input.js @@ -39,7 +39,7 @@ module.exports.convert = (config) => { function setState(state) { if (state) return ' checked'; - + return ''; } diff --git a/client/modules/edit-names.js b/client/modules/edit-names.js index 36a9c653..e1cc3cbe 100644 --- a/client/modules/edit-names.js +++ b/client/modules/edit-names.js @@ -129,7 +129,7 @@ function _refresh(to, nameIndex, res) { function getDir(root, dir) { if (root === '/') return dir; - + return root + dir; } diff --git a/client/modules/operation/format.js b/client/modules/operation/format.js index 37c5e01e..ffed26f4 100644 --- a/client/modules/operation/format.js +++ b/client/modules/operation/format.js @@ -3,6 +3,6 @@ module.exports = (operation, from, to) => { if (!to) return `${operation} ${from}`; - + return `${operation} ${from} -> ${to}`; }; diff --git a/client/modules/operation/index.js b/client/modules/operation/index.js index 597f50b8..68d17a33 100644 --- a/client/modules/operation/index.js +++ b/client/modules/operation/index.js @@ -194,7 +194,7 @@ function setOperations(operator) { function getPacker(type) { if (type === 'zip') return packZipFn; - + return packTarFn; } diff --git a/client/sw/sw.js b/client/sw/sw.js index c15c4138..8431dc8a 100644 --- a/client/sw/sw.js +++ b/client/sw/sw.js @@ -45,7 +45,7 @@ const createRequest = (a) => new Request(a, { const getRequest = (a, request) => { if (a !== '/') return request; - + return createRequest('/'); }; diff --git a/test/common/cloudfunc.js b/test/common/cloudfunc.js index 81a1a82f..3acfd768 100644 --- a/test/common/cloudfunc.js +++ b/test/common/cloudfunc.js @@ -85,7 +85,7 @@ test('cloudfunc: render', (t) => { if (ret) { i = number; } - + return ret; });