gitea push
This commit is contained in:
+25
@@ -160,6 +160,7 @@ declare class FlatConfigComposer<T extends object = ConfigWithExtends, ConfigNam
|
||||
private _operationsResolved;
|
||||
private _renames;
|
||||
private _renamesOptions;
|
||||
private _defaultIgnores;
|
||||
private _pluginsConflictsError;
|
||||
constructor(...configs: ResolvableFlatConfig<T>[]);
|
||||
/**
|
||||
@@ -168,6 +169,30 @@ declare class FlatConfigComposer<T extends object = ConfigWithExtends, ConfigNam
|
||||
* This will runs after all config items are resolved. Applies to `plugins` and `rules`.
|
||||
*/
|
||||
renamePlugins(renames: Record<string, string>, options?: RenamePluginsInConfigsOptions): this;
|
||||
/**
|
||||
* Set default `ignores` globs for configs that have rules but no explicit
|
||||
* scoping (`files` / `ignores` / `language`).
|
||||
*
|
||||
* The callback receives the composer's previously-accumulated globs and
|
||||
* returns the new list, so calls compose:
|
||||
*
|
||||
* ```ts
|
||||
* composer
|
||||
* .setDefaultIgnores(() => ['**\/*.md'])
|
||||
* .setDefaultIgnores(prev => [...prev, '**\/*.json'])
|
||||
* ```
|
||||
*
|
||||
* Useful when mixing fundamentally different languages (e.g. JS + Markdown)
|
||||
* and you want global rule configs to not "leak" into a foreign language
|
||||
* whose `SourceCode` lacks JS-only methods.
|
||||
*/
|
||||
setDefaultIgnores(fn: (globs: string[]) => string[]): this;
|
||||
/**
|
||||
* Absorb another composer's accumulated state when it is appended/prepended/etc.
|
||||
* into this one, so renames and default-ignores globs declared on the inner
|
||||
* composer apply to the parent's other configs as well.
|
||||
*/
|
||||
private _absorbComposer;
|
||||
/**
|
||||
* Append configs to the end of the current configs array.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user