disable eslint rule for unsupported feature

This commit is contained in:
jfh
2020-09-19 23:59:42 +02:00
parent 5447d05e8c
commit 5583488181
44 changed files with 26 additions and 66 deletions

View File

@@ -784,7 +784,6 @@ editor.init = function () {
* @type {module:SVGEditor.ExtensionObject}
*/
const url = `${curConfig.extPath}${extname}/${extname}.js`;
// eslint-disable-next-line node/no-unsupported-features/es-syntax
const imported = await import(url);
const {name = extname, init} = imported.default;
return editor.addExtension(name, (init && init.bind(editor)), {$, langParam});