Skip to content

Commit

Permalink
fix: eslint babel config chg
Browse files Browse the repository at this point in the history
Signed-off-by: Sujith <[email protected]>
  • Loading branch information
sujithvn committed Jan 11, 2023
1 parent f3cfbd0 commit 087dff4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/api-core/src/importPluginsJSONFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 087dff4

Please sign in to comment.