12 lines
477 B
JavaScript
12 lines
477 B
JavaScript
// ponytail: shim for eslint-plugin-import-x@4.17.1, which still imports the
|
|
// makeRe export removed in minimatch 11. Its only caller (no-internal-modules)
|
|
// uses the result via .test(), so a matcher object is enough. Delete this
|
|
// package and the override once import-x supports minimatch 11.
|
|
import { minimatch } from "minimatch-11";
|
|
|
|
export * from "minimatch-11";
|
|
|
|
export const makeRe = (pattern, options = {}) => ({
|
|
test: path => minimatch(path, pattern, options),
|
|
});
|