diff --git a/packages/config-array/package.json b/packages/config-array/package.json index c5203223f..ac196a9ed 100644 --- a/packages/config-array/package.json +++ b/packages/config-array/package.json @@ -50,11 +50,10 @@ "dependencies": { "@eslint/object-schema": "^2.1.6", "debug": "^4.3.1", - "minimatch": "^3.1.2" + "minimatch": "^10.0.3" }, "devDependencies": { "@jsr/std__path": "^1.0.4", - "@types/minimatch": "^3.0.5", "rollup-plugin-copy": "^3.5.0" }, "engines": { diff --git a/packages/config-array/src/config-array.js b/packages/config-array/src/config-array.js index 075cef701..9d371d0dd 100644 --- a/packages/config-array/src/config-array.js +++ b/packages/config-array/src/config-array.js @@ -9,7 +9,7 @@ import * as posixPath from "@jsr/std__path/posix"; import * as windowsPath from "@jsr/std__path/windows"; -import minimatch from "minimatch"; +import { minimatch } from "minimatch"; import createDebug from "debug"; import { ObjectSchema } from "@eslint/object-schema"; @@ -23,8 +23,8 @@ import { filesAndIgnoresSchema } from "./files-and-ignores-schema.js"; /** @typedef {import("@eslint/object-schema").PropertyDefinition} PropertyDefinition */ /** @typedef {import("@eslint/object-schema").ObjectDefinition} ObjectDefinition */ /** @typedef {import("./types.ts").ConfigObject} ConfigObject */ -/** @typedef {import("minimatch").IMinimatchStatic} IMinimatchStatic */ -/** @typedef {import("minimatch").IMinimatch} IMinimatch */ +/** @typedef {import("minimatch").Minimatch} Minimatch */ +/** @typedef {import("minimatch").MinimatchOptions} MinimatchOptions */ /** @typedef {import("@jsr/std__path")} PathImpl */ /* @@ -45,19 +45,19 @@ const debug = createDebug("@eslint/config-array"); /** * A cache for minimatch instances. - * @type {Map} + * @type {Map} */ const minimatchCache = new Map(); /** * A cache for negated minimatch instances. - * @type {Map} + * @type {Map} */ const negatedMinimatchCache = new Map(); /** * Options to use with minimatch. - * @type {Object} + * @type {MinimatchOptions} */ const MINIMATCH_OPTIONS = { // matchBase: true,