DEV: Disallow Ember global usage (#16147)

…and sprinkle `// eslint-disable-next-line no-undef` throughout the code where is unavoidable for now
This commit is contained in:
Jarek Radosz
2022-03-09 17:54:07 +01:00
committed by GitHub
parent 2ba602708a
commit 99b2cfe26e
27 changed files with 58 additions and 6 deletions

View File

@ -281,6 +281,7 @@ class Compiler {
}
}
// eslint-disable-next-line no-undef
const loader = typeof Ember !== "undefined" ? Ember.__loader.require : require;
function compile(template, glimmer) {
@ -363,6 +364,7 @@ const WidgetHbsCompiler = function (babel) {
compile(template, WidgetHbsCompiler.glimmer)
);
} catch (e) {
// eslint-disable-next-line no-console
console.error("widget hbs error", e.toString());
return error(path, state, e.toString());
}