🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

eslint-flat-config-utils

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-flat-config-utils - npm Package Compare versions

Comparing version

to
0.1.0

29

dist/index.d.ts

@@ -141,5 +141,6 @@ import { Linter } from 'eslint';

*/
declare class FlatConfigPipeline<T extends object = FlatConfigItem> extends Promise<T[]> {
declare class FlatConfigPipeline<T extends object = FlatConfigItem, ConfigNames extends string = string> extends Promise<T[]> {
private _operations;
private _operationsPost;
private _operationsOverrides;
private _operationsResolved;
private _renames;

@@ -164,7 +165,7 @@ constructor();

*/
insertBefore(nameOrIndex: string | number, ...items: Awaitable<T | T[]>[]): this;
insertBefore(nameOrIndex: ConfigNames | string | number, ...items: Awaitable<T | T[]>[]): this;
/**
* Insert configs after a specific config.
*/
insertAfter(nameOrIndex: string | number, ...items: Awaitable<T | T[]>[]): this;
insertAfter(nameOrIndex: ConfigNames | string | number, ...items: Awaitable<T | T[]>[]): this;
/**

@@ -175,3 +176,3 @@ * Provide overrides to a specific config.

*/
override(nameOrIndex: string | number, config: T | ((config: T) => Awaitable<T>)): this;
override(nameOrIndex: ConfigNames | string | number, config: T | ((config: T) => Awaitable<T>)): this;
/**

@@ -182,4 +183,20 @@ * Provide overrides to multiple configs as an object map.

*/
overrides(overrides: Record<string | number, T | ((config: T) => Awaitable<T>)>): this;
overrides(overrides: Record<ConfigNames | string | number, T | ((config: T) => Awaitable<T>)>): this;
/**
* Remove a specific config by name or index.
*/
remove(nameOrIndex: ConfigNames | string | number): this;
/**
* Replace a specific config by name or index.
*
* The original config will be removed and replaced with the new one.
*/
replace(nameOrIndex: ConfigNames | string | number, ...items: Awaitable<T | T[]>[]): this;
/**
* Hook when all configs are resolved but before returning the final configs.
*
* You can modify the final configs here.
*/
onResolved(callback: (configs: T[]) => Awaitable<T[] | void>): this;
/**
* Resolve the pipeline and return the final configs.

@@ -186,0 +203,0 @@ *

{
"name": "eslint-flat-config-utils",
"type": "module",
"version": "0.0.4",
"version": "0.1.0",
"packageManager": "pnpm@8.15.5",

@@ -6,0 +6,0 @@ "description": "Utils for managing and manipulating ESLint flat config arrays",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet