Update Bot (j'ai plus le repo sur GitHub)

Qui c'est la conne qui a delete le repo sur GitHub? C'EST MOIIIII
This commit is contained in:
2026-02-09 14:36:26 +01:00
parent eab4419e12
commit ad2014b7b2
586 changed files with 58986 additions and 25205 deletions

View File

@@ -262,9 +262,10 @@ function getFunctionHeadLocation(node, sourceCode) {
start = arrowToken.loc.start;
end = arrowToken.loc.end;
} else if (
parent.type === "Property" ||
parent.type === "MethodDefinition" ||
parent.type === "PropertyDefinition"
parent &&
(parent.type === "Property" ||
parent.type === "MethodDefinition" ||
parent.type === "PropertyDefinition")
) {
start = /** @type {SourceLocation} */ (parent.loc).start;
end = getOpeningParenOfParams(node, sourceCode).loc.start;
@@ -1302,6 +1303,11 @@ 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 =
@@ -1655,6 +1661,10 @@ 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":
@@ -2308,6 +2318,9 @@ class ReferenceTracker {
}
const parent = /** @type {RuleNode} */ (node).parent;
if (!parent) {
return
}
if (parent.type === "MemberExpression") {
if (parent.object === node) {
const key = getPropertyName(parent);