Update Bot

This commit is contained in:
2026-03-15 11:58:43 +01:00
parent b67c111ffc
commit cd99275933
560 changed files with 23173 additions and 55113 deletions

View File

@@ -266,10 +266,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;
@@ -1307,11 +1306,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 =
@@ -1665,10 +1659,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":
@@ -2322,9 +2312,6 @@ class ReferenceTracker {
}
const parent = /** @type {RuleNode} */ (node).parent;
if (!parent) {
return
}
if (parent.type === "MemberExpression") {
if (parent.object === node) {
const key = getPropertyName(parent);

File diff suppressed because one or more lines are too long

View File

@@ -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);

File diff suppressed because one or more lines are too long

View File

@@ -1,6 +1,6 @@
{
"name": "@eslint-community/eslint-utils",
"version": "4.9.1",
"version": "4.9.0",
"description": "Utilities for ESLint plugins.",
"keywords": [
"eslint"