mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 08:07:17 +08:00
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:
@ -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());
|
||||
}
|
||||
|
Reference in New Issue
Block a user