From a7d262f39cdcd71731d5596bb73c2c7e1e5de7b0 Mon Sep 17 00:00:00 2001 From: HaveAGitGat <43864057+HaveAGitGat@users.noreply.github.com> Date: Tue, 29 Aug 2023 18:03:58 +0100 Subject: [PATCH] Fix lint issues --- .../CommunityFlowPlugins/file/checkFileExists/1.0.0/index.js | 3 ++- .../file/moveToOriginalDirectory/1.0.0/index.js | 2 +- .../CommunityFlowPlugins/file/checkFileExists/1.0.0/index.ts | 3 ++- .../file/moveToOriginalDirectory/1.0.0/index.ts | 3 +-- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/FlowPlugins/CommunityFlowPlugins/file/checkFileExists/1.0.0/index.js b/FlowPlugins/CommunityFlowPlugins/file/checkFileExists/1.0.0/index.js index 5b52f74..b9add34 100644 --- a/FlowPlugins/CommunityFlowPlugins/file/checkFileExists/1.0.0/index.js +++ b/FlowPlugins/CommunityFlowPlugins/file/checkFileExists/1.0.0/index.js @@ -36,7 +36,8 @@ var details = function () { return ({ inputUI: { type: 'directory', }, - tooltip: 'Specify directory to check. Leave blank to use working directory. Put below input plugin to check original file directory.', + tooltip: 'Specify directory to check. Leave blank to use working directory.' + + ' Put below Input File plugin to check original file directory.', }, ], outputs: [ diff --git a/FlowPlugins/CommunityFlowPlugins/file/moveToOriginalDirectory/1.0.0/index.js b/FlowPlugins/CommunityFlowPlugins/file/moveToOriginalDirectory/1.0.0/index.js index 517a046..69f5fcf 100644 --- a/FlowPlugins/CommunityFlowPlugins/file/moveToOriginalDirectory/1.0.0/index.js +++ b/FlowPlugins/CommunityFlowPlugins/file/moveToOriginalDirectory/1.0.0/index.js @@ -70,7 +70,7 @@ var plugin = function (args) { return __awaiter(void 0, void 0, void 0, function fileName = (0, fileUtils_1.getFileName)(args.inputFileObj._id); container = (0, fileUtils_1.getContainer)(args.inputFileObj._id); outputDir = (0, fileUtils_1.getFileAbosluteDir)(args.originalLibraryFile._id); - ouputFilePath = outputDir + '/' + fileName + '.' + container; + ouputFilePath = "".concat(outputDir, "/").concat(fileName, ".").concat(container); return [4 /*yield*/, (0, fileUtils_1.moveFileAndValidate)({ inputPath: args.inputFileObj._id, outputPath: ouputFilePath, diff --git a/FlowPluginsTs/CommunityFlowPlugins/file/checkFileExists/1.0.0/index.ts b/FlowPluginsTs/CommunityFlowPlugins/file/checkFileExists/1.0.0/index.ts index da09ae0..bc268ed 100644 --- a/FlowPluginsTs/CommunityFlowPlugins/file/checkFileExists/1.0.0/index.ts +++ b/FlowPluginsTs/CommunityFlowPlugins/file/checkFileExists/1.0.0/index.ts @@ -36,7 +36,8 @@ const details = (): IpluginDetails => ({ inputUI: { type: 'directory', }, - tooltip: 'Specify directory to check. Leave blank to use working directory. Put below input plugin to check original file directory.', + tooltip: 'Specify directory to check. Leave blank to use working directory.' + + ' Put below Input File plugin to check original file directory.', }, ], outputs: [ diff --git a/FlowPluginsTs/CommunityFlowPlugins/file/moveToOriginalDirectory/1.0.0/index.ts b/FlowPluginsTs/CommunityFlowPlugins/file/moveToOriginalDirectory/1.0.0/index.ts index f4d57a5..c4f557b 100644 --- a/FlowPluginsTs/CommunityFlowPlugins/file/moveToOriginalDirectory/1.0.0/index.ts +++ b/FlowPluginsTs/CommunityFlowPlugins/file/moveToOriginalDirectory/1.0.0/index.ts @@ -1,12 +1,11 @@ import { - getContainer, getFileAbosluteDir, getFileName, getSubStem, moveFileAndValidate, + getContainer, getFileAbosluteDir, getFileName, moveFileAndValidate, } from '../../../../FlowHelpers/1.0.0/fileUtils'; import { IpluginDetails, IpluginInputArgs, IpluginOutputArgs, } from '../../../../FlowHelpers/1.0.0/interfaces/interfaces'; -import normJoinPath from '../../../../FlowHelpers/1.0.0/normJoinPath'; /* eslint no-plusplus: ["error", { "allowForLoopAfterthoughts": true }] */ const details = ():IpluginDetails => ({