@eslint/config-array
Advanced tools
| /** | ||
| * @fileoverview Types for the config-array package. | ||
| * @author Nicholas C. Zakas | ||
| */ | ||
| export interface ConfigObject { | ||
| /** | ||
| * The base path for files and ignores. | ||
| */ | ||
| basePath?: string; | ||
| /** | ||
| * The files to include. | ||
| */ | ||
| files?: string[]; | ||
| /** | ||
| * The files to exclude. | ||
| */ | ||
| ignores?: string[]; | ||
| /** | ||
| * The name of the config object. | ||
| */ | ||
| name?: string; | ||
| // may also have any number of other properties | ||
| [key: string]: unknown; | ||
| } |
+14
-9
@@ -38,4 +38,5 @@ 'use strict'; | ||
| /** @typedef {import("@eslint/object-schema").PropertyDefinition} PropertyDefinition */ | ||
| /** @typedef {import("@eslint/object-schema").ObjectDefinition} ObjectDefinition */ | ||
| /** @import * as $eslintobjectschema from "@eslint/object-schema"; */ | ||
| /** @typedef {$eslintobjectschema.PropertyDefinition} PropertyDefinition */ | ||
| /** @typedef {$eslintobjectschema.ObjectDefinition} ObjectDefinition */ | ||
@@ -204,6 +205,8 @@ //------------------------------------------------------------------------------ | ||
| /** @typedef {import("./types.ts").ConfigObject} ConfigObject */ | ||
| /** @typedef {import("minimatch").IMinimatchStatic} IMinimatchStatic */ | ||
| /** @typedef {import("minimatch").IMinimatch} IMinimatch */ | ||
| /** @typedef {import("@jsr/std__path")} PathImpl */ | ||
| /** @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" */ | ||
@@ -217,3 +220,3 @@ /* | ||
| */ | ||
| /** @typedef {import("@eslint/object-schema").ObjectSchema} ObjectSchemaInstance */ | ||
| /** @typedef {ObjectSchema} ObjectSchemaInstance */ | ||
@@ -1152,3 +1155,4 @@ //------------------------------------------------------------------------------ | ||
| */ | ||
| [ConfigArraySymbol.finalizeConfig](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) { | ||
| return config; | ||
@@ -1165,3 +1169,4 @@ } | ||
| */ | ||
| [ConfigArraySymbol.preprocessConfig](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.preprocessConfig)](config) { | ||
| return config; | ||
@@ -1168,0 +1173,0 @@ } |
+10
-8
| export { ObjectSchema } from "@eslint/object-schema"; | ||
| export type PropertyDefinition = import("@eslint/object-schema").PropertyDefinition; | ||
| export type ObjectDefinition = import("@eslint/object-schema").ObjectDefinition; | ||
| export type ConfigObject = import("./types.cts").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; | ||
| 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; | ||
| /** | ||
@@ -14,3 +13,2 @@ * Represents an array of config objects and provides method for working with | ||
| export class ConfigArray extends Array<any> { | ||
| [x: symbol]: (config: any) => any; | ||
| /** | ||
@@ -145,1 +143,5 @@ * Creates a new instance of ConfigArray. | ||
| } | ||
| import type * as $eslintobjectschema from "@eslint/object-schema"; | ||
| import type * as $typests from "./types.cts"; | ||
| import minimatch from 'minimatch'; | ||
| import { ObjectSchema } from '@eslint/object-schema'; |
@@ -0,1 +1,2 @@ | ||
| // @ts-nocheck | ||
| 'use strict'; | ||
@@ -1226,3 +1227,3 @@ | ||
| }; | ||
| const regex = /\\(.)|(^!|\*|\?|[\].+)]\?|\[[^\\\]]+\]|\{[^\\}]+\}|\(\?[:!=][^\\)]+\)|\([^|]+\|[^\\)]+\))/; | ||
| const regex = /\\(.)|(^!|\*|\?|[\].+)]\?|\[[^[\\\]]+\]|\{[^{\\}]+\}|\(\?[:!=][^\\)]+\)|\([^(|]+\|[^\\)]+\))/; | ||
| if (str === "") { | ||
@@ -1229,0 +1230,0 @@ return false; |
@@ -0,1 +1,2 @@ | ||
| // @ts-nocheck | ||
| 'use strict'; | ||
@@ -1567,3 +1568,3 @@ | ||
| }; | ||
| const regex = /\\(.)|(^!|\*|\?|[\].+)]\?|\[[^\\\]]+\]|\{[^\\}]+\}|\(\?[:!=][^\\)]+\)|\([^|]+\|[^\\)]+\))/; | ||
| const regex = /\\(.)|(^!|\*|\?|[\].+)]\?|\[[^[\\\]]+\]|\{[^{\\}]+\}|\(\?[:!=][^\\)]+\)|\([^(|]+\|[^\\)]+\))/; | ||
| if (str === "") { | ||
@@ -1570,0 +1571,0 @@ return false; |
+10
-8
| export { ObjectSchema } from "@eslint/object-schema"; | ||
| 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; | ||
| 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; | ||
| /** | ||
@@ -14,3 +13,2 @@ * Represents an array of config objects and provides method for working with | ||
| export class ConfigArray extends Array<any> { | ||
| [x: symbol]: (config: any) => any; | ||
| /** | ||
@@ -145,1 +143,5 @@ * Creates a new instance of ConfigArray. | ||
| } | ||
| 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'; |
+14
-9
@@ -18,4 +18,5 @@ // @ts-self-types="./index.d.ts" | ||
| /** @typedef {import("@eslint/object-schema").PropertyDefinition} PropertyDefinition */ | ||
| /** @typedef {import("@eslint/object-schema").ObjectDefinition} ObjectDefinition */ | ||
| /** @import * as $eslintobjectschema from "@eslint/object-schema"; */ | ||
| /** @typedef {$eslintobjectschema.PropertyDefinition} PropertyDefinition */ | ||
| /** @typedef {$eslintobjectschema.ObjectDefinition} ObjectDefinition */ | ||
@@ -184,6 +185,8 @@ //------------------------------------------------------------------------------ | ||
| /** @typedef {import("./types.ts").ConfigObject} ConfigObject */ | ||
| /** @typedef {import("minimatch").IMinimatchStatic} IMinimatchStatic */ | ||
| /** @typedef {import("minimatch").IMinimatch} IMinimatch */ | ||
| /** @typedef {import("@jsr/std__path")} PathImpl */ | ||
| /** @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" */ | ||
@@ -197,3 +200,3 @@ /* | ||
| */ | ||
| /** @typedef {import("@eslint/object-schema").ObjectSchema} ObjectSchemaInstance */ | ||
| /** @typedef {ObjectSchema} ObjectSchemaInstance */ | ||
@@ -1132,3 +1135,4 @@ //------------------------------------------------------------------------------ | ||
| */ | ||
| [ConfigArraySymbol.finalizeConfig](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) { | ||
| return config; | ||
@@ -1145,3 +1149,4 @@ } | ||
| */ | ||
| [ConfigArraySymbol.preprocessConfig](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.preprocessConfig)](config) { | ||
| return config; | ||
@@ -1148,0 +1153,0 @@ } |
@@ -0,1 +1,2 @@ | ||
| // @ts-nocheck | ||
| // Copyright 2018-2025 the Deno authors. MIT license. | ||
@@ -1224,3 +1225,3 @@ // Copyright the Browserify authors. MIT License. | ||
| }; | ||
| const regex = /\\(.)|(^!|\*|\?|[\].+)]\?|\[[^\\\]]+\]|\{[^\\}]+\}|\(\?[:!=][^\\)]+\)|\([^|]+\|[^\\)]+\))/; | ||
| const regex = /\\(.)|(^!|\*|\?|[\].+)]\?|\[[^[\\\]]+\]|\{[^{\\}]+\}|\(\?[:!=][^\\)]+\)|\([^(|]+\|[^\\)]+\))/; | ||
| if (str === "") { | ||
@@ -1227,0 +1228,0 @@ return false; |
@@ -0,1 +1,2 @@ | ||
| // @ts-nocheck | ||
| // Copyright 2018-2025 the Deno authors. MIT license. | ||
@@ -1565,3 +1566,3 @@ // Copyright the Browserify authors. MIT License. | ||
| }; | ||
| const regex = /\\(.)|(^!|\*|\?|[\].+)]\?|\[[^\\\]]+\]|\{[^\\}]+\}|\(\?[:!=][^\\)]+\)|\([^|]+\|[^\\)]+\))/; | ||
| const regex = /\\(.)|(^!|\*|\?|[\].+)]\?|\[[^[\\\]]+\]|\{[^{\\}]+\}|\(\?[:!=][^\\)]+\)|\([^(|]+\|[^\\)]+\))/; | ||
| if (str === "") { | ||
@@ -1568,0 +1569,0 @@ return false; |
+6
-5
| { | ||
| "name": "@eslint/config-array", | ||
| "version": "0.21.0", | ||
| "version": "0.21.1", | ||
| "description": "General purpose glob-based configuration matching.", | ||
@@ -39,6 +39,7 @@ "author": "Nicholas C. Zakas", | ||
| "build": "rollup -c && npm run build:dedupe-types && tsc -p tsconfig.esm.json && npm run build:cts && npm run build:std__path", | ||
| "pretest": "npm run build", | ||
| "test": "mocha \"tests/**/*.test.js\"", | ||
| "test:coverage": "c8 npm test", | ||
| "test:jsr": "npx jsr@latest publish --dry-run", | ||
| "pretest": "npm run build", | ||
| "test": "mocha tests/", | ||
| "test:coverage": "c8 npm test" | ||
| "test:types": "tsc -p tests/types/tsconfig.json" | ||
| }, | ||
@@ -52,3 +53,3 @@ "keywords": [ | ||
| "dependencies": { | ||
| "@eslint/object-schema": "^2.1.6", | ||
| "@eslint/object-schema": "^2.1.7", | ||
| "debug": "^4.3.1", | ||
@@ -55,0 +56,0 @@ "minimatch": "^3.1.2" |
+2
-3
@@ -360,8 +360,7 @@ # Config Array | ||
| <h3>Diamond Sponsors</h3> | ||
| <p><a href="https://www.ag-grid.com/"><img src="https://images.opencollective.com/ag-grid/bec0580/logo.png" alt="AG Grid" height="128"></a></p><h3>Platinum Sponsors</h3> | ||
| <h3>Platinum Sponsors</h3> | ||
| <p><a href="https://automattic.com"><img src="https://images.opencollective.com/automattic/d0ef3e1/logo.png" alt="Automattic" height="128"></a> <a href="https://www.airbnb.com/"><img src="https://images.opencollective.com/airbnb/d327d66/logo.png" alt="Airbnb" height="128"></a></p><h3>Gold Sponsors</h3> | ||
| <p><a href="https://qlty.sh/"><img src="https://images.opencollective.com/qltysh/33d157d/logo.png" alt="Qlty Software" height="96"></a> <a href="https://trunk.io/"><img src="https://images.opencollective.com/trunkio/fb92d60/avatar.png" alt="trunk.io" height="96"></a> <a href="https://shopify.engineering/"><img src="https://avatars.githubusercontent.com/u/8085" alt="Shopify" height="96"></a></p><h3>Silver Sponsors</h3> | ||
| <p><a href="https://vite.dev/"><img src="https://images.opencollective.com/vite/e6d15e1/logo.png" alt="Vite" height="64"></a> <a href="https://liftoff.io/"><img src="https://images.opencollective.com/liftoff/5c4fa84/logo.png" alt="Liftoff" height="64"></a> <a href="https://americanexpress.io"><img src="https://avatars.githubusercontent.com/u/3853301" alt="American Express" height="64"></a> <a href="https://stackblitz.com"><img src="https://avatars.githubusercontent.com/u/28635252" alt="StackBlitz" height="64"></a></p><h3>Bronze Sponsors</h3> | ||
| <p><a href="https://sentry.io"><img src="https://github.com/getsentry.png" alt="Sentry" height="32"></a> <a href="https://syntax.fm"><img src="https://github.com/syntaxfm.png" alt="Syntax" height="32"></a> <a href="https://cybozu.co.jp/"><img src="https://images.opencollective.com/cybozu/933e46d/logo.png" alt="Cybozu" height="32"></a> <a href="https://www.crosswordsolver.org/anagram-solver/"><img src="https://images.opencollective.com/anagram-solver/2666271/logo.png" alt="Anagram Solver" height="32"></a> <a href="https://icons8.com/"><img src="https://images.opencollective.com/icons8/7fa1641/logo.png" alt="Icons8" height="32"></a> <a href="https://discord.com"><img src="https://images.opencollective.com/discordapp/f9645d9/logo.png" alt="Discord" height="32"></a> <a href="https://www.gitbook.com"><img src="https://avatars.githubusercontent.com/u/7111340" alt="GitBook" height="32"></a> <a href="https://nolebase.ayaka.io"><img src="https://avatars.githubusercontent.com/u/11081491" alt="Neko" height="32"></a> <a href="https://nx.dev"><img src="https://avatars.githubusercontent.com/u/23692104" alt="Nx" height="32"></a> <a href="https://opensource.mercedes-benz.com/"><img src="https://avatars.githubusercontent.com/u/34240465" alt="Mercedes-Benz Group" height="32"></a> <a href="https://herocoders.com"><img src="https://avatars.githubusercontent.com/u/37549774" alt="HeroCoders" height="32"></a> <a href="https://www.lambdatest.com"><img src="https://avatars.githubusercontent.com/u/171592363" alt="LambdaTest" height="32"></a></p> | ||
| <p><a href="https://syntax.fm"><img src="https://github.com/syntaxfm.png" alt="Syntax" height="32"></a> <a href="https://cybozu.co.jp/"><img src="https://images.opencollective.com/cybozu/933e46d/logo.png" alt="Cybozu" height="32"></a> <a href="https://sentry.io"><img src="https://github.com/getsentry.png" alt="Sentry" height="32"></a> <a href="https://discord.com"><img src="https://images.opencollective.com/discordapp/f9645d9/logo.png" alt="Discord" height="32"></a> <a href="https://www.gitbook.com"><img src="https://avatars.githubusercontent.com/u/7111340" alt="GitBook" height="32"></a> <a href="https://nx.dev"><img src="https://avatars.githubusercontent.com/u/23692104" alt="Nx" height="32"></a> <a href="https://opensource.mercedes-benz.com/"><img src="https://avatars.githubusercontent.com/u/34240465" alt="Mercedes-Benz Group" height="32"></a> <a href="https://herocoders.com"><img src="https://avatars.githubusercontent.com/u/37549774" alt="HeroCoders" height="32"></a> <a href="https://www.lambdatest.com"><img src="https://avatars.githubusercontent.com/u/171592363" alt="LambdaTest" height="32"></a></p> | ||
| <h3>Technology Sponsors</h3> | ||
@@ -368,0 +367,0 @@ Technology sponsors allow us to use their products and services for free as part of a contribution to the open source ecosystem and our work. |
| /** | ||
| * @fileoverview Types for the config-array package. | ||
| * @author Nicholas C. Zakas | ||
| */ | ||
| export interface ConfigObject { | ||
| /** | ||
| * The base path for files and ignores. | ||
| */ | ||
| basePath?: string; | ||
| /** | ||
| * The files to include. | ||
| */ | ||
| files?: string[]; | ||
| /** | ||
| * The files to exclude. | ||
| */ | ||
| ignores?: string[]; | ||
| /** | ||
| * The name of the config object. | ||
| */ | ||
| name?: string; | ||
| // may also have any number of other properties | ||
| [key: string]: unknown; | ||
| } |
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
326041
0.11%8666
-0.09%369
-0.27%Updated