Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Apr 3, 2022
1 parent 3c715ba commit 4c6f1a1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/config/plugin/lib/import.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const importBuiltin = async function (location, builtins) {
}

const importPath = async function (location) {
// eslint-disable-next-line import/no-dynamic-require
const plugin = await import(pathToFileURL(location))
return { plugin: { ...plugin }, path: location }
}
Expand Down
1 change: 1 addition & 0 deletions src/runners/node/handler/start/require_config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export const useRequireConfig = async function (requireConfig) {

const useRequiredModule = async function (requiredModule) {
try {
// eslint-disable-next-line import/no-dynamic-require
await import(pathToFileURL(requiredModule))
} catch (error) {
throw wrapError(
Expand Down
1 change: 1 addition & 0 deletions src/utils/import.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const importJsFile = async function (filePath) {
}

const importJavaScript = async function (filePath) {
// eslint-disable-next-line import/no-dynamic-require
return await import(pathToFileURL(filePath))
}

Expand Down

0 comments on commit 4c6f1a1

Please sign in to comment.