function loadGlobalScope(code) {
				const ast = espree.parse(code, DEFAULT_CONFIG);
				const scopeManager = eslintScope.analyze(ast, {
					ignoreEval: true,
					ecmaVersion: 6,
				});
				const sourceCode = new SourceCode({
					text: code,
					ast,
					scopeManager,
				});

				sourceCode.applyInlineConfig();
				sourceCode.finalize();

				const globalScope = sourceCode.scopeManager.scopes[0].set;

				return globalScope;
			}
GlobalScope
@param {string} code the code to check
@returns {Scope} globalScope