summaryrefslogtreecommitdiff
path: root/tools/node_modules/eslint/node_modules/@babel/types/lib
diff options
context:
space:
mode:
Diffstat (limited to 'tools/node_modules/eslint/node_modules/@babel/types/lib')
-rw-r--r--tools/node_modules/eslint/node_modules/@babel/types/lib/asserts/generated/index.js19
-rw-r--r--tools/node_modules/eslint/node_modules/@babel/types/lib/builders/generated/index.js10
-rw-r--r--tools/node_modules/eslint/node_modules/@babel/types/lib/clone/cloneNode.js8
-rw-r--r--tools/node_modules/eslint/node_modules/@babel/types/lib/constants/generated/index.js9
-rw-r--r--tools/node_modules/eslint/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js3
-rw-r--r--tools/node_modules/eslint/node_modules/@babel/types/lib/converters/toComputedKey.js3
-rw-r--r--tools/node_modules/eslint/node_modules/@babel/types/lib/converters/toExpression.js3
-rw-r--r--tools/node_modules/eslint/node_modules/@babel/types/lib/converters/toIdentifier.js3
-rw-r--r--tools/node_modules/eslint/node_modules/@babel/types/lib/converters/toKeyAlias.js3
-rw-r--r--tools/node_modules/eslint/node_modules/@babel/types/lib/converters/toSequenceExpression.js1
-rw-r--r--tools/node_modules/eslint/node_modules/@babel/types/lib/converters/toStatement.js3
-rw-r--r--tools/node_modules/eslint/node_modules/@babel/types/lib/converters/valueToNode.js10
-rw-r--r--tools/node_modules/eslint/node_modules/@babel/types/lib/definitions/core.js78
-rw-r--r--tools/node_modules/eslint/node_modules/@babel/types/lib/definitions/deprecated-aliases.js12
-rw-r--r--tools/node_modules/eslint/node_modules/@babel/types/lib/definitions/experimental.js3
-rw-r--r--tools/node_modules/eslint/node_modules/@babel/types/lib/definitions/flow.js1
-rw-r--r--tools/node_modules/eslint/node_modules/@babel/types/lib/definitions/index.js10
-rw-r--r--tools/node_modules/eslint/node_modules/@babel/types/lib/definitions/typescript.js10
-rw-r--r--tools/node_modules/eslint/node_modules/@babel/types/lib/definitions/utils.js2
-rw-r--r--tools/node_modules/eslint/node_modules/@babel/types/lib/index.js11
-rw-r--r--tools/node_modules/eslint/node_modules/@babel/types/lib/index.js.flow11
-rw-r--r--tools/node_modules/eslint/node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js10
-rw-r--r--tools/node_modules/eslint/node_modules/@babel/types/lib/modifications/inherits.js3
-rw-r--r--tools/node_modules/eslint/node_modules/@babel/types/lib/modifications/removeProperties.js4
-rw-r--r--tools/node_modules/eslint/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js8
-rw-r--r--tools/node_modules/eslint/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js8
-rw-r--r--tools/node_modules/eslint/node_modules/@babel/types/lib/traverse/traverseFast.js3
-rw-r--r--tools/node_modules/eslint/node_modules/@babel/types/lib/utils/deprecationWarning.js30
-rw-r--r--tools/node_modules/eslint/node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js3
-rw-r--r--tools/node_modules/eslint/node_modules/@babel/types/lib/utils/shallowEqual.js3
-rw-r--r--tools/node_modules/eslint/node_modules/@babel/types/lib/validators/generated/index.js17
-rw-r--r--tools/node_modules/eslint/node_modules/@babel/types/lib/validators/isBinding.js6
-rw-r--r--tools/node_modules/eslint/node_modules/@babel/types/lib/validators/isLet.js3
-rw-r--r--tools/node_modules/eslint/node_modules/@babel/types/lib/validators/isNodesEquivalent.js3
-rw-r--r--tools/node_modules/eslint/node_modules/@babel/types/lib/validators/isReferenced.js21
-rw-r--r--tools/node_modules/eslint/node_modules/@babel/types/lib/validators/isScope.js1
-rw-r--r--tools/node_modules/eslint/node_modules/@babel/types/lib/validators/isSpecifierDefault.js3
-rw-r--r--tools/node_modules/eslint/node_modules/@babel/types/lib/validators/isType.js1
-rw-r--r--tools/node_modules/eslint/node_modules/@babel/types/lib/validators/isValidES3Identifier.js1
-rw-r--r--tools/node_modules/eslint/node_modules/@babel/types/lib/validators/isVar.js3
40 files changed, 145 insertions, 199 deletions
diff --git a/tools/node_modules/eslint/node_modules/@babel/types/lib/asserts/generated/index.js b/tools/node_modules/eslint/node_modules/@babel/types/lib/asserts/generated/index.js
index 6dfead65e2..eeb839cef1 100644
--- a/tools/node_modules/eslint/node_modules/@babel/types/lib/asserts/generated/index.js
+++ b/tools/node_modules/eslint/node_modules/@babel/types/lib/asserts/generated/index.js
@@ -109,6 +109,7 @@ exports.assertImportAttribute = assertImportAttribute;
exports.assertImportDeclaration = assertImportDeclaration;
exports.assertImportDefaultSpecifier = assertImportDefaultSpecifier;
exports.assertImportNamespaceSpecifier = assertImportNamespaceSpecifier;
+exports.assertImportOrExportDeclaration = assertImportOrExportDeclaration;
exports.assertImportSpecifier = assertImportSpecifier;
exports.assertIndexedAccessType = assertIndexedAccessType;
exports.assertInferredPredicate = assertInferredPredicate;
@@ -306,7 +307,7 @@ exports.assertWhileStatement = assertWhileStatement;
exports.assertWithStatement = assertWithStatement;
exports.assertYieldExpression = assertYieldExpression;
var _is = require("../../validators/is");
-
+var _deprecationWarning = require("../../utils/deprecationWarning");
function assert(type, node, opts) {
if (!(0, _is.default)(type, node, opts)) {
throw new Error(`Expected type "${type}" with option ${JSON.stringify(opts)}, ` + `but instead got "${node.type}".`);
@@ -1152,8 +1153,8 @@ function assertPattern(node, opts) {
function assertClass(node, opts) {
assert("Class", node, opts);
}
-function assertModuleDeclaration(node, opts) {
- assert("ModuleDeclaration", node, opts);
+function assertImportOrExportDeclaration(node, opts) {
+ assert("ImportOrExportDeclaration", node, opts);
}
function assertExportDeclaration(node, opts) {
assert("ExportDeclaration", node, opts);
@@ -1207,20 +1208,24 @@ function assertTSBaseType(node, opts) {
assert("TSBaseType", node, opts);
}
function assertNumberLiteral(node, opts) {
- console.trace("The node type NumberLiteral has been renamed to NumericLiteral");
+ (0, _deprecationWarning.default)("assertNumberLiteral", "assertNumericLiteral");
assert("NumberLiteral", node, opts);
}
function assertRegexLiteral(node, opts) {
- console.trace("The node type RegexLiteral has been renamed to RegExpLiteral");
+ (0, _deprecationWarning.default)("assertRegexLiteral", "assertRegExpLiteral");
assert("RegexLiteral", node, opts);
}
function assertRestProperty(node, opts) {
- console.trace("The node type RestProperty has been renamed to RestElement");
+ (0, _deprecationWarning.default)("assertRestProperty", "assertRestElement");
assert("RestProperty", node, opts);
}
function assertSpreadProperty(node, opts) {
- console.trace("The node type SpreadProperty has been renamed to SpreadElement");
+ (0, _deprecationWarning.default)("assertSpreadProperty", "assertSpreadElement");
assert("SpreadProperty", node, opts);
}
+function assertModuleDeclaration(node, opts) {
+ (0, _deprecationWarning.default)("assertModuleDeclaration", "assertImportOrExportDeclaration");
+ assert("ModuleDeclaration", node, opts);
+}
//# sourceMappingURL=index.js.map
diff --git a/tools/node_modules/eslint/node_modules/@babel/types/lib/builders/generated/index.js b/tools/node_modules/eslint/node_modules/@babel/types/lib/builders/generated/index.js
index 55336aeb80..e70f7626b5 100644
--- a/tools/node_modules/eslint/node_modules/@babel/types/lib/builders/generated/index.js
+++ b/tools/node_modules/eslint/node_modules/@babel/types/lib/builders/generated/index.js
@@ -257,7 +257,7 @@ exports.whileStatement = whileStatement;
exports.withStatement = withStatement;
exports.yieldExpression = yieldExpression;
var _validateNode = require("../validateNode");
-
+var _deprecationWarning = require("../../utils/deprecationWarning");
function arrayExpression(elements = []) {
return (0, _validateNode.default)({
type: "ArrayExpression",
@@ -1966,19 +1966,19 @@ function tsTypeParameter(constraint = null, _default = null, name) {
});
}
function NumberLiteral(value) {
- console.trace("The node type NumberLiteral has been renamed to NumericLiteral");
+ (0, _deprecationWarning.default)("NumberLiteral", "NumericLiteral", "The node type ");
return numericLiteral(value);
}
function RegexLiteral(pattern, flags = "") {
- console.trace("The node type RegexLiteral has been renamed to RegExpLiteral");
+ (0, _deprecationWarning.default)("RegexLiteral", "RegExpLiteral", "The node type ");
return regExpLiteral(pattern, flags);
}
function RestProperty(argument) {
- console.trace("The node type RestProperty has been renamed to RestElement");
+ (0, _deprecationWarning.default)("RestProperty", "RestElement", "The node type ");
return restElement(argument);
}
function SpreadProperty(argument) {
- console.trace("The node type SpreadProperty has been renamed to SpreadElement");
+ (0, _deprecationWarning.default)("SpreadProperty", "SpreadElement", "The node type ");
return spreadElement(argument);
}
diff --git a/tools/node_modules/eslint/node_modules/@babel/types/lib/clone/cloneNode.js b/tools/node_modules/eslint/node_modules/@babel/types/lib/clone/cloneNode.js
index bcc1317bb7..9934c1bc09 100644
--- a/tools/node_modules/eslint/node_modules/@babel/types/lib/clone/cloneNode.js
+++ b/tools/node_modules/eslint/node_modules/@babel/types/lib/clone/cloneNode.js
@@ -19,7 +19,6 @@ function cloneIfNodeOrArray(obj, deep, withoutLoc, commentsCache) {
}
return cloneIfNode(obj, deep, withoutLoc, commentsCache);
}
-
function cloneNode(node, deep = true, withoutLoc = false) {
return cloneNodeInternal(node, deep, withoutLoc, new Map());
}
@@ -31,7 +30,6 @@ function cloneNodeInternal(node, deep = true, withoutLoc = false, commentsCache)
const newNode = {
type: node.type
};
-
if ((0, _generated.isIdentifier)(node)) {
newNode.name = node.name;
if (has(node, "optional") && typeof node.optional === "boolean") {
@@ -46,11 +44,9 @@ function cloneNodeInternal(node, deep = true, withoutLoc = false, commentsCache)
for (const field of Object.keys(_definitions.NODE_FIELDS[type])) {
if (has(node, field)) {
if (deep) {
- newNode[field] = (0, _generated.isFile)(node) && field === "comments" ? maybeCloneComments(node.comments, deep, withoutLoc, commentsCache) : cloneIfNodeOrArray(
- node[field], true, withoutLoc, commentsCache);
+ newNode[field] = (0, _generated.isFile)(node) && field === "comments" ? maybeCloneComments(node.comments, deep, withoutLoc, commentsCache) : cloneIfNodeOrArray(node[field], true, withoutLoc, commentsCache);
} else {
- newNode[field] =
- node[field];
+ newNode[field] = node[field];
}
}
}
diff --git a/tools/node_modules/eslint/node_modules/@babel/types/lib/constants/generated/index.js b/tools/node_modules/eslint/node_modules/@babel/types/lib/constants/generated/index.js
index f132e7c135..14b34afae6 100644
--- a/tools/node_modules/eslint/node_modules/@babel/types/lib/constants/generated/index.js
+++ b/tools/node_modules/eslint/node_modules/@babel/types/lib/constants/generated/index.js
@@ -3,9 +3,8 @@
Object.defineProperty(exports, "__esModule", {
value: true
});
-exports.WHILE_TYPES = exports.USERWHITESPACABLE_TYPES = exports.UNARYLIKE_TYPES = exports.TYPESCRIPT_TYPES = exports.TSTYPE_TYPES = exports.TSTYPEELEMENT_TYPES = exports.TSENTITYNAME_TYPES = exports.TSBASETYPE_TYPES = exports.TERMINATORLESS_TYPES = exports.STATEMENT_TYPES = exports.STANDARDIZED_TYPES = exports.SCOPABLE_TYPES = exports.PUREISH_TYPES = exports.PROPERTY_TYPES = exports.PRIVATE_TYPES = exports.PATTERN_TYPES = exports.PATTERNLIKE_TYPES = exports.OBJECTMEMBER_TYPES = exports.MODULESPECIFIER_TYPES = exports.MODULEDECLARATION_TYPES = exports.MISCELLANEOUS_TYPES = exports.METHOD_TYPES = exports.LVAL_TYPES = exports.LOOP_TYPES = exports.LITERAL_TYPES = exports.JSX_TYPES = exports.IMMUTABLE_TYPES = exports.FUNCTION_TYPES = exports.FUNCTIONPARENT_TYPES = exports.FOR_TYPES = exports.FORXSTATEMENT_TYPES = exports.FLOW_TYPES = exports.FLOWTYPE_TYPES = exports.FLOWPREDICATE_TYPES = exports.FLOWDECLARATION_TYPES = exports.FLOWBASEANNOTATION_TYPES = exports.EXPRESSION_TYPES = exports.EXPRESSIONWRAPPER_TYPES = exports.EXPORTDECLARATION_TYPES = exports.ENUMMEMBER_TYPES = exports.ENUMBODY_TYPES = exports.DECLARATION_TYPES = exports.CONDITIONAL_TYPES = exports.COMPLETIONSTATEMENT_TYPES = exports.CLASS_TYPES = exports.BLOCK_TYPES = exports.BLOCKPARENT_TYPES = exports.BINARY_TYPES = exports.ACCESSOR_TYPES = void 0;
+exports.WHILE_TYPES = exports.USERWHITESPACABLE_TYPES = exports.UNARYLIKE_TYPES = exports.TYPESCRIPT_TYPES = exports.TSTYPE_TYPES = exports.TSTYPEELEMENT_TYPES = exports.TSENTITYNAME_TYPES = exports.TSBASETYPE_TYPES = exports.TERMINATORLESS_TYPES = exports.STATEMENT_TYPES = exports.STANDARDIZED_TYPES = exports.SCOPABLE_TYPES = exports.PUREISH_TYPES = exports.PROPERTY_TYPES = exports.PRIVATE_TYPES = exports.PATTERN_TYPES = exports.PATTERNLIKE_TYPES = exports.OBJECTMEMBER_TYPES = exports.MODULESPECIFIER_TYPES = exports.MODULEDECLARATION_TYPES = exports.MISCELLANEOUS_TYPES = exports.METHOD_TYPES = exports.LVAL_TYPES = exports.LOOP_TYPES = exports.LITERAL_TYPES = exports.JSX_TYPES = exports.IMPORTOREXPORTDECLARATION_TYPES = exports.IMMUTABLE_TYPES = exports.FUNCTION_TYPES = exports.FUNCTIONPARENT_TYPES = exports.FOR_TYPES = exports.FORXSTATEMENT_TYPES = exports.FLOW_TYPES = exports.FLOWTYPE_TYPES = exports.FLOWPREDICATE_TYPES = exports.FLOWDECLARATION_TYPES = exports.FLOWBASEANNOTATION_TYPES = exports.EXPRESSION_TYPES = exports.EXPRESSIONWRAPPER_TYPES = exports.EXPORTDECLARATION_TYPES = exports.ENUMMEMBER_TYPES = exports.ENUMBODY_TYPES = exports.DECLARATION_TYPES = exports.CONDITIONAL_TYPES = exports.COMPLETIONSTATEMENT_TYPES = exports.CLASS_TYPES = exports.BLOCK_TYPES = exports.BLOCKPARENT_TYPES = exports.BINARY_TYPES = exports.ACCESSOR_TYPES = void 0;
var _definitions = require("../../definitions");
-
const STANDARDIZED_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Standardized"];
exports.STANDARDIZED_TYPES = STANDARDIZED_TYPES;
const EXPRESSION_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Expression"];
@@ -68,8 +67,8 @@ const PATTERN_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Pattern"];
exports.PATTERN_TYPES = PATTERN_TYPES;
const CLASS_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Class"];
exports.CLASS_TYPES = CLASS_TYPES;
-const MODULEDECLARATION_TYPES = _definitions.FLIPPED_ALIAS_KEYS["ModuleDeclaration"];
-exports.MODULEDECLARATION_TYPES = MODULEDECLARATION_TYPES;
+const IMPORTOREXPORTDECLARATION_TYPES = _definitions.FLIPPED_ALIAS_KEYS["ImportOrExportDeclaration"];
+exports.IMPORTOREXPORTDECLARATION_TYPES = IMPORTOREXPORTDECLARATION_TYPES;
const EXPORTDECLARATION_TYPES = _definitions.FLIPPED_ALIAS_KEYS["ExportDeclaration"];
exports.EXPORTDECLARATION_TYPES = EXPORTDECLARATION_TYPES;
const MODULESPECIFIER_TYPES = _definitions.FLIPPED_ALIAS_KEYS["ModuleSpecifier"];
@@ -104,5 +103,7 @@ const TSTYPE_TYPES = _definitions.FLIPPED_ALIAS_KEYS["TSType"];
exports.TSTYPE_TYPES = TSTYPE_TYPES;
const TSBASETYPE_TYPES = _definitions.FLIPPED_ALIAS_KEYS["TSBaseType"];
exports.TSBASETYPE_TYPES = TSBASETYPE_TYPES;
+const MODULEDECLARATION_TYPES = IMPORTOREXPORTDECLARATION_TYPES;
+exports.MODULEDECLARATION_TYPES = MODULEDECLARATION_TYPES;
//# sourceMappingURL=index.js.map
diff --git a/tools/node_modules/eslint/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js b/tools/node_modules/eslint/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js
index 22599a049c..56ad5c2bee 100644
--- a/tools/node_modules/eslint/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js
+++ b/tools/node_modules/eslint/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js
@@ -21,7 +21,6 @@ function gatherSequenceExpressions(nodes, scope, declars) {
exprs.push(node.expression);
} else if ((0, _generated.isVariableDeclaration)(node)) {
if (node.kind !== "var") return;
-
for (const declar of node.declarations) {
const bindings = (0, _getBindingIdentifiers.default)(declar);
for (const key of Object.keys(bindings)) {
@@ -39,12 +38,10 @@ function gatherSequenceExpressions(nodes, scope, declars) {
const consequent = node.consequent ? gatherSequenceExpressions([node.consequent], scope, declars) : scope.buildUndefinedNode();
const alternate = node.alternate ? gatherSequenceExpressions([node.alternate], scope, declars) : scope.buildUndefinedNode();
if (!consequent || !alternate) return;
-
exprs.push((0, _generated2.conditionalExpression)(node.test, consequent, alternate));
} else if ((0, _generated.isBlockStatement)(node)) {
const body = gatherSequenceExpressions(node.body, scope, declars);
if (!body) return;
-
exprs.push(body);
} else if ((0, _generated.isEmptyStatement)(node)) {
if (nodes.indexOf(node) === 0) {
diff --git a/tools/node_modules/eslint/node_modules/@babel/types/lib/converters/toComputedKey.js b/tools/node_modules/eslint/node_modules/@babel/types/lib/converters/toComputedKey.js
index f739a92921..5ee040e82f 100644
--- a/tools/node_modules/eslint/node_modules/@babel/types/lib/converters/toComputedKey.js
+++ b/tools/node_modules/eslint/node_modules/@babel/types/lib/converters/toComputedKey.js
@@ -6,8 +6,7 @@ Object.defineProperty(exports, "__esModule", {
exports.default = toComputedKey;
var _generated = require("../validators/generated");
var _generated2 = require("../builders/generated");
-function toComputedKey(node,
-key = node.key || node.property) {
+function toComputedKey(node, key = node.key || node.property) {
if (!node.computed && (0, _generated.isIdentifier)(key)) key = (0, _generated2.stringLiteral)(key.name);
return key;
}
diff --git a/tools/node_modules/eslint/node_modules/@babel/types/lib/converters/toExpression.js b/tools/node_modules/eslint/node_modules/@babel/types/lib/converters/toExpression.js
index 5a0a237693..f52bd3abac 100644
--- a/tools/node_modules/eslint/node_modules/@babel/types/lib/converters/toExpression.js
+++ b/tools/node_modules/eslint/node_modules/@babel/types/lib/converters/toExpression.js
@@ -11,17 +11,14 @@ function toExpression(node) {
if ((0, _generated.isExpressionStatement)(node)) {
node = node.expression;
}
-
if ((0, _generated.isExpression)(node)) {
return node;
}
-
if ((0, _generated.isClass)(node)) {
node.type = "ClassExpression";
} else if ((0, _generated.isFunction)(node)) {
node.type = "FunctionExpression";
}
-
if (!(0, _generated.isExpression)(node)) {
throw new Error(`cannot turn ${node.type} to an expression`);
}
diff --git a/tools/node_modules/eslint/node_modules/@babel/types/lib/converters/toIdentifier.js b/tools/node_modules/eslint/node_modules/@babel/types/lib/converters/toIdentifier.js
index f2cb843491..6294e6afd5 100644
--- a/tools/node_modules/eslint/node_modules/@babel/types/lib/converters/toIdentifier.js
+++ b/tools/node_modules/eslint/node_modules/@babel/types/lib/converters/toIdentifier.js
@@ -8,14 +8,11 @@ var _isValidIdentifier = require("../validators/isValidIdentifier");
var _helperValidatorIdentifier = require("@babel/helper-validator-identifier");
function toIdentifier(input) {
input = input + "";
-
let name = "";
for (const c of input) {
name += (0, _helperValidatorIdentifier.isIdentifierChar)(c.codePointAt(0)) ? c : "-";
}
-
name = name.replace(/^[-0-9]+/, "");
-
name = name.replace(/[-\s]+(.)?/g, function (match, c) {
return c ? c.toUpperCase() : "";
});
diff --git a/tools/node_modules/eslint/node_modules/@babel/types/lib/converters/toKeyAlias.js b/tools/node_modules/eslint/node_modules/@babel/types/lib/converters/toKeyAlias.js
index 7bd0c99853..059ce9f1cf 100644
--- a/tools/node_modules/eslint/node_modules/@babel/types/lib/converters/toKeyAlias.js
+++ b/tools/node_modules/eslint/node_modules/@babel/types/lib/converters/toKeyAlias.js
@@ -9,7 +9,6 @@ var _cloneNode = require("../clone/cloneNode");
var _removePropertiesDeep = require("../modifications/removePropertiesDeep");
function toKeyAlias(node, key = node.key) {
let alias;
-
if (node.kind === "method") {
return toKeyAlias.increment() + "";
} else if ((0, _generated.isIdentifier)(key)) {
@@ -19,11 +18,9 @@ function toKeyAlias(node, key = node.key) {
} else {
alias = JSON.stringify((0, _removePropertiesDeep.default)((0, _cloneNode.default)(key)));
}
-
if (node.computed) {
alias = `[${alias}]`;
}
-
if (node.static) {
alias = `static:${alias}`;
}
diff --git a/tools/node_modules/eslint/node_modules/@babel/types/lib/converters/toSequenceExpression.js b/tools/node_modules/eslint/node_modules/@babel/types/lib/converters/toSequenceExpression.js
index 4875191352..992a78eea8 100644
--- a/tools/node_modules/eslint/node_modules/@babel/types/lib/converters/toSequenceExpression.js
+++ b/tools/node_modules/eslint/node_modules/@babel/types/lib/converters/toSequenceExpression.js
@@ -13,7 +13,6 @@ function toSequenceExpression(nodes, scope) {
for (const declar of declars) {
scope.push(declar);
}
-
return result;
}
diff --git a/tools/node_modules/eslint/node_modules/@babel/types/lib/converters/toStatement.js b/tools/node_modules/eslint/node_modules/@babel/types/lib/converters/toStatement.js
index 65a1f5062d..45bf21221f 100644
--- a/tools/node_modules/eslint/node_modules/@babel/types/lib/converters/toStatement.js
+++ b/tools/node_modules/eslint/node_modules/@babel/types/lib/converters/toStatement.js
@@ -23,7 +23,6 @@ function toStatement(node, ignore) {
} else if ((0, _generated.isAssignmentExpression)(node)) {
return (0, _generated2.expressionStatement)(node);
}
-
if (mustHaveId && !node.id) {
newType = false;
}
@@ -34,9 +33,7 @@ function toStatement(node, ignore) {
throw new Error(`cannot turn ${node.type} to a statement`);
}
}
-
node.type = newType;
-
return node;
}
diff --git a/tools/node_modules/eslint/node_modules/@babel/types/lib/converters/valueToNode.js b/tools/node_modules/eslint/node_modules/@babel/types/lib/converters/valueToNode.js
index 8b952033db..b82bd84900 100644
--- a/tools/node_modules/eslint/node_modules/@babel/types/lib/converters/valueToNode.js
+++ b/tools/node_modules/eslint/node_modules/@babel/types/lib/converters/valueToNode.js
@@ -23,19 +23,15 @@ function valueToNode(value) {
if (value === undefined) {
return (0, _generated.identifier)("undefined");
}
-
if (value === true || value === false) {
return (0, _generated.booleanLiteral)(value);
}
-
if (value === null) {
return (0, _generated.nullLiteral)();
}
-
if (typeof value === "string") {
return (0, _generated.stringLiteral)(value);
}
-
if (typeof value === "number") {
let result;
if (Number.isFinite(value)) {
@@ -54,17 +50,14 @@ function valueToNode(value) {
}
return result;
}
-
if (isRegExp(value)) {
const pattern = value.source;
const flags = value.toString().match(/\/([a-z]+|)$/)[1];
return (0, _generated.regExpLiteral)(pattern, flags);
}
-
if (Array.isArray(value)) {
return (0, _generated.arrayExpression)(value.map(valueToNode));
}
-
if (isPlainObject(value)) {
const props = [];
for (const key of Object.keys(value)) {
@@ -74,8 +67,7 @@ function valueToNode(value) {
} else {
nodeKey = (0, _generated.stringLiteral)(key);
}
- props.push((0, _generated.objectProperty)(nodeKey, valueToNode(
- value[key])));
+ props.push((0, _generated.objectProperty)(nodeKey, valueToNode(value[key])));
}
return (0, _generated.objectExpression)(props);
}
diff --git a/tools/node_modules/eslint/node_modules/@babel/types/lib/definitions/core.js b/tools/node_modules/eslint/node_modules/@babel/types/lib/definitions/core.js
index ac7cbeb45f..9a01c2b36f 100644
--- a/tools/node_modules/eslint/node_modules/@babel/types/lib/definitions/core.js
+++ b/tools/node_modules/eslint/node_modules/@babel/types/lib/definitions/core.js
@@ -60,8 +60,7 @@ defineType("BinaryExpression", {
const validator = Object.assign(function (node, key, val) {
const validator = node.operator === "in" ? inOp : expression;
validator(node, key, val);
- },
- {
+ }, {
oneOfNodeTypes: ["Expression", "PrivateName"]
});
return validator;
@@ -287,13 +286,11 @@ const functionCommon = () => ({
exports.functionCommon = functionCommon;
const functionTypeAnnotationCommon = () => ({
returnType: {
- validate: (0, _utils.assertNodeType)("TypeAnnotation", "TSTypeAnnotation",
- "Noop"),
+ validate: (0, _utils.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"),
optional: true
},
typeParameters: {
- validate: (0, _utils.assertNodeType)("TypeParameterDeclaration", "TSTypeParameterDeclaration",
- "Noop"),
+ validate: (0, _utils.assertNodeType)("TypeParameterDeclaration", "TSTypeParameterDeclaration", "Noop"),
optional: true
}
});
@@ -351,8 +348,11 @@ defineType("FunctionExpression", {
});
const patternLikeCommon = () => ({
typeAnnotation: {
- validate: (0, _utils.assertNodeType)("TypeAnnotation", "TSTypeAnnotation",
- "Noop"),
+ validate: (0, _utils.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"),
+ optional: true
+ },
+ optional: {
+ validate: (0, _utils.assertValueType)("boolean"),
optional: true
},
decorators: {
@@ -375,10 +375,6 @@ defineType("Identifier", {
}, {
type: "string"
}))
- },
- optional: {
- validate: (0, _utils.assertValueType)("boolean"),
- optional: true
}
}),
validate(parent, key, node) {
@@ -389,7 +385,6 @@ defineType("Identifier", {
const nonComp = {
computed: false
};
-
if (parentKey === "property") {
if ((0, _is.default)("MemberExpression", parent, nonComp)) return;
if ((0, _is.default)("OptionalMemberExpression", parent, nonComp)) return;
@@ -407,9 +402,7 @@ defineType("Identifier", {
meta: node
})) return;
}
- if (
- ((0, _helperValidatorIdentifier.isKeyword)(node.name) || (0, _helperValidatorIdentifier.isReservedWord)(node.name, false)) &&
- node.name !== "this") {
+ if (((0, _helperValidatorIdentifier.isKeyword)(node.name) || (0, _helperValidatorIdentifier.isReservedWord)(node.name, false)) && node.name !== "this") {
throw new TypeError(`"${node.name}" is not a valid identifier`);
}
}
@@ -676,10 +669,6 @@ defineType("RestElement", {
fields: Object.assign({}, patternLikeCommon(), {
argument: {
validate: !process.env.BABEL_TYPES_8_BREAKING ? (0, _utils.assertNodeType)("LVal") : (0, _utils.assertNodeType)("Identifier", "ArrayPattern", "ObjectPattern", "MemberExpression", "TSAsExpression", "TSSatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression")
- },
- optional: {
- validate: (0, _utils.assertValueType)("boolean"),
- optional: true
}
}),
validate(parent, key) {
@@ -763,7 +752,6 @@ defineType("TryStatement", {
block: {
validate: (0, _utils.chain)((0, _utils.assertNodeType)("BlockStatement"), Object.assign(function (node) {
if (!process.env.BABEL_TYPES_8_BREAKING) return;
-
if (!node.handler && !node.finalizer) {
throw new TypeError("TryStatement expects either a handler or finalizer, or both");
}
@@ -823,8 +811,7 @@ defineType("VariableDeclaration", {
optional: true
},
kind: {
- validate: (0, _utils.assertOneOf)("var", "let", "const",
- "using")
+ validate: (0, _utils.assertOneOf)("var", "let", "const", "using")
},
declarations: {
validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("VariableDeclarator")))
@@ -890,7 +877,6 @@ defineType("WithStatement", {
}
}
});
-
defineType("AssignmentPattern", {
visitor: ["left", "right", "decorators"],
builder: ["left", "right"],
@@ -915,14 +901,6 @@ defineType("ArrayPattern", {
fields: Object.assign({}, patternLikeCommon(), {
elements: {
validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeOrValueType)("null", "PatternLike", "LVal")))
- },
- decorators: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Decorator"))),
- optional: true
- },
- optional: {
- validate: (0, _utils.assertValueType)("boolean"),
- optional: true
}
})
});
@@ -961,8 +939,7 @@ defineType("ClassExpression", {
optional: true
},
typeParameters: {
- validate: (0, _utils.assertNodeType)("TypeParameterDeclaration", "TSTypeParameterDeclaration",
- "Noop"),
+ validate: (0, _utils.assertNodeType)("TypeParameterDeclaration", "TSTypeParameterDeclaration", "Noop"),
optional: true
},
body: {
@@ -998,8 +975,7 @@ defineType("ClassDeclaration", {
validate: (0, _utils.assertNodeType)("Identifier")
},
typeParameters: {
- validate: (0, _utils.assertNodeType)("TypeParameterDeclaration", "TSTypeParameterDeclaration",
- "Noop"),
+ validate: (0, _utils.assertNodeType)("TypeParameterDeclaration", "TSTypeParameterDeclaration", "Noop"),
optional: true
},
body: {
@@ -1046,7 +1022,7 @@ defineType("ClassDeclaration", {
});
defineType("ExportAllDeclaration", {
visitor: ["source"],
- aliases: ["Statement", "Declaration", "ModuleDeclaration", "ExportDeclaration"],
+ aliases: ["Statement", "Declaration", "ImportOrExportDeclaration", "ExportDeclaration"],
fields: {
source: {
validate: (0, _utils.assertNodeType)("StringLiteral")
@@ -1060,7 +1036,7 @@ defineType("ExportAllDeclaration", {
});
defineType("ExportDefaultDeclaration", {
visitor: ["declaration"],
- aliases: ["Statement", "Declaration", "ModuleDeclaration", "ExportDeclaration"],
+ aliases: ["Statement", "Declaration", "ImportOrExportDeclaration", "ExportDeclaration"],
fields: {
declaration: {
validate: (0, _utils.assertNodeType)("TSDeclareFunction", "FunctionDeclaration", "ClassDeclaration", "Expression")
@@ -1070,13 +1046,12 @@ defineType("ExportDefaultDeclaration", {
});
defineType("ExportNamedDeclaration", {
visitor: ["declaration", "specifiers", "source"],
- aliases: ["Statement", "Declaration", "ModuleDeclaration", "ExportDeclaration"],
+ aliases: ["Statement", "Declaration", "ImportOrExportDeclaration", "ExportDeclaration"],
fields: {
declaration: {
optional: true,
validate: (0, _utils.chain)((0, _utils.assertNodeType)("Declaration"), Object.assign(function (node, key, val) {
if (!process.env.BABEL_TYPES_8_BREAKING) return;
-
if (val && node.specifiers.length) {
throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration");
}
@@ -1084,7 +1059,6 @@ defineType("ExportNamedDeclaration", {
oneOfNodeTypes: ["Declaration"]
}), function (node, key, val) {
if (!process.env.BABEL_TYPES_8_BREAKING) return;
-
if (val && node.source) {
throw new TypeError("Cannot export a declaration from a source");
}
@@ -1163,7 +1137,7 @@ defineType("ForOfStatement", {
});
defineType("ImportDeclaration", {
visitor: ["specifiers", "source"],
- aliases: ["Statement", "Declaration", "ModuleDeclaration"],
+ aliases: ["Statement", "Declaration", "ImportOrExportDeclaration"],
fields: {
assertions: {
optional: true,
@@ -1316,7 +1290,6 @@ defineType("ClassMethod", {
});
defineType("ObjectPattern", {
visitor: ["properties", "typeAnnotation", "decorators"],
-
builder: ["properties"],
aliases: ["Pattern", "PatternLike", "LVal"],
fields: Object.assign({}, patternLikeCommon(), {
@@ -1404,8 +1377,7 @@ defineType("TemplateLiteral", {
validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("TemplateElement")))
},
expressions: {
- validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Expression",
- "TSType")), function (node, key, val) {
+ validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Expression", "TSType")), function (node, key, val) {
if (node.quasis.length !== val.length + 1) {
throw new TypeError(`Number of ${node.type} quasis should be exactly one more than the number of expressions.\nExpected ${val.length + 1} quasis but got ${node.quasis.length}`);
}
@@ -1435,7 +1407,6 @@ defineType("YieldExpression", {
}
}
});
-
defineType("AwaitExpression", {
builder: ["argument"],
visitor: ["argument"],
@@ -1446,11 +1417,9 @@ defineType("AwaitExpression", {
}
}
});
-
defineType("Import", {
aliases: ["Expression"]
});
-
defineType("BigIntLiteral", {
builder: ["value"],
fields: {
@@ -1484,8 +1453,7 @@ defineType("OptionalMemberExpression", {
const validator = Object.assign(function (node, key, val) {
const validator = node.computed ? computed : normal;
validator(node, key, val);
- },
- {
+ }, {
oneOfNodeTypes: ["Expression", "Identifier"]
});
return validator;
@@ -1523,7 +1491,6 @@ defineType("OptionalCallExpression", {
}
}
});
-
defineType("ClassProperty", {
visitor: ["key", "value", "typeAnnotation", "decorators"],
builder: ["key", "value", "typeAnnotation", "decorators", "computed", "static"],
@@ -1538,8 +1505,7 @@ defineType("ClassProperty", {
optional: true
},
typeAnnotation: {
- validate: (0, _utils.assertNodeType)("TypeAnnotation", "TSTypeAnnotation",
- "Noop"),
+ validate: (0, _utils.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"),
optional: true
},
decorators: {
@@ -1584,8 +1550,7 @@ defineType("ClassAccessorProperty", {
optional: true
},
typeAnnotation: {
- validate: (0, _utils.assertNodeType)("TypeAnnotation", "TSTypeAnnotation",
- "Noop"),
+ validate: (0, _utils.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"),
optional: true
},
decorators: {
@@ -1619,8 +1584,7 @@ defineType("ClassPrivateProperty", {
optional: true
},
typeAnnotation: {
- validate: (0, _utils.assertNodeType)("TypeAnnotation", "TSTypeAnnotation",
- "Noop"),
+ validate: (0, _utils.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"),
optional: true
},
decorators: {
diff --git a/tools/node_modules/eslint/node_modules/@babel/types/lib/definitions/deprecated-aliases.js b/tools/node_modules/eslint/node_modules/@babel/types/lib/definitions/deprecated-aliases.js
new file mode 100644
index 0000000000..6c04ed6166
--- /dev/null
+++ b/tools/node_modules/eslint/node_modules/@babel/types/lib/definitions/deprecated-aliases.js
@@ -0,0 +1,12 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports.DEPRECATED_ALIASES = void 0;
+const DEPRECATED_ALIASES = {
+ ModuleDeclaration: "ImportOrExportDeclaration"
+};
+exports.DEPRECATED_ALIASES = DEPRECATED_ALIASES;
+
+//# sourceMappingURL=deprecated-aliases.js.map
diff --git a/tools/node_modules/eslint/node_modules/@babel/types/lib/definitions/experimental.js b/tools/node_modules/eslint/node_modules/@babel/types/lib/definitions/experimental.js
index 947068086b..2783bbb4e4 100644
--- a/tools/node_modules/eslint/node_modules/@babel/types/lib/definitions/experimental.js
+++ b/tools/node_modules/eslint/node_modules/@babel/types/lib/definitions/experimental.js
@@ -95,7 +95,6 @@ var _utils = require("./utils");
},
aliases: ["Expression", "Pureish", "Literal", "Immutable"]
});
-
(0, _utils.default)("ModuleExpression", {
visitor: ["body"],
fields: {
@@ -105,11 +104,9 @@ var _utils = require("./utils");
},
aliases: ["Expression"]
});
-
(0, _utils.default)("TopicReference", {
aliases: ["Expression"]
});
-
(0, _utils.default)("PipelineTopicExpression", {
builder: ["expression"],
visitor: ["expression"],
diff --git a/tools/node_modules/eslint/node_modules/@babel/types/lib/definitions/flow.js b/tools/node_modules/eslint/node_modules/@babel/types/lib/definitions/flow.js
index 475324c926..fa4218fd0d 100644
--- a/tools/node_modules/eslint/node_modules/@babel/types/lib/definitions/flow.js
+++ b/tools/node_modules/eslint/node_modules/@babel/types/lib/definitions/flow.js
@@ -390,7 +390,6 @@ defineType("Variance", {
defineType("VoidTypeAnnotation", {
aliases: ["FlowType", "FlowBaseAnnotation"]
});
-
defineType("EnumDeclaration", {
aliases: ["Statement", "Declaration"],
visitor: ["id", "body"],
diff --git a/tools/node_modules/eslint/node_modules/@babel/types/lib/definitions/index.js b/tools/node_modules/eslint/node_modules/@babel/types/lib/definitions/index.js
index 36e7b2ef49..f777bb8d9e 100644
--- a/tools/node_modules/eslint/node_modules/@babel/types/lib/definitions/index.js
+++ b/tools/node_modules/eslint/node_modules/@babel/types/lib/definitions/index.js
@@ -15,6 +15,12 @@ Object.defineProperty(exports, "BUILDER_KEYS", {
return _utils.BUILDER_KEYS;
}
});
+Object.defineProperty(exports, "DEPRECATED_ALIASES", {
+ enumerable: true,
+ get: function () {
+ return _deprecatedAliases.DEPRECATED_ALIASES;
+ }
+});
Object.defineProperty(exports, "DEPRECATED_KEYS", {
enumerable: true,
get: function () {
@@ -73,6 +79,10 @@ require("./experimental");
require("./typescript");
var _utils = require("./utils");
var _placeholders = require("./placeholders");
+var _deprecatedAliases = require("./deprecated-aliases");
+Object.keys(_deprecatedAliases.DEPRECATED_ALIASES).forEach(deprecatedAlias => {
+ _utils.FLIPPED_ALIAS_KEYS[deprecatedAlias] = _utils.FLIPPED_ALIAS_KEYS[_deprecatedAliases.DEPRECATED_ALIASES[deprecatedAlias]];
+});
_toFastProperties(_utils.VISITOR_KEYS);
_toFastProperties(_utils.ALIAS_KEYS);
_toFastProperties(_utils.FLIPPED_ALIAS_KEYS);
diff --git a/tools/node_modules/eslint/node_modules/@babel/types/lib/definitions/typescript.js b/tools/node_modules/eslint/node_modules/@babel/types/lib/definitions/typescript.js
index bbd2565b1c..3a90a6ba3f 100644
--- a/tools/node_modules/eslint/node_modules/@babel/types/lib/definitions/typescript.js
+++ b/tools/node_modules/eslint/node_modules/@babel/types/lib/definitions/typescript.js
@@ -7,13 +7,11 @@ const defineType = (0, _utils.defineAliasedType)("TypeScript");
const bool = (0, _utils.assertValueType)("boolean");
const tSFunctionTypeAnnotationCommon = () => ({
returnType: {
- validate:
- (0, _utils.assertNodeType)("TSTypeAnnotation", "Noop"),
+ validate: (0, _utils.assertNodeType)("TSTypeAnnotation", "Noop"),
optional: true
},
typeParameters: {
- validate:
- (0, _utils.assertNodeType)("TSTypeParameterDeclaration", "Noop"),
+ validate: (0, _utils.assertNodeType)("TSTypeParameterDeclaration", "Noop"),
optional: true
}
});
@@ -474,6 +472,10 @@ defineType("TSTypeParameter", {
validate: (0, _utils.assertValueType)("boolean"),
optional: true
},
+ const: {
+ validate: (0, _utils.assertValueType)("boolean"),
+ optional: true
+ },
constraint: {
validate: (0, _utils.assertNodeType)("TSType"),
optional: true
diff --git a/tools/node_modules/eslint/node_modules/@babel/types/lib/definitions/utils.js b/tools/node_modules/eslint/node_modules/@babel/types/lib/definitions/utils.js
index 13a6755966..d986781d8f 100644
--- a/tools/node_modules/eslint/node_modules/@babel/types/lib/definitions/utils.js
+++ b/tools/node_modules/eslint/node_modules/@babel/types/lib/definitions/utils.js
@@ -197,7 +197,6 @@ function chain(...fns) {
const validTypeOpts = ["aliases", "builder", "deprecatedAlias", "fields", "inherits", "visitor", "validate"];
const validFieldKeys = ["default", "optional", "validate"];
const store = {};
-
function defineAliasedType(...aliases) {
return (type, opts = {}) => {
let defined = opts.aliases;
@@ -244,7 +243,6 @@ function defineType(type, opts = {}) {
if (opts.deprecatedAlias) {
DEPRECATED_KEYS[opts.deprecatedAlias] = type;
}
-
for (const key of visitor.concat(builder)) {
fields[key] = fields[key] || {};
}
diff --git a/tools/node_modules/eslint/node_modules/@babel/types/lib/index.js b/tools/node_modules/eslint/node_modules/@babel/types/lib/index.js
index fd2f395ff9..b9b3187b9c 100644
--- a/tools/node_modules/eslint/node_modules/@babel/types/lib/index.js
+++ b/tools/node_modules/eslint/node_modules/@babel/types/lib/index.js
@@ -60,8 +60,15 @@ var _exportNames = {
isVar: true,
matchesPattern: true,
validate: true,
- buildMatchMemberExpression: true
+ buildMatchMemberExpression: true,
+ __internal__deprecationWarning: true
};
+Object.defineProperty(exports, "__internal__deprecationWarning", {
+ enumerable: true,
+ get: function () {
+ return _deprecationWarning.default;
+ }
+});
Object.defineProperty(exports, "addComment", {
enumerable: true,
get: function () {
@@ -564,7 +571,7 @@ Object.keys(_generated5).forEach(function (key) {
}
});
});
-
+var _deprecationWarning = require("./utils/deprecationWarning");
const react = {
isReactComponent: _isReactComponent.default,
isCompatTag: _isCompatTag.default,
diff --git a/tools/node_modules/eslint/node_modules/@babel/types/lib/index.js.flow b/tools/node_modules/eslint/node_modules/@babel/types/lib/index.js.flow
index 19f0fa7381..51816a8d3c 100644
--- a/tools/node_modules/eslint/node_modules/@babel/types/lib/index.js.flow
+++ b/tools/node_modules/eslint/node_modules/@babel/types/lib/index.js.flow
@@ -379,6 +379,7 @@ declare class BabelNodeAssignmentPattern extends BabelNode {
left: BabelNodeIdentifier | BabelNodeObjectPattern | BabelNodeArrayPattern | BabelNodeMemberExpression | BabelNodeTSAsExpression | BabelNodeTSSatisfiesExpression | BabelNodeTSTypeAssertion | BabelNodeTSNonNullExpression;
right: BabelNodeExpression;
decorators?: Array<BabelNodeDecorator>;
+ optional?: boolean;
typeAnnotation?: BabelNodeTypeAnnotation | BabelNodeTSTypeAnnotation | BabelNodeNoop;
}
@@ -522,6 +523,7 @@ declare class BabelNodeObjectPattern extends BabelNode {
type: "ObjectPattern";
properties: Array<BabelNodeRestElement | BabelNodeObjectProperty>;
decorators?: Array<BabelNodeDecorator>;
+ optional?: boolean;
typeAnnotation?: BabelNodeTypeAnnotation | BabelNodeTSTypeAnnotation | BabelNodeNoop;
}
@@ -1647,7 +1649,7 @@ type BabelNodeProperty = BabelNodeObjectProperty | BabelNodeClassProperty | Babe
type BabelNodeUnaryLike = BabelNodeUnaryExpression | BabelNodeSpreadElement;
type BabelNodePattern = BabelNodeAssignmentPattern | BabelNodeArrayPattern | BabelNodeObjectPattern;
type BabelNodeClass = BabelNodeClassExpression | BabelNodeClassDeclaration;
-type BabelNodeModuleDeclaration = BabelNodeExportAllDeclaration | BabelNodeExportDefaultDeclaration | BabelNodeExportNamedDeclaration | BabelNodeImportDeclaration;
+type BabelNodeImportOrExportDeclaration = BabelNodeExportAllDeclaration | BabelNodeExportDefaultDeclaration | BabelNodeExportNamedDeclaration | BabelNodeImportDeclaration;
type BabelNodeExportDeclaration = BabelNodeExportAllDeclaration | BabelNodeExportDefaultDeclaration | BabelNodeExportNamedDeclaration;
type BabelNodeModuleSpecifier = BabelNodeExportSpecifier | BabelNodeImportDefaultSpecifier | BabelNodeImportNamespaceSpecifier | BabelNodeImportSpecifier | BabelNodeExportNamespaceSpecifier | BabelNodeExportDefaultSpecifier;
type BabelNodeAccessor = BabelNodeClassAccessorProperty;
@@ -1665,6 +1667,7 @@ type BabelNodeTypeScript = BabelNodeTSParameterProperty | BabelNodeTSDeclareFunc
type BabelNodeTSTypeElement = BabelNodeTSCallSignatureDeclaration | BabelNodeTSConstructSignatureDeclaration | BabelNodeTSPropertySignature | BabelNodeTSMethodSignature | BabelNodeTSIndexSignature;
type BabelNodeTSType = BabelNodeTSAnyKeyword | BabelNodeTSBooleanKeyword | BabelNodeTSBigIntKeyword | BabelNodeTSIntrinsicKeyword | BabelNodeTSNeverKeyword | BabelNodeTSNullKeyword | BabelNodeTSNumberKeyword | BabelNodeTSObjectKeyword | BabelNodeTSStringKeyword | BabelNodeTSSymbolKeyword | BabelNodeTSUndefinedKeyword | BabelNodeTSUnknownKeyword | BabelNodeTSVoidKeyword | BabelNodeTSThisType | BabelNodeTSFunctionType | BabelNodeTSConstructorType | BabelNodeTSTypeReference | BabelNodeTSTypePredicate | BabelNodeTSTypeQuery | BabelNodeTSTypeLiteral | BabelNodeTSArrayType | BabelNodeTSTupleType | BabelNodeTSOptionalType | BabelNodeTSRestType | BabelNodeTSUnionType | BabelNodeTSIntersectionType | BabelNodeTSConditionalType | BabelNodeTSInferType | BabelNodeTSParenthesizedType | BabelNodeTSTypeOperator | BabelNodeTSIndexedAccessType | BabelNodeTSMappedType | BabelNodeTSLiteralType | BabelNodeTSExpressionWithTypeArguments | BabelNodeTSImportType;
type BabelNodeTSBaseType = BabelNodeTSAnyKeyword | BabelNodeTSBooleanKeyword | BabelNodeTSBigIntKeyword | BabelNodeTSIntrinsicKeyword | BabelNodeTSNeverKeyword | BabelNodeTSNullKeyword | BabelNodeTSNumberKeyword | BabelNodeTSObjectKeyword | BabelNodeTSStringKeyword | BabelNodeTSSymbolKeyword | BabelNodeTSUndefinedKeyword | BabelNodeTSUnknownKeyword | BabelNodeTSVoidKeyword | BabelNodeTSThisType | BabelNodeTSLiteralType;
+type BabelNodeModuleDeclaration = BabelNodeExportAllDeclaration | BabelNodeExportDefaultDeclaration | BabelNodeExportNamedDeclaration | BabelNodeImportDeclaration;
declare module "@babel/types" {
declare export function arrayExpression(elements?: Array<null | BabelNodeExpression | BabelNodeSpreadElement>): BabelNodeArrayExpression;
@@ -2478,8 +2481,8 @@ declare module "@babel/types" {
declare export function assertPattern(node: ?Object, opts?: ?Object): void
declare export function isClass(node: ?Object, opts?: ?Object): boolean
declare export function assertClass(node: ?Object, opts?: ?Object): void
- declare export function isModuleDeclaration(node: ?Object, opts?: ?Object): boolean
- declare export function assertModuleDeclaration(node: ?Object, opts?: ?Object): void
+ declare export function isImportOrExportDeclaration(node: ?Object, opts?: ?Object): boolean
+ declare export function assertImportOrExportDeclaration(node: ?Object, opts?: ?Object): void
declare export function isExportDeclaration(node: ?Object, opts?: ?Object): boolean
declare export function assertExportDeclaration(node: ?Object, opts?: ?Object): void
declare export function isModuleSpecifier(node: ?Object, opts?: ?Object): boolean
@@ -2514,6 +2517,8 @@ declare module "@babel/types" {
declare export function assertTSType(node: ?Object, opts?: ?Object): void
declare export function isTSBaseType(node: ?Object, opts?: ?Object): boolean
declare export function assertTSBaseType(node: ?Object, opts?: ?Object): void
+ declare export function isModuleDeclaration(node: ?Object, opts?: ?Object): boolean
+ declare export function assertModuleDeclaration(node: ?Object, opts?: ?Object): void
declare export function isNumberLiteral(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeNumericLiteral)
declare export function assertNumberLiteral(node: ?Object, opts?: ?Object): void
declare export function isRegexLiteral(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeRegExpLiteral)
diff --git a/tools/node_modules/eslint/node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js b/tools/node_modules/eslint/node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js
index c63f4edf11..3d3347bb91 100644
--- a/tools/node_modules/eslint/node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js
+++ b/tools/node_modules/eslint/node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js
@@ -8,22 +8,17 @@ var _generated = require("../../validators/generated");
function getQualifiedName(node) {
return (0, _generated.isIdentifier)(node) ? node.name : `${node.id.name}.${getQualifiedName(node.qualification)}`;
}
-
-function removeTypeDuplicates(
-nodes) {
+function removeTypeDuplicates(nodes) {
const generics = new Map();
const bases = new Map();
-
const typeGroups = new Set();
const types = [];
for (let i = 0; i < nodes.length; i++) {
const node = nodes[i];
if (!node) continue;
-
if (types.indexOf(node) >= 0) {
continue;
}
-
if ((0, _generated.isAnyTypeAnnotation)(node)) {
return [node];
}
@@ -38,7 +33,6 @@ nodes) {
}
continue;
}
-
if ((0, _generated.isGenericTypeAnnotation)(node)) {
const name = getQualifiedName(node.id);
if (generics.has(name)) {
@@ -57,11 +51,9 @@ nodes) {
}
types.push(node);
}
-
for (const [, baseType] of bases) {
types.push(baseType);
}
-
for (const [, genericName] of generics) {
types.push(genericName);
}
diff --git a/tools/node_modules/eslint/node_modules/@babel/types/lib/modifications/inherits.js b/tools/node_modules/eslint/node_modules/@babel/types/lib/modifications/inherits.js
index 4dc84252e8..b7da022ab5 100644
--- a/tools/node_modules/eslint/node_modules/@babel/types/lib/modifications/inherits.js
+++ b/tools/node_modules/eslint/node_modules/@babel/types/lib/modifications/inherits.js
@@ -8,19 +8,16 @@ var _constants = require("../constants");
var _inheritsComments = require("../comments/inheritsComments");
function inherits(child, parent) {
if (!child || !parent) return child;
-
for (const key of _constants.INHERIT_KEYS.optional) {
if (child[key] == null) {
child[key] = parent[key];
}
}
-
for (const key of Object.keys(parent)) {
if (key[0] === "_" && key !== "__clone") {
child[key] = parent[key];
}
}
-
for (const key of _constants.INHERIT_KEYS.force) {
child[key] = parent[key];
}
diff --git a/tools/node_modules/eslint/node_modules/@babel/types/lib/modifications/removeProperties.js b/tools/node_modules/eslint/node_modules/@babel/types/lib/modifications/removeProperties.js
index f96b248270..22e8c872ba 100644
--- a/tools/node_modules/eslint/node_modules/@babel/types/lib/modifications/removeProperties.js
+++ b/tools/node_modules/eslint/node_modules/@babel/types/lib/modifications/removeProperties.js
@@ -5,9 +5,7 @@ Object.defineProperty(exports, "__esModule", {
});
exports.default = removeProperties;
var _constants = require("../constants");
-const CLEAR_KEYS = ["tokens",
-"start", "end", "loc",
-"raw", "rawValue"];
+const CLEAR_KEYS = ["tokens", "start", "end", "loc", "raw", "rawValue"];
const CLEAR_KEYS_PLUS_COMMENTS = [..._constants.COMMENT_KEYS, "comments", ...CLEAR_KEYS];
function removeProperties(node, opts = {}) {
const map = opts.preserveComments ? CLEAR_KEYS : CLEAR_KEYS_PLUS_COMMENTS;
diff --git a/tools/node_modules/eslint/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js b/tools/node_modules/eslint/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js
index 6613a8b695..87c3a64601 100644
--- a/tools/node_modules/eslint/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js
+++ b/tools/node_modules/eslint/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js
@@ -8,25 +8,20 @@ var _generated = require("../../validators/generated");
function getQualifiedName(node) {
return (0, _generated.isIdentifier)(node) ? node.name : `${node.right.name}.${getQualifiedName(node.left)}`;
}
-
function removeTypeDuplicates(nodes) {
const generics = new Map();
const bases = new Map();
-
const typeGroups = new Set();
const types = [];
for (let i = 0; i < nodes.length; i++) {
const node = nodes[i];
if (!node) continue;
-
if (types.indexOf(node) >= 0) {
continue;
}
-
if ((0, _generated.isTSAnyKeyword)(node)) {
return [node];
}
-
if ((0, _generated.isTSBaseType)(node)) {
bases.set(node.type, node);
continue;
@@ -38,7 +33,6 @@ function removeTypeDuplicates(nodes) {
}
continue;
}
-
if ((0, _generated.isTSTypeReference)(node) && node.typeParameters) {
const name = getQualifiedName(node.typeName);
if (generics.has(name)) {
@@ -57,11 +51,9 @@ function removeTypeDuplicates(nodes) {
}
types.push(node);
}
-
for (const [, baseType] of bases) {
types.push(baseType);
}
-
for (const [, genericName] of generics) {
types.push(genericName);
}
diff --git a/tools/node_modules/eslint/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js b/tools/node_modules/eslint/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js
index 556140e84f..19903eb911 100644
--- a/tools/node_modules/eslint/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js
+++ b/tools/node_modules/eslint/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js
@@ -11,8 +11,7 @@ function getBindingIdentifiers(node, duplicates, outerOnly) {
while (search.length) {
const id = search.shift();
if (!id) continue;
- const keys =
- getBindingIdentifiers.keys[id.type];
+ const keys = getBindingIdentifiers.keys[id.type];
if ((0, _generated.isIdentifier)(id)) {
if (duplicates) {
const _ids = ids[id.name] = ids[id.name] || [];
@@ -40,18 +39,15 @@ function getBindingIdentifiers(node, duplicates, outerOnly) {
if (keys) {
for (let i = 0; i < keys.length; i++) {
const key = keys[i];
- const nodes =
- id[key];
+ const nodes = id[key];
if (nodes) {
Array.isArray(nodes) ? search.push(...nodes) : search.push(nodes);
}
}
}
}
-
return ids;
}
-
getBindingIdentifiers.keys = {
DeclareClass: ["id"],
DeclareFunction: ["id"],
diff --git a/tools/node_modules/eslint/node_modules/@babel/types/lib/traverse/traverseFast.js b/tools/node_modules/eslint/node_modules/@babel/types/lib/traverse/traverseFast.js
index 275519afc9..2d7475e89b 100644
--- a/tools/node_modules/eslint/node_modules/@babel/types/lib/traverse/traverseFast.js
+++ b/tools/node_modules/eslint/node_modules/@babel/types/lib/traverse/traverseFast.js
@@ -12,8 +12,7 @@ function traverseFast(node, enter, opts) {
opts = opts || {};
enter(node, opts);
for (const key of keys) {
- const subNode =
- node[key];
+ const subNode = node[key];
if (Array.isArray(subNode)) {
for (const node of subNode) {
traverseFast(node, enter, opts);
diff --git a/tools/node_modules/eslint/node_modules/@babel/types/lib/utils/deprecationWarning.js b/tools/node_modules/eslint/node_modules/@babel/types/lib/utils/deprecationWarning.js
new file mode 100644
index 0000000000..1d151ddb5b
--- /dev/null
+++ b/tools/node_modules/eslint/node_modules/@babel/types/lib/utils/deprecationWarning.js
@@ -0,0 +1,30 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports.default = deprecationWarning;
+const warnings = new Set();
+function deprecationWarning(oldName, newName, prefix = "") {
+ if (warnings.has(oldName)) return;
+ warnings.add(oldName);
+ const stack = captureShortStackTrace(1, 2);
+ console.warn(`${prefix}\`${oldName}\` has been deprecated, please migrate to \`${newName}\`\n${stack}`);
+}
+function captureShortStackTrace(skip, length) {
+ const {
+ stackTraceLimit,
+ prepareStackTrace
+ } = Error;
+ let stackTrace;
+ Error.stackTraceLimit = 1 + skip + length;
+ Error.prepareStackTrace = function (err, stack) {
+ stackTrace = stack;
+ };
+ new Error().stack;
+ Error.stackTraceLimit = stackTraceLimit;
+ Error.prepareStackTrace = prepareStackTrace;
+ return stackTrace.slice(1 + skip, 1 + skip + length).map(frame => ` at ${frame}`).join("\n");
+}
+
+//# sourceMappingURL=deprecationWarning.js.map
diff --git a/tools/node_modules/eslint/node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js b/tools/node_modules/eslint/node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js
index 21ebf856f3..97a0369ae0 100644
--- a/tools/node_modules/eslint/node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js
+++ b/tools/node_modules/eslint/node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js
@@ -20,13 +20,10 @@ function cleanJSXElementLiteralChild(child, args) {
const isFirstLine = i === 0;
const isLastLine = i === lines.length - 1;
const isLastNonEmptyLine = i === lastNonEmptyLine;
-
let trimmedLine = line.replace(/\t/g, " ");
-
if (!isFirstLine) {
trimmedLine = trimmedLine.replace(/^[ ]+/, "");
}
-
if (!isLastLine) {
trimmedLine = trimmedLine.replace(/[ ]+$/, "");
}
diff --git a/tools/node_modules/eslint/node_modules/@babel/types/lib/utils/shallowEqual.js b/tools/node_modules/eslint/node_modules/@babel/types/lib/utils/shallowEqual.js
index f80b28aec5..9a1d6c7175 100644
--- a/tools/node_modules/eslint/node_modules/@babel/types/lib/utils/shallowEqual.js
+++ b/tools/node_modules/eslint/node_modules/@babel/types/lib/utils/shallowEqual.js
@@ -7,8 +7,7 @@ exports.default = shallowEqual;
function shallowEqual(actual, expected) {
const keys = Object.keys(expected);
for (const key of keys) {
- if (
- actual[key] !== expected[key]) {
+ if (actual[key] !== expected[key]) {
return false;
}
}
diff --git a/tools/node_modules/eslint/node_modules/@babel/types/lib/validators/generated/index.js b/tools/node_modules/eslint/node_modules/@babel/types/lib/validators/generated/index.js
index 9705e70001..96ab47c10d 100644
--- a/tools/node_modules/eslint/node_modules/@babel/types/lib/validators/generated/index.js
+++ b/tools/node_modules/eslint/node_modules/@babel/types/lib/validators/generated/index.js
@@ -109,6 +109,7 @@ exports.isImportAttribute = isImportAttribute;
exports.isImportDeclaration = isImportDeclaration;
exports.isImportDefaultSpecifier = isImportDefaultSpecifier;
exports.isImportNamespaceSpecifier = isImportNamespaceSpecifier;
+exports.isImportOrExportDeclaration = isImportOrExportDeclaration;
exports.isImportSpecifier = isImportSpecifier;
exports.isIndexedAccessType = isIndexedAccessType;
exports.isInferredPredicate = isInferredPredicate;
@@ -306,7 +307,7 @@ exports.isWhileStatement = isWhileStatement;
exports.isWithStatement = isWithStatement;
exports.isYieldExpression = isYieldExpression;
var _shallowEqual = require("../../utils/shallowEqual");
-
+var _deprecationWarning = require("../../utils/deprecationWarning");
function isArrayExpression(node, opts) {
if (!node) return false;
const nodeType = node.type;
@@ -3667,7 +3668,7 @@ function isClass(node, opts) {
}
return false;
}
-function isModuleDeclaration(node, opts) {
+function isImportOrExportDeclaration(node, opts) {
if (!node) return false;
const nodeType = node.type;
if ("ExportAllDeclaration" === nodeType || "ExportDefaultDeclaration" === nodeType || "ExportNamedDeclaration" === nodeType || "ImportDeclaration" === nodeType) {
@@ -3884,7 +3885,7 @@ function isTSBaseType(node, opts) {
return false;
}
function isNumberLiteral(node, opts) {
- console.trace("The node type NumberLiteral has been renamed to NumericLiteral");
+ (0, _deprecationWarning.default)("isNumberLiteral", "isNumericLiteral");
if (!node) return false;
const nodeType = node.type;
if (nodeType === "NumberLiteral") {
@@ -3897,7 +3898,7 @@ function isNumberLiteral(node, opts) {
return false;
}
function isRegexLiteral(node, opts) {
- console.trace("The node type RegexLiteral has been renamed to RegExpLiteral");
+ (0, _deprecationWarning.default)("isRegexLiteral", "isRegExpLiteral");
if (!node) return false;
const nodeType = node.type;
if (nodeType === "RegexLiteral") {
@@ -3910,7 +3911,7 @@ function isRegexLiteral(node, opts) {
return false;
}
function isRestProperty(node, opts) {
- console.trace("The node type RestProperty has been renamed to RestElement");
+ (0, _deprecationWarning.default)("isRestProperty", "isRestElement");
if (!node) return false;
const nodeType = node.type;
if (nodeType === "RestProperty") {
@@ -3923,7 +3924,7 @@ function isRestProperty(node, opts) {
return false;
}
function isSpreadProperty(node, opts) {
- console.trace("The node type SpreadProperty has been renamed to SpreadElement");
+ (0, _deprecationWarning.default)("isSpreadProperty", "isSpreadElement");
if (!node) return false;
const nodeType = node.type;
if (nodeType === "SpreadProperty") {
@@ -3935,5 +3936,9 @@ function isSpreadProperty(node, opts) {
}
return false;
}
+function isModuleDeclaration(node, opts) {
+ (0, _deprecationWarning.default)("isModuleDeclaration", "isImportOrExportDeclaration");
+ return isImportOrExportDeclaration(node, opts);
+}
//# sourceMappingURL=index.js.map
diff --git a/tools/node_modules/eslint/node_modules/@babel/types/lib/validators/isBinding.js b/tools/node_modules/eslint/node_modules/@babel/types/lib/validators/isBinding.js
index ea61c0a0fa..5d996de6d1 100644
--- a/tools/node_modules/eslint/node_modules/@babel/types/lib/validators/isBinding.js
+++ b/tools/node_modules/eslint/node_modules/@babel/types/lib/validators/isBinding.js
@@ -9,13 +9,11 @@ function isBinding(node, parent, grandparent) {
if (grandparent && node.type === "Identifier" && parent.type === "ObjectProperty" && grandparent.type === "ObjectExpression") {
return false;
}
- const keys =
- _getBindingIdentifiers.default.keys[parent.type];
+ const keys = _getBindingIdentifiers.default.keys[parent.type];
if (keys) {
for (let i = 0; i < keys.length; i++) {
const key = keys[i];
- const val =
- parent[key];
+ const val = parent[key];
if (Array.isArray(val)) {
if (val.indexOf(node) >= 0) return true;
} else {
diff --git a/tools/node_modules/eslint/node_modules/@babel/types/lib/validators/isLet.js b/tools/node_modules/eslint/node_modules/@babel/types/lib/validators/isLet.js
index c30a270d7e..28152ef0b3 100644
--- a/tools/node_modules/eslint/node_modules/@babel/types/lib/validators/isLet.js
+++ b/tools/node_modules/eslint/node_modules/@babel/types/lib/validators/isLet.js
@@ -7,8 +7,7 @@ exports.default = isLet;
var _generated = require("./generated");
var _constants = require("../constants");
function isLet(node) {
- return (0, _generated.isVariableDeclaration)(node) && (node.kind !== "var" ||
- node[_constants.BLOCK_SCOPED_SYMBOL]);
+ return (0, _generated.isVariableDeclaration)(node) && (node.kind !== "var" || node[_constants.BLOCK_SCOPED_SYMBOL]);
}
//# sourceMappingURL=isLet.js.map
diff --git a/tools/node_modules/eslint/node_modules/@babel/types/lib/validators/isNodesEquivalent.js b/tools/node_modules/eslint/node_modules/@babel/types/lib/validators/isNodesEquivalent.js
index 172c3a6ebc..74aa51f27e 100644
--- a/tools/node_modules/eslint/node_modules/@babel/types/lib/validators/isNodesEquivalent.js
+++ b/tools/node_modules/eslint/node_modules/@babel/types/lib/validators/isNodesEquivalent.js
@@ -15,8 +15,7 @@ function isNodesEquivalent(a, b) {
const fields = Object.keys(_definitions.NODE_FIELDS[a.type] || a.type);
const visitorKeys = _definitions.VISITOR_KEYS[a.type];
for (const field of fields) {
- const val_a =
- a[field];
+ const val_a = a[field];
const val_b = b[field];
if (typeof val_a !== typeof val_b) {
return false;
diff --git a/tools/node_modules/eslint/node_modules/@babel/types/lib/validators/isReferenced.js b/tools/node_modules/eslint/node_modules/@babel/types/lib/validators/isReferenced.js
index 1d9ee86758..f8084f1ac0 100644
--- a/tools/node_modules/eslint/node_modules/@babel/types/lib/validators/isReferenced.js
+++ b/tools/node_modules/eslint/node_modules/@babel/types/lib/validators/isReferenced.js
@@ -16,13 +16,10 @@ function isReferenced(node, parent, grandparent) {
return parent.object === node;
case "VariableDeclarator":
return parent.init === node;
-
case "ArrowFunctionExpression":
return parent.body === node;
-
case "PrivateName":
return false;
-
case "ClassMethod":
case "ClassPrivateMethod":
case "ObjectMethod":
@@ -30,7 +27,6 @@ function isReferenced(node, parent, grandparent) {
return !!parent.computed;
}
return false;
-
case "ObjectProperty":
if (parent.key === node) {
return !!parent.computed;
@@ -44,67 +40,50 @@ function isReferenced(node, parent, grandparent) {
return true;
case "ClassPrivateProperty":
return parent.key !== node;
-
case "ClassDeclaration":
case "ClassExpression":
return parent.superClass === node;
-
case "AssignmentExpression":
return parent.right === node;
-
case "AssignmentPattern":
return parent.right === node;
-
case "LabeledStatement":
return false;
-
case "CatchClause":
return false;
-
case "RestElement":
return false;
case "BreakStatement":
case "ContinueStatement":
return false;
-
case "FunctionDeclaration":
case "FunctionExpression":
return false;
-
case "ExportNamespaceSpecifier":
case "ExportDefaultSpecifier":
return false;
-
case "ExportSpecifier":
if (grandparent != null && grandparent.source) {
return false;
}
return parent.local === node;
-
case "ImportDefaultSpecifier":
case "ImportNamespaceSpecifier":
case "ImportSpecifier":
return false;
-
case "ImportAttribute":
return false;
-
case "JSXAttribute":
return false;
-
case "ObjectPattern":
case "ArrayPattern":
return false;
-
case "MetaProperty":
return false;
-
case "ObjectTypeProperty":
return parent.key !== node;
-
case "TSEnumMember":
return parent.id !== node;
-
case "TSPropertySignature":
if (parent.key === node) {
return !!parent.computed;
diff --git a/tools/node_modules/eslint/node_modules/@babel/types/lib/validators/isScope.js b/tools/node_modules/eslint/node_modules/@babel/types/lib/validators/isScope.js
index 066837ca21..8fb0157cd8 100644
--- a/tools/node_modules/eslint/node_modules/@babel/types/lib/validators/isScope.js
+++ b/tools/node_modules/eslint/node_modules/@babel/types/lib/validators/isScope.js
@@ -9,7 +9,6 @@ function isScope(node, parent) {
if ((0, _generated.isBlockStatement)(node) && ((0, _generated.isFunction)(parent) || (0, _generated.isCatchClause)(parent))) {
return false;
}
-
if ((0, _generated.isPattern)(node) && ((0, _generated.isFunction)(parent) || (0, _generated.isCatchClause)(parent))) {
return true;
}
diff --git a/tools/node_modules/eslint/node_modules/@babel/types/lib/validators/isSpecifierDefault.js b/tools/node_modules/eslint/node_modules/@babel/types/lib/validators/isSpecifierDefault.js
index 2606b96ddd..f5fc3b5139 100644
--- a/tools/node_modules/eslint/node_modules/@babel/types/lib/validators/isSpecifierDefault.js
+++ b/tools/node_modules/eslint/node_modules/@babel/types/lib/validators/isSpecifierDefault.js
@@ -6,8 +6,7 @@ Object.defineProperty(exports, "__esModule", {
exports.default = isSpecifierDefault;
var _generated = require("./generated");
function isSpecifierDefault(specifier) {
- return (0, _generated.isImportDefaultSpecifier)(specifier) ||
- (0, _generated.isIdentifier)(specifier.imported || specifier.exported, {
+ return (0, _generated.isImportDefaultSpecifier)(specifier) || (0, _generated.isIdentifier)(specifier.imported || specifier.exported, {
name: "default"
});
}
diff --git a/tools/node_modules/eslint/node_modules/@babel/types/lib/validators/isType.js b/tools/node_modules/eslint/node_modules/@babel/types/lib/validators/isType.js
index c81149607b..444b51ce19 100644
--- a/tools/node_modules/eslint/node_modules/@babel/types/lib/validators/isType.js
+++ b/tools/node_modules/eslint/node_modules/@babel/types/lib/validators/isType.js
@@ -7,7 +7,6 @@ exports.default = isType;
var _definitions = require("../definitions");
function isType(nodeType, targetType) {
if (nodeType === targetType) return true;
-
if (_definitions.ALIAS_KEYS[targetType]) return false;
const aliases = _definitions.FLIPPED_ALIAS_KEYS[targetType];
if (aliases) {
diff --git a/tools/node_modules/eslint/node_modules/@babel/types/lib/validators/isValidES3Identifier.js b/tools/node_modules/eslint/node_modules/@babel/types/lib/validators/isValidES3Identifier.js
index a4a0413335..36e7ae5388 100644
--- a/tools/node_modules/eslint/node_modules/@babel/types/lib/validators/isValidES3Identifier.js
+++ b/tools/node_modules/eslint/node_modules/@babel/types/lib/validators/isValidES3Identifier.js
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
exports.default = isValidES3Identifier;
var _isValidIdentifier = require("./isValidIdentifier");
const RESERVED_WORDS_ES3_ONLY = new Set(["abstract", "boolean", "byte", "char", "double", "enum", "final", "float", "goto", "implements", "int", "interface", "long", "native", "package", "private", "protected", "public", "short", "static", "synchronized", "throws", "transient", "volatile"]);
-
function isValidES3Identifier(name) {
return (0, _isValidIdentifier.default)(name) && !RESERVED_WORDS_ES3_ONLY.has(name);
}
diff --git a/tools/node_modules/eslint/node_modules/@babel/types/lib/validators/isVar.js b/tools/node_modules/eslint/node_modules/@babel/types/lib/validators/isVar.js
index f4ac67c060..6243b3ad2e 100644
--- a/tools/node_modules/eslint/node_modules/@babel/types/lib/validators/isVar.js
+++ b/tools/node_modules/eslint/node_modules/@babel/types/lib/validators/isVar.js
@@ -9,8 +9,7 @@ var _constants = require("../constants");
function isVar(node) {
return (0, _generated.isVariableDeclaration)(node, {
kind: "var"
- }) && !
- node[_constants.BLOCK_SCOPED_SYMBOL];
+ }) && !node[_constants.BLOCK_SCOPED_SYMBOL];
}
//# sourceMappingURL=isVar.js.map