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

@@ -17,8 +17,9 @@ const vk = require("eslint-visitor-keys");
//-----------------------------------------------------------------------------
/**
* @import { ESQueryParsedSelector } from "./esquery.js";
* @import { Language, SourceCode } from "@eslint/core";
* @import { ESQueryOptions } from "esquery";
* @import { ESQueryParsedSelector } from "./esquery.js";
* @import { SourceCodeVisitor } from "./source-code-visitor.js";
*/
@@ -47,11 +48,10 @@ class ESQueryHelper {
* Creates a new instance.
* @param {SourceCodeVisitor} visitor The visitor containing the functions to call.
* @param {ESQueryOptions} esqueryOptions `esquery` options for traversing custom nodes.
* @returns {NodeEventGenerator} new instance
*/
constructor(visitor, esqueryOptions) {
/**
* The emitter to use during traversal.
* The visitor to use during traversal.
* @type {SourceCodeVisitor}
*/
this.visitor = visitor;
@@ -288,7 +288,10 @@ class SourceCodeTraverser {
false,
)
.forEach(selector => {
visitor.callSync(selector, step.target);
visitor.callSync(
selector,
...(step.args ?? [step.target]),
);
});
currentAncestry.unshift(step.target);
} else {
@@ -300,7 +303,10 @@ class SourceCodeTraverser {
true,
)
.forEach(selector => {
visitor.callSync(selector, step.target);
visitor.callSync(
selector,
...(step.args ?? [step.target]),
);
});
}
} catch (err) {