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

@@ -1,15 +1,17 @@
export { ObjectSchema } from "@eslint/object-schema";
export type PropertyDefinition = $eslintobjectschema.PropertyDefinition;
export type ObjectDefinition = $eslintobjectschema.ObjectDefinition;
export type ConfigObject = $typests.ConfigObject;
export type IMinimatchStatic = minimatch.IMinimatchStatic;
export type IMinimatch = minimatch.IMinimatch;
export type ObjectSchemaInstance = ObjectSchema;
export type PropertyDefinition = import("@eslint/object-schema").PropertyDefinition;
export type ObjectDefinition = import("@eslint/object-schema").ObjectDefinition;
export type ConfigObject = import("./types.ts").ConfigObject;
export type IMinimatchStatic = import("minimatch").IMinimatchStatic;
export type IMinimatch = import("minimatch").IMinimatch;
export type PathImpl = typeof import("@jsr/std__path");
export type ObjectSchemaInstance = import("@eslint/object-schema").ObjectSchema;
/**
* Represents an array of config objects and provides method for working with
* those config objects.
*/
export class ConfigArray extends Array<any> {
[x: symbol]: (config: any) => any;
/**
* Creates a new instance of ConfigArray.
* @param {Iterable|Function|Object} configs An iterable yielding config
@@ -139,7 +141,3 @@ export namespace ConfigArraySymbol {
let finalizeConfig: symbol;
let preprocessConfig: symbol;
}
import type * as $eslintobjectschema from "@eslint/object-schema";
import type * as $typests from "./types.ts";
import minimatch from 'minimatch';
import { ObjectSchema } from '@eslint/object-schema';

View File

@@ -15,9 +15,8 @@ export { ObjectSchema } from '@eslint/object-schema';
// Types
//------------------------------------------------------------------------------
/** @import * as $eslintobjectschema from "@eslint/object-schema"; */
/** @typedef {$eslintobjectschema.PropertyDefinition} PropertyDefinition */
/** @typedef {$eslintobjectschema.ObjectDefinition} ObjectDefinition */
/** @typedef {import("@eslint/object-schema").PropertyDefinition} PropertyDefinition */
/** @typedef {import("@eslint/object-schema").ObjectDefinition} ObjectDefinition */
//------------------------------------------------------------------------------
// Helpers
@@ -181,12 +180,10 @@ const filesAndIgnoresSchema = Object.freeze({
// Types
//------------------------------------------------------------------------------
/** @import * as $typests from "./types.ts"; */
/** @typedef {$typests.ConfigObject} ConfigObject */
/** @import * as $minimatch from "minimatch"; */
/** @typedef {$minimatch.IMinimatchStatic} IMinimatchStatic */
/** @typedef {$minimatch.IMinimatch} IMinimatch */
/** @import * as PathImpl from "@jsr/std__path" */
/** @typedef {import("./types.ts").ConfigObject} ConfigObject */
/** @typedef {import("minimatch").IMinimatchStatic} IMinimatchStatic */
/** @typedef {import("minimatch").IMinimatch} IMinimatch */
/** @typedef {import("@jsr/std__path")} PathImpl */
/*
* This is a bit of a hack to make TypeScript happy with the Rollup-created
@@ -195,7 +192,7 @@ const filesAndIgnoresSchema = Object.freeze({
* for `ObjectSchema`. To work around that, we just import the type manually
* and give it a different name to use in the JSDoc comments.
*/
/** @typedef {ObjectSchema} ObjectSchemaInstance */
/** @typedef {import("@eslint/object-schema").ObjectSchema} ObjectSchemaInstance */
//------------------------------------------------------------------------------
// Helpers
@@ -1129,8 +1126,7 @@ class ConfigArray extends Array {
* @param {Object} config The config to finalize.
* @returns {Object} The finalized config.
*/
// Cast key to `never` to prevent TypeScript from adding the signature `[x: symbol]: (config: any) => any` to the type of the class.
[/** @type {never} */ (ConfigArraySymbol.finalizeConfig)](config) {
[ConfigArraySymbol.finalizeConfig](config) {
return config;
}
@@ -1142,8 +1138,7 @@ class ConfigArray extends Array {
* @param {Object} config The config to preprocess.
* @returns {Object} The config to use in place of the argument.
*/
// Cast key to `never` to prevent TypeScript from adding the signature `[x: symbol]: (config: any) => any` to the type of the class.
[/** @type {never} */ (ConfigArraySymbol.preprocessConfig)](config) {
[ConfigArraySymbol.preprocessConfig](config) {
return config;
}

View File

@@ -1,4 +1,3 @@
// @ts-nocheck
// Copyright 2018-2025 the Deno authors. MIT license.
// Copyright the Browserify authors. MIT License.
function assertPath(path) {
@@ -1222,7 +1221,7 @@ const constants = {
"(": ")",
"[": "]"
};
const regex = /\\(.)|(^!|\*|\?|[\].+)]\?|\[[^[\\\]]+\]|\{[^{\\}]+\}|\(\?[:!=][^\\)]+\)|\([^(|]+\|[^\\)]+\))/;
const regex = /\\(.)|(^!|\*|\?|[\].+)]\?|\[[^\\\]]+\]|\{[^\\}]+\}|\(\?[:!=][^\\)]+\)|\([^|]+\|[^\\)]+\))/;
if (str === "") {
return false;
}

View File

@@ -1,4 +1,3 @@
// @ts-nocheck
// Copyright 2018-2025 the Deno authors. MIT license.
// Copyright the Browserify authors. MIT License.
function assertPath(path) {
@@ -1563,7 +1562,7 @@ const constants = {
"(": ")",
"[": "]"
};
const regex = /\\(.)|(^!|\*|\?|[\].+)]\?|\[[^[\\\]]+\]|\{[^{\\}]+\}|\(\?[:!=][^\\)]+\)|\([^(|]+\|[^\\)]+\))/;
const regex = /\\(.)|(^!|\*|\?|[\].+)]\?|\[[^\\\]]+\]|\{[^\\}]+\}|\(\?[:!=][^\\)]+\)|\([^|]+\|[^\\)]+\))/;
if (str === "") {
return false;
}