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

@@ -360,7 +360,6 @@ export const putLocale = async function (givenParam, goodLangs) {
if (!goodLangs.includes(langParam) && langParam !== 'test') {
langParam = 'en';
}
// eslint-disable-next-line node/no-unsupported-features/es-syntax
const module = await import(`./locale/lang.${langParam}.js`);
return readLang(module.default);
};