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

@@ -10,12 +10,10 @@
const loadExtensionTranslation = async function (lang) {
let translationModule;
try {
// eslint-disable-next-line node/no-unsupported-features/es-syntax
translationModule = await import(`./locale/${lang}.js`);
} catch (_error) {
// eslint-disable-next-line no-console
console.error(`Missing translation (${lang}) - using 'en'`);
// eslint-disable-next-line node/no-unsupported-features/es-syntax
translationModule = await import(`./locale/en.js`);
}
return translationModule.default;