Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions overrides/minimatch/index.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
"use strict";

// CJS entry: ESLint loads minimatch with require(), and the v3 callers need a function export.
/* eslint-disable @typescript-eslint/no-require-imports */
const real = require("minimatch-11");

function minimatch(path, pattern, options) {
return real.minimatch(path, pattern, options);
}

Object.assign(minimatch, real, {
minimatch: real.minimatch,
Minimatch: real.Minimatch,
});

module.exports = minimatch;
14 changes: 14 additions & 0 deletions overrides/minimatch/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
export {
GLOBSTAR,
Minimatch,
braceExpand,
defaults,
escape,
filter,
match,
minimatch,
sep,
unescape,
} from "minimatch-11";

export { minimatch as default } from "minimatch-11";
14 changes: 14 additions & 0 deletions overrides/minimatch/index.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
export {
GLOBSTAR,
Minimatch,
braceExpand,
defaults,
escape,
filter,
match,
minimatch,
sep,
unescape,
} from "minimatch-11";

export { minimatch as default } from "minimatch-11";
24 changes: 24 additions & 0 deletions overrides/minimatch/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "minimatch",
"version": "11.0.3",
"private": true,
"description": "Callable CommonJS facade for minimatch 11. ESLint 9 plugins still invoke the v3 default export.",
"main": "./index.cjs",
"types": "./index.d.ts",
"exports": {
".": {
"import": {
"types": "./index.d.ts",
"default": "./index.mjs"
},
"require": {
"types": "./index.d.ts",
"default": "./index.cjs"
}
},
"./package.json": "./package.json"
},
"dependencies": {
"minimatch-11": "npm:minimatch@11.0.3"
}
}
Loading
Loading