From 24288536135c15bc6f4cab8837cfae6ae4901f24 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Wed, 17 Apr 2024 00:04:02 +0300 Subject: [PATCH] chore: lint --- .npmignore | 1 + .nycrc.json | 3 ++- client/modules/polyfill.spec.js | 8 +++++--- server/config.js | 10 ++++++---- 4 files changed, 14 insertions(+), 8 deletions(-) diff --git a/.npmignore b/.npmignore index de3559c7..0ecde705 100644 --- a/.npmignore +++ b/.npmignore @@ -30,3 +30,4 @@ webpack.config.js *.cdr *.eps +*.config.* diff --git a/.nycrc.json b/.nycrc.json index df171b24..bd520eb6 100644 --- a/.nycrc.json +++ b/.nycrc.json @@ -4,7 +4,8 @@ "exclude": [ "**/*.spec.js", "**/fixture", - "**/*.*.js" + "**/*.*.js", + "**/*.config.*" ], "branches": 100, "lines": 100, diff --git a/client/modules/polyfill.spec.js b/client/modules/polyfill.spec.js index ea4524a7..02686c1d 100644 --- a/client/modules/polyfill.spec.js +++ b/client/modules/polyfill.spec.js @@ -23,9 +23,11 @@ test('cloudcmd: client: polyfill: scrollIntoViewIfNeaded', (t) => { mockRequire.stop('scroll-into-view-if-neaded'); global.DOM = DOM; - const args = [el, { - block: 'nearest', - }]; + const args = [ + el, { + block: 'nearest', + }, + ]; stopAll(); diff --git a/server/config.js b/server/config.js index 5c1352a2..5d20af30 100644 --- a/server/config.js +++ b/server/config.js @@ -242,8 +242,10 @@ function cryptoPass(manage, json) { const password = criton(json.password, algo); - return [manage, { - ...json, - password, - }]; + return [ + manage, { + ...json, + password, + }, + ]; }