[deps] Update EsLint v8.57.1 and plugins

This is need to be able to move to flat config which I am handling
in a separate CL.
The overrides are there as these packages got update today,
so we need to way, but they were last touched 3 years ago,
so reviewing their changes upstream as well.

Bug: none
Change-Id: I61534f881fd4e747c716b42b773f8f7f3e9bc761
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6063618
Commit-Queue: Nikolay Vitkov <[email protected]>
Reviewed-by: Danil Somsikov <[email protected]>
diff --git a/node_modules/es-abstract/2015/GetSubstitution.js b/node_modules/es-abstract/2015/GetSubstitution.js
index 5bdce38..be2123e 100644
--- a/node_modules/es-abstract/2015/GetSubstitution.js
+++ b/node_modules/es-abstract/2015/GetSubstitution.js
@@ -3,12 +3,12 @@
 
 var GetIntrinsic = require('get-intrinsic');
 
-var $TypeError = GetIntrinsic('%TypeError%');
+var $TypeError = require('es-errors/type');
 var $parseInt = GetIntrinsic('%parseInt%');
 
 var inspect = require('object-inspect');
 
-var regexTester = require('../helpers/regexTester');
+var regexTester = require('safe-regex-test');
 var callBound = require('call-bind/callBound');
 var every = require('../helpers/every');
 
@@ -18,38 +18,33 @@
 var $strSlice = callBound('String.prototype.slice');
 
 var IsArray = require('./IsArray');
-var IsInteger = require('./IsInteger');
-var Type = require('./Type');
 
-var canDistinguishSparseFromUndefined = 0 in [undefined]; // IE 6 - 8 have a bug where this returns false
+var isInteger = require('../helpers/isInteger');
+var isStringOrUndefined = require('../helpers/isStringOrUndefined');
 
-var isStringOrHole = function (capture, index, arr) {
-	return Type(capture) === 'String' || (canDistinguishSparseFromUndefined ? !(index in arr) : Type(capture) === 'Undefined');
-};
+// https://262.ecma-international.org/6.0/#sec-getsubstitution
 
-// https://ecma-international.org/ecma-262/6.0/#sec-getsubstitution
-
-// eslint-disable-next-line max-statements, max-params, max-lines-per-function
+// eslint-disable-next-line max-statements, max-lines-per-function
 module.exports = function GetSubstitution(matched, str, position, captures, replacement) {
-	if (Type(matched) !== 'String') {
+	if (typeof matched !== 'string') {
 		throw new $TypeError('Assertion failed: `matched` must be a String');
 	}
 	var matchLength = matched.length;
 
-	if (Type(str) !== 'String') {
+	if (typeof str !== 'string') {
 		throw new $TypeError('Assertion failed: `str` must be a String');
 	}
 	var stringLength = str.length;
 
-	if (!IsInteger(position) || position < 0 || position > stringLength) {
+	if (!isInteger(position) || position < 0 || position > stringLength) {
 		throw new $TypeError('Assertion failed: `position` must be a nonnegative integer, and less than or equal to the length of `string`, got ' + inspect(position));
 	}
 
-	if (!IsArray(captures) || !every(captures, isStringOrHole)) {
+	if (!IsArray(captures) || !every(captures, isStringOrUndefined)) {
 		throw new $TypeError('Assertion failed: `captures` must be a List of Strings, got ' + inspect(captures));
 	}
 
-	if (Type(replacement) !== 'String') {
+	if (typeof replacement !== 'string') {
 		throw new $TypeError('Assertion failed: `replacement` must be a String');
 	}
 
@@ -82,14 +77,14 @@
 					// $1 through $9, and not followed by a digit
 					var n = $parseInt(next, 10);
 					// if (n > m, impl-defined)
-					result += n <= m && Type(captures[n - 1]) === 'Undefined' ? '' : captures[n - 1];
+					result += n <= m && typeof captures[n - 1] === 'undefined' ? '' : captures[n - 1];
 					i += 1;
 				} else if (isDigit(next) && (nextIsLast || isDigit(nextNext))) {
 					// $00 through $99
 					var nn = next + nextNext;
 					var nnI = $parseInt(nn, 10) - 1;
 					// if nn === '00' or nn > m, impl-defined
-					result += nn <= m && Type(captures[nnI]) === 'Undefined' ? '' : captures[nnI];
+					result += nn <= m && typeof captures[nnI] === 'undefined' ? '' : captures[nnI];
 					i += 2;
 				} else {
 					result += '$';