1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 03:12:42 +02:00

devDeps: eslint@8.14.0,8.20.0->8.36.0 (#18748)

* 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
This commit is contained in:
legobeat 2023-04-27 22:45:15 +00:00 committed by GitHub
parent 94a2325ae0
commit 576eee7adf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 828 additions and 616 deletions

10
.iyarc
View File

@ -6,16 +6,6 @@ GHSA-257v-vj4p-3w2h
# 7.1.1 and is included only via remote-redux-devtools which is a devDependency
GHSA-6fc8-4gx4-v693
# yarn npm audit reports on a fast-json-patch version < 3.1.1 but due to patch
# resolution, the only version of fast-json-patch that we use is 3.1.1. We also
# have 2.2.1 installed but it is a dev only dependency. The "violation" reports
# smart-transacton-controller as the culprit but if you run
# `yarn info -A -R dependents fast-json-patch` you can see that only 2.2.1 and
# 3.3.1 are installed and that smart-transaction-controller resolves to the
# patched version of 3.3.1. We can remove this once the
# smart-transaction-controller updates its dependency.
GHSA-8gh8-hqwg-xf34
# request library is subject to SSRF.
# addressed by temporary patch in .yarn/patches/request-npm-2.88.2-f4a57c72c4.patch
GHSA-p8p7-x288-28g6

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,8 +1,8 @@
diff --git a/lib/linter/linter.js b/lib/linter/linter.js
index 29d78da3969e2a3560d056af5683a08083562984..a6ae07b7142a353fcd8d58b55a7e68b8f81b2846 100644
index 0f1bd4f77611aa5ccc43c94385efd4f9b5639327..59ff9f14727e22bbec2cc7539af30305f759b23a 100644
--- a/lib/linter/linter.js
+++ b/lib/linter/linter.js
@@ -704,7 +704,7 @@ function createLanguageOptions({ globals: configuredGlobals, parser, parserOptio
@@ -708,7 +708,7 @@ function createLanguageOptions({ globals: configuredGlobals, parser, parserOptio
*/
function resolveGlobals(providedGlobals, enabledEnvironments) {
return Object.assign(

View File

@ -94,6 +94,7 @@
"eslint-plugin-jest>@typescript-eslint/utils>@typescript-eslint/types": true,
"eslint-plugin-jest>@typescript-eslint/utils>@typescript-eslint/scope-manager": true,
"eslint-plugin-jest>@typescript-eslint/utils>webpack>eslint-scope": true,
"eslint-plugin-mocha>eslint-utils": true,
"@typescript-eslint/parser>@typescript-eslint/types": true,
"eslint": true,
"@typescript-eslint/parser>@typescript-eslint/scope-manager": true,
@ -110,12 +111,18 @@
"eslint>eslint-visitor-keys": true
}
},
"eslint-plugin-mocha>eslint-utils": {
"packages": {
"eslint-plugin-mocha>eslint-utils>eslint-visitor-keys": true
}
},
"@typescript-eslint/eslint-plugin>@typescript-eslint/utils": {
"builtin": {
"path": true
},
"packages": {
"eslint>eslint-utils": true,
"eslint-plugin-mocha>eslint-utils": true,
"@typescript-eslint/parser>@typescript-eslint/types": true,
"eslint": true,
"@typescript-eslint/parser>@typescript-eslint/scope-manager": true,

View File

@ -1215,6 +1215,7 @@
"@typescript-eslint/parser>@typescript-eslint/types": true,
"@typescript-eslint/utils": true,
"eslint": true,
"eslint-plugin-mocha>eslint-utils": true,
"eslint>eslint-utils": true,
"webpack>eslint-scope": true
}
@ -1272,6 +1273,34 @@
"typescript": true
}
},
"addons-linter>postcss": {
"builtin": {
"fs.existsSync": true,
"fs.readFileSync": true,
"path.dirname": true,
"path.isAbsolute": true,
"path.join": true,
"path.relative": true,
"path.resolve": true,
"path.sep": true,
"url.fileURLToPath": true,
"url.pathToFileURL": true
},
"globals": {
"Buffer": true,
"URL": true,
"atob": true,
"btoa": true,
"console": true,
"process.env.LANG": true,
"process.env.NODE_ENV": true
},
"packages": {
"addons-linter>postcss>nanoid": true,
"addons-linter>postcss>source-map-js": true,
"gulp-sass>picocolors": true
}
},
"babelify": {
"builtin": {
"path.extname": true,
@ -1957,6 +1986,11 @@
"chokidar>is-binary-path>binary-extensions": true
}
},
"copy-webpack-plugin>p-limit": {
"packages": {
"copy-webpack-plugin>p-limit>yocto-queue": true
}
},
"cross-spawn": {
"builtin": {
"child_process.spawn": true,
@ -2229,19 +2263,23 @@
"assert": true,
"fs.existsSync": true,
"fs.lstatSync": true,
"fs.promises": true,
"fs.readFileSync": true,
"fs.readdirSync": true,
"fs.statSync": true,
"fs.unlinkSync": true,
"fs.writeFile": true,
"fs.writeFileSync": true,
"path.dirname": true,
"path.extname": true,
"path.isAbsolute": true,
"path.join": true,
"path.normalize": true,
"path.posix.join": true,
"path.relative": true,
"path.resolve": true,
"path.sep": true,
"url.pathToFileURL": true,
"util.format": true,
"util.inspect": true,
"util.promisify": true
@ -2254,31 +2292,36 @@
"process": true
},
"packages": {
"eslint>@eslint-community/eslint-utils": true,
"eslint>@eslint-community/regexpp": true,
"eslint>@eslint/eslintrc": true,
"eslint>@eslint/js": true,
"eslint>@humanwhocodes/config-array": true,
"eslint>@nodelib/fs.walk": true,
"eslint>ajv": true,
"eslint>doctrine": true,
"eslint>escape-string-regexp": true,
"eslint>eslint-scope": true,
"eslint>eslint-utils": true,
"eslint>eslint-visitor-keys": true,
"eslint>espree": true,
"eslint>esquery": true,
"eslint>esutils": true,
"eslint>fast-deep-equal": true,
"eslint>file-entry-cache": true,
"eslint>functional-red-black-tree": true,
"eslint>glob-parent": true,
"eslint>globals": true,
"eslint>grapheme-splitter": true,
"eslint>imurmurhash": true,
"eslint>is-glob": true,
"eslint>is-path-inside": true,
"eslint>js-sdsl": true,
"eslint>json-stable-stringify-without-jsonify": true,
"eslint>levn": true,
"eslint>lodash.merge": true,
"eslint>minimatch": true,
"eslint>natural-compare": true,
"eslint>regexpp": true,
"globby>ignore": true,
"mocha>find-up": true,
"nock>debug": true
}
},
@ -2554,6 +2597,7 @@
"eslint-plugin-jest>@typescript-eslint/utils>@typescript-eslint/types": true,
"eslint-plugin-jest>@typescript-eslint/utils>eslint-utils": true,
"eslint-plugin-jest>@typescript-eslint/utils>webpack>eslint-scope": true,
"eslint-plugin-mocha>eslint-utils": true,
"eslint>eslint-scope": true,
"eslint>eslint-utils": true,
"webpack>eslint-scope": true
@ -2611,6 +2655,11 @@
"eslint-plugin-jsdoc>spdx-expression-parse>spdx-license-ids": true
}
},
"eslint-plugin-mocha>eslint-utils": {
"packages": {
"eslint-plugin-mocha>eslint-utils>eslint-visitor-keys": true
}
},
"eslint-plugin-node": {
"builtin": {
"fs.readFileSync": true,
@ -2639,8 +2688,8 @@
},
"eslint-plugin-node>eslint-plugin-es": {
"packages": {
"eslint-plugin-node>eslint-plugin-es>eslint-utils": true,
"eslint>regexpp": true
"@typescript-eslint/eslint-plugin>regexpp": true,
"eslint-plugin-node>eslint-plugin-es>eslint-utils": true
}
},
"eslint-plugin-node>eslint-plugin-es>eslint-utils": {
@ -2800,6 +2849,11 @@
"process": true
}
},
"eslint>@eslint-community/eslint-utils": {
"packages": {
"eslint>eslint-visitor-keys": true
}
},
"eslint>@eslint/eslintrc": {
"builtin": {
"assert": true,
@ -2847,6 +2901,48 @@
"nock>debug": true
}
},
"eslint>@nodelib/fs.walk": {
"builtin": {
"events.EventEmitter": true,
"path.sep": true,
"stream.Readable": true
},
"globals": {
"setImmediate": true
},
"packages": {
"eslint>@nodelib/fs.walk>@nodelib/fs.scandir": true,
"eslint>@nodelib/fs.walk>fastq": true
}
},
"eslint>@nodelib/fs.walk>@nodelib/fs.scandir": {
"builtin": {
"fs.lstat": true,
"fs.lstatSync": true,
"fs.readdir": true,
"fs.readdirSync": true,
"fs.stat": true,
"fs.statSync": true,
"path.sep": true
},
"globals": {
"process.versions.node": true
},
"packages": {
"eslint>@nodelib/fs.walk>@nodelib/fs.scandir>run-parallel": true,
"fast-glob>@nodelib/fs.stat": true
}
},
"eslint>@nodelib/fs.walk>@nodelib/fs.scandir>run-parallel": {
"globals": {
"process.nextTick": true
}
},
"eslint>@nodelib/fs.walk>fastq": {
"packages": {
"eslint>@nodelib/fs.walk>fastq>reusify": true
}
},
"eslint>ajv": {
"globals": {
"console": true
@ -2885,11 +2981,6 @@
"eslint-plugin-react>estraverse": true
}
},
"eslint>eslint-utils": {
"packages": {
"eslint>eslint-utils>eslint-visitor-keys": true
}
},
"eslint>espree": {
"packages": {
"eslint>eslint-visitor-keys": true,
@ -2977,6 +3068,13 @@
"eslint>is-glob>is-extglob": true
}
},
"eslint>is-path-inside": {
"builtin": {
"path.relative": true,
"path.resolve": true,
"path.sep": true
}
},
"eslint>levn": {
"packages": {
"eslint>levn>prelude-ls": true,
@ -3055,9 +3153,9 @@
"process.cwd": true
},
"packages": {
"eslint>@nodelib/fs.walk": true,
"eslint>glob-parent": true,
"fast-glob>@nodelib/fs.stat": true,
"fast-glob>@nodelib/fs.walk": true,
"globby>merge2": true,
"stylelint>micromatch": true
}
@ -3070,48 +3168,6 @@
"fs.statSync": true
}
},
"fast-glob>@nodelib/fs.walk": {
"builtin": {
"events.EventEmitter": true,
"path.sep": true,
"stream.Readable": true
},
"globals": {
"setImmediate": true
},
"packages": {
"fast-glob>@nodelib/fs.walk>@nodelib/fs.scandir": true,
"fast-glob>@nodelib/fs.walk>fastq": true
}
},
"fast-glob>@nodelib/fs.walk>@nodelib/fs.scandir": {
"builtin": {
"fs.lstat": true,
"fs.lstatSync": true,
"fs.readdir": true,
"fs.readdirSync": true,
"fs.stat": true,
"fs.statSync": true,
"path.sep": true
},
"globals": {
"process.versions.node.split": true
},
"packages": {
"fast-glob>@nodelib/fs.stat": true,
"fast-glob>@nodelib/fs.walk>@nodelib/fs.scandir>run-parallel": true
}
},
"fast-glob>@nodelib/fs.walk>@nodelib/fs.scandir>run-parallel": {
"globals": {
"process.nextTick": true
}
},
"fast-glob>@nodelib/fs.walk>fastq": {
"packages": {
"fast-glob>@nodelib/fs.walk>fastq>reusify": true
}
},
"fs-extra": {
"builtin": {
"assert": true,
@ -3244,9 +3300,9 @@
"setImmediate": true
},
"packages": {
"addons-linter>postcss": true,
"fancy-log": true,
"gulp-autoprefixer>autoprefixer": true,
"gulp-autoprefixer>postcss": true,
"gulp-zip>plugin-error": true,
"through2": true,
"vinyl-sourcemaps-apply": true
@ -3259,8 +3315,8 @@
"process.env.AUTOPREFIXER_GRID": true
},
"packages": {
"addons-linter>postcss": true,
"gulp-autoprefixer>autoprefixer>fraction.js": true,
"gulp-autoprefixer>postcss": true,
"gulp-sass>picocolors": true,
"stylelint>autoprefixer>normalize-range": true,
"stylelint>postcss-value-parser": true,
@ -3273,34 +3329,6 @@
"define": true
}
},
"gulp-autoprefixer>postcss": {
"builtin": {
"fs.existsSync": true,
"fs.readFileSync": true,
"path.dirname": true,
"path.isAbsolute": true,
"path.join": true,
"path.relative": true,
"path.resolve": true,
"path.sep": true,
"url.fileURLToPath": true,
"url.pathToFileURL": true
},
"globals": {
"Buffer": true,
"URL": true,
"atob": true,
"btoa": true,
"console": true,
"process.env.LANG": true,
"process.env.NODE_ENV": true
},
"packages": {
"addons-linter>postcss>source-map-js": true,
"gulp-autoprefixer>postcss>nanoid": true,
"gulp-sass>picocolors": true
}
},
"gulp-livereload": {
"builtin": {
"path.relative": true
@ -6132,6 +6160,38 @@
"process.platform": true
}
},
"mocha>find-up": {
"builtin": {
"path.dirname": true,
"path.parse": true,
"path.resolve": true
},
"packages": {
"mocha>find-up>locate-path": true,
"nyc>find-up>path-exists": true
}
},
"mocha>find-up>locate-path": {
"builtin": {
"fs.lstat": true,
"fs.lstatSync": true,
"fs.stat": true,
"fs.statSync": true,
"path.resolve": true,
"util.promisify": true
},
"globals": {
"process.cwd": true
},
"packages": {
"mocha>find-up>locate-path>p-locate": true
}
},
"mocha>find-up>locate-path>p-locate": {
"packages": {
"copy-webpack-plugin>p-limit": true
}
},
"mocha>log-symbols": {
"packages": {
"madge>ora>is-unicode-supported": true,
@ -6239,6 +6299,13 @@
"Buffer.from": true
}
},
"nyc>find-up>path-exists": {
"builtin": {
"fs.access": true,
"fs.accessSync": true,
"util.promisify": true
}
},
"nyc>glob": {
"builtin": {
"assert": true,
@ -7188,7 +7255,7 @@
},
"stylelint>postcss-html>htmlparser2>domutils>dom-serializer": {
"packages": {
"stylelint>postcss-html>htmlparser2>domelementtype": true,
"stylelint>postcss-html>htmlparser2>domutils>dom-serializer>domelementtype": true,
"stylelint>postcss-html>htmlparser2>entities": true
}
},

View File

@ -131,8 +131,8 @@
"abort-controller@^3.0.0": "patch:abort-controller@npm%3A3.0.0#./.yarn/patches/abort-controller-npm-3.0.0-2f3a9a2bcb.patch",
"await-semaphore@^0.1.1": "patch:await-semaphore@npm%3A0.1.3#./.yarn/patches/await-semaphore-npm-0.1.3-b7a0001fab.patch",
"await-semaphore@^0.1.3": "patch:await-semaphore@npm%3A0.1.3#./.yarn/patches/await-semaphore-npm-0.1.3-b7a0001fab.patch",
"eslint@^8.20.0": "patch:eslint@npm%3A8.20.0#./.yarn/patches/eslint-npm-8.20.0-6bbc377ff7.patch",
"eslint@8.14.0": "patch:eslint@npm%3A8.20.0#./.yarn/patches/eslint-npm-8.20.0-6bbc377ff7.patch",
"eslint@8.36.0": "patch:eslint@npm%3A8.36.0#./.yarn/patches/eslint-npm-8.36.0-f8482bce95.patch",
"eslint@^8.36.0": "patch:eslint@npm%3A8.36.0#./.yarn/patches/eslint-npm-8.36.0-f8482bce95.patch",
"eth-query@^2.1.2": "patch:eth-query@npm%3A2.1.2#./.yarn/patches/eth-query-npm-2.1.2-7c6adc825f.patch",
"eth-query@^2.1.0": "patch:eth-query@npm%3A2.1.2#./.yarn/patches/eth-query-npm-2.1.2-7c6adc825f.patch",
"ethereumjs-util@^5.1.1": "patch:ethereumjs-util@npm%3A5.2.1#./.yarn/patches/ethereumjs-util-npm-5.2.1-72b39f4e7e.patch",
@ -178,7 +178,7 @@
"@babel/runtime@^7.12.5": "patch:@babel/runtime@npm%3A7.18.9#./.yarn/patches/@babel-runtime-npm-7.18.9-28ca6b5f61.patch",
"@babel/runtime@^7.5.0": "patch:@babel/runtime@npm%3A7.18.9#./.yarn/patches/@babel-runtime-npm-7.18.9-28ca6b5f61.patch",
"@babel/runtime@^7.8.4": "patch:@babel/runtime@npm%3A7.18.9#./.yarn/patches/@babel-runtime-npm-7.18.9-28ca6b5f61.patch",
"@eslint/eslintrc@^1.3.0": "patch:@eslint/eslintrc@npm%3A1.3.0#./.yarn/patches/@eslint-eslintrc-npm-1.3.0-1f3c51be25.patch",
"@eslint/eslintrc@^2.0.1": "patch:@eslint/eslintrc@npm%3A2.0.2#./.yarn/patches/@eslint-eslintrc-npm-2.0.2-d308674d86.patch",
"@formatjs/intl-utils@^3.3.1": "patch:@formatjs/intl-utils@npm%3A3.3.1#./.yarn/patches/@formatjs-intl-utils-npm-3.3.1-08510c16ad.patch",
"@fortawesome/fontawesome-free@^5.13.0": "patch:@fortawesome/fontawesome-free@npm%3A5.13.0#./.yarn/patches/@fortawesome-fontawesome-free-npm-5.13.0-f20fc0388d.patch",
"@keystonehq/bc-ur-registry@^0.5.0-alpha.5": "patch:@keystonehq/bc-ur-registry@npm%3A0.5.0-alpha.5#./.yarn/patches/@keystonehq-bc-ur-registry-npm-0.5.0-alpha.5-b95c7992a6.patch",
@ -447,7 +447,7 @@
"depcheck": "^1.4.3",
"dependency-tree": "^8.1.2",
"duplexify": "^4.1.1",
"eslint": "^8.20.0",
"eslint": "^8.36.0",
"eslint-config-prettier": "^8.5.0",
"eslint-import-resolver-node": "^0.3.4",
"eslint-import-resolver-typescript": "^2.5.0",

View File

@ -78,6 +78,7 @@ window.document.body.appendChild(popoverContent);
// eslint-disable-next-line no-shadow
const fetch = require('node-fetch');
/* eslint-disable-next-line no-shadow */
const { Headers, Request, Response } = fetch;
Object.assign(window, { fetch, Headers, Request, Response });

1061
yarn.lock

File diff suppressed because it is too large Load Diff