dependencies update and fix lint unused disabled line

This commit is contained in:
JFH
2021-11-25 23:40:07 +01:00
parent 83303065bb
commit b09f71e703
60 changed files with 339 additions and 613 deletions

View File

@@ -15,9 +15,7 @@ const loadExtensionTranslation = async function (svgEditor) {
// eslint-disable-next-line no-unsanitized/method
translationModule = await import(`./locale/${lang}.js`);
} catch (_error) {
// eslint-disable-next-line no-console
console.warn(`Missing translation (${lang}) for ${name} - using 'en'`);
// eslint-disable-next-line no-unsanitized/method
translationModule = await import(`./locale/en.js`);
}
svgEditor.i18next.addResourceBundle(lang, name, translationModule.default);
@@ -43,7 +41,6 @@ export default {
return {
callback () {
if ($id('tool_shapelib') === null) {
// eslint-disable-next-line no-unsanitized/property
const buttonTemplate = `
<se-explorerbutton id="tool_shapelib" title="${svgEditor.i18next.t(`${name}:buttons.0.title`)}" lib="./extensions/ext-shapes/shapelib/"
src="shapelib.svg"></se-explorerbutton>