diff --git a/.eslintrc.cjs b/.eslintrc.cjs index d973511d224..df57efed6da 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -5,12 +5,14 @@ module.exports = { parserOptions: { ecmaVersion: 2020, sourceType: "module", + babelOptions: { + plugins: ["@babel/plugin-syntax-import-assertions"] + }, ecmaFeatures: { impliedStrict: true }, requireConfigFile: false }, - plugins: ["@babel/plugin-syntax-import-assertions"], env: { es6: true, jasmine: true diff --git a/packages/api-core/src/importPluginsJSONFile.js b/packages/api-core/src/importPluginsJSONFile.js index e1dea43d245..3125772b99c 100644 --- a/packages/api-core/src/importPluginsJSONFile.js +++ b/packages/api-core/src/importPluginsJSONFile.js @@ -22,7 +22,7 @@ export default async function importPluginsJSONFile(pluginsFile, transformPlugin absolutePluginsFile = path.join(path.dirname(callerFileName), pluginsFile); } - let { default: pluginRefs } = await import(`${absolutePluginsFile}`, { assert: { type: "json" } } ); + let { default: pluginRefs } = await import(`${absolutePluginsFile}`, { assert: { type: "json" } }); if (typeof transformPlugins === "function") { // allow plugins to be added and removed