mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 14:07:30 +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:
@ -29,6 +29,7 @@ export function allCategories() {
|
||||
let paths = CATEGORIES.join("|");
|
||||
|
||||
// Find a list of sections based on what templates are available
|
||||
// eslint-disable-next-line no-undef
|
||||
Object.keys(Ember.TEMPLATES).forEach((e) => {
|
||||
let regexp = new RegExp(`styleguide\/(${paths})\/(\\d+)?\\-?([^\\/]+)$`);
|
||||
let matches = e.match(regexp);
|
||||
|
Reference in New Issue
Block a user