mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
576eee7adf
* devDeps: eslint@8.14.0,8.20.0->8.36.0 - CVE-2021-4279 / CVE-2021-4279 - consolidate eslint into single version - port patches * add eslintignore directive * lavamoat: update build policy overrides
14 lines
565 B
Diff
14 lines
565 B
Diff
diff --git a/lib/linter/linter.js b/lib/linter/linter.js
|
|
index 0f1bd4f77611aa5ccc43c94385efd4f9b5639327..59ff9f14727e22bbec2cc7539af30305f759b23a 100644
|
|
--- a/lib/linter/linter.js
|
|
+++ b/lib/linter/linter.js
|
|
@@ -708,7 +708,7 @@ function createLanguageOptions({ globals: configuredGlobals, parser, parserOptio
|
|
*/
|
|
function resolveGlobals(providedGlobals, enabledEnvironments) {
|
|
return Object.assign(
|
|
- {},
|
|
+ Object.create(null),
|
|
...enabledEnvironments.filter(env => env.globals).map(env => env.globals),
|
|
providedGlobals
|
|
);
|