[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/QuoteJSONString.js b/node_modules/es-abstract/2015/QuoteJSONString.js
index 884afef..f837daf 100644
--- a/node_modules/es-abstract/2015/QuoteJSONString.js
+++ b/node_modules/es-abstract/2015/QuoteJSONString.js
@@ -1,8 +1,6 @@
'use strict';
-var GetIntrinsic = require('get-intrinsic');
-
-var $TypeError = GetIntrinsic('%TypeError%');
+var $TypeError = require('es-errors/type');
var callBound = require('call-bind/callBound');
var forEach = require('../helpers/forEach');
@@ -13,9 +11,7 @@
var $strSlice = callBound('String.prototype.slice');
var $strSplit = callBound('String.prototype.split');
-var Type = require('./Type');
-
-// https://ecma-international.org/ecma-262/6.0/#sec-quotejsonstring
+// https://262.ecma-international.org/6.0/#sec-quotejsonstring
var escapes = {
'\u0008': 'b',
@@ -26,7 +22,7 @@
};
module.exports = function QuoteJSONString(value) {
- if (Type(value) !== 'String') {
+ if (typeof value !== 'string') {
throw new $TypeError('Assertion failed: `value` must be a String');
}
var product = '"';