Update Bot
This commit is contained in:
19
node_modules/@eslint-community/eslint-utils/index.mjs
generated
vendored
19
node_modules/@eslint-community/eslint-utils/index.mjs
generated
vendored
@@ -262,10 +262,9 @@ function getFunctionHeadLocation(node, sourceCode) {
|
||||
start = arrowToken.loc.start;
|
||||
end = arrowToken.loc.end;
|
||||
} else if (
|
||||
parent &&
|
||||
(parent.type === "Property" ||
|
||||
parent.type === "MethodDefinition" ||
|
||||
parent.type === "PropertyDefinition")
|
||||
parent.type === "Property" ||
|
||||
parent.type === "MethodDefinition" ||
|
||||
parent.type === "PropertyDefinition"
|
||||
) {
|
||||
start = /** @type {SourceLocation} */ (parent.loc).start;
|
||||
end = getOpeningParenOfParams(node, sourceCode).loc.start;
|
||||
@@ -1303,11 +1302,6 @@ function getPropertyName(node, initialScope) {
|
||||
// eslint-disable-next-line complexity
|
||||
function getFunctionNameWithKind(node, sourceCode) {
|
||||
const parent = /** @type {RuleNode} */ (node).parent;
|
||||
|
||||
if (!parent) {
|
||||
return ""
|
||||
}
|
||||
|
||||
const tokens = [];
|
||||
const isObjectMethod = parent.type === "Property" && parent.value === node;
|
||||
const isClassMethod =
|
||||
@@ -1661,10 +1655,6 @@ function hasSideEffect(node, sourceCode, options = {}) {
|
||||
function getParentSyntaxParen(node, sourceCode) {
|
||||
const parent = /** @type {RuleNode} */ (node).parent;
|
||||
|
||||
if (!parent) {
|
||||
return null
|
||||
}
|
||||
|
||||
switch (parent.type) {
|
||||
case "CallExpression":
|
||||
case "NewExpression":
|
||||
@@ -2318,9 +2308,6 @@ class ReferenceTracker {
|
||||
}
|
||||
|
||||
const parent = /** @type {RuleNode} */ (node).parent;
|
||||
if (!parent) {
|
||||
return
|
||||
}
|
||||
if (parent.type === "MemberExpression") {
|
||||
if (parent.object === node) {
|
||||
const key = getPropertyName(parent);
|
||||
|
||||
Reference in New Issue
Block a user