From 7500eda3d25fca53ccdebde1a11b682a207bbea0 Mon Sep 17 00:00:00 2001 From: HaveAGitGat <43864057+HaveAGitGat@users.noreply.github.com> Date: Thu, 10 Dec 2020 17:47:34 +0100 Subject: [PATCH 1/3] test --- methods/actions.js | 1 - 1 file changed, 1 deletion(-) diff --git a/methods/actions.js b/methods/actions.js index b072def..ca81309 100644 --- a/methods/actions.js +++ b/methods/actions.js @@ -1,4 +1,3 @@ -/* eslint-disable */ var fs = require("fs"); var path = require("path"); if (fs.existsSync(path.join(process.cwd(), "/npm"))) { From b23bf31fa1def9b43daf17869445194b1ac15c09 Mon Sep 17 00:00:00 2001 From: HaveAGitGat <43864057+HaveAGitGat@users.noreply.github.com> Date: Thu, 10 Dec 2020 17:50:24 +0100 Subject: [PATCH 2/3] test --- .github/workflows/lint.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 8891064..633467a 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -2,9 +2,9 @@ name: Node.js CI on: push: - branches: [ master ] + branches: ['**'] pull_request: - branches: [ master ] + branches: ['**'] jobs: build: From 9169a9aca5f6c36ca53297dcd4d312062c528b06 Mon Sep 17 00:00:00 2001 From: HaveAGitGat <43864057+HaveAGitGat@users.noreply.github.com> Date: Thu, 10 Dec 2020 17:52:56 +0100 Subject: [PATCH 3/3] lint fix 1 --- methods/actions.js | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/methods/actions.js b/methods/actions.js index ca81309..1fc930a 100644 --- a/methods/actions.js +++ b/methods/actions.js @@ -1,21 +1,25 @@ -var fs = require("fs"); -var path = require("path"); -if (fs.existsSync(path.join(process.cwd(), "/npm"))) { - var rootModules = path.join(process.cwd(), "/npm/node_modules/"); +const fs = require('fs'); +const path = require('path'); + +let rootModules; +if (fs.existsSync(path.join(process.cwd(), '/npm'))) { + rootModules = path.join(process.cwd(), '/npm/node_modules/'); } else { - var rootModules = ""; + rootModules = ''; } -const importFresh = require(rootModules + "import-fresh"); + +// eslint-disable-next-line import/no-dynamic-require +const importFresh = require(`${rootModules}import-fresh`); module.exports.remuxContainer = importFresh( - "./library/actions/remuxContainer.js" + './library/actions/remuxContainer.js', ); module.exports.transcodeStandardiseAudioCodecs = importFresh( - "./library/actions/transcodeStandardiseAudioCodecs.js" + './library/actions/transcodeStandardiseAudioCodecs.js', ); module.exports.transcodeAddAudioStream = importFresh( - "./library/actions/transcodeAddAudioStream.js" + './library/actions/transcodeAddAudioStream.js', ); module.exports.transcodeKeepOneAudioStream = importFresh( - "./library/actions/transcodeKeepOneAudioStream.js" + './library/actions/transcodeKeepOneAudioStream.js', );