diff --git a/.putout.json b/.putout.json index 8f2cc3a8..bc60b230 100644 --- a/.putout.json +++ b/.putout.json @@ -8,7 +8,8 @@ "*.md" ], "rules": { - "tape/remove-skip": "off" + "tape/remove-skip": "off", + "package-json/add-type": "off" }, "match": { "base64": { diff --git a/client/client.js b/client/client.js index a4afddbe..87cb58be 100644 --- a/client/client.js +++ b/client/client.js @@ -15,7 +15,7 @@ const currify = require('currify'); const Images = require('./dom/images'); const {unregisterSW} = require('./sw/register'); -const getJsonFromFileTable = require('./get-json-from-file-table'); +const {getJsonFromFileTable} = require('./get-json-from-file-table.mjs'); const Key = require('./key'); const { diff --git a/client/get-json-from-file-table.js b/client/get-json-from-file-table.mjs similarity index 93% rename from client/get-json-from-file-table.js rename to client/get-json-from-file-table.mjs index e6fbc872..6be9e1c4 100644 --- a/client/get-json-from-file-table.js +++ b/client/get-json-from-file-table.mjs @@ -1,13 +1,10 @@ -'use strict'; - /* global DOM */ -const Info = DOM.CurrentInfo; - /** * Функция генерирует JSON из html-таблицы файлов и * используеться при первом заходе в корень */ -module.exports = () => { +export const getJsonFromFileTable = () => { + const Info = DOM.CurrentInfo; const path = DOM.getCurrentDirPath(); const infoFiles = Info.files || []; @@ -45,3 +42,4 @@ module.exports = () => { return fileTable; }; + diff --git a/package.json b/package.json index b818c153..9b742c52 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,6 @@ { "name": "cloudcmd", "version": "19.1.3", - "type": "commonjs", "author": "coderaiser (https://github.com/coderaiser)", "description": "File manager for the web with console and editor", "homepage": "http://cloudcmd.io",