Bump
This commit is contained in:
29
dist/config/index.d.ts
vendored
29
dist/config/index.d.ts
vendored
@ -7,6 +7,21 @@ export type Middleware =
|
||||
| (() => Promise<MiddlewareResult>)
|
||||
| (() => Promise<{ default: MiddlewareResult }>);
|
||||
|
||||
export interface NormalizedExtendConfigOptions {
|
||||
auto?: boolean;
|
||||
middlewares?: Middleware[];
|
||||
configs: FlatESLintConfig[];
|
||||
/**
|
||||
* Use `.gitignore` file to exclude files from ESLint.
|
||||
*/
|
||||
gitignore?: boolean;
|
||||
}
|
||||
|
||||
export type ExtendConfigOptions =
|
||||
| FlatESLintConfig
|
||||
| FlatESLintConfig[]
|
||||
| NormalizedExtendConfigOptions;
|
||||
|
||||
/**
|
||||
* Returns a ESLint config object.
|
||||
*
|
||||
@ -28,19 +43,7 @@ export type Middleware =
|
||||
*
|
||||
* @returns ESLint configuration object.
|
||||
*/
|
||||
export function extendConfig(
|
||||
options:
|
||||
| FlatESLintConfig[]
|
||||
| {
|
||||
auto?: boolean;
|
||||
middlewares?: Middleware[];
|
||||
configs: FlatESLintConfig[];
|
||||
/**
|
||||
* Use `.gitignore` file to exclude files from ESLint.
|
||||
*/
|
||||
gitignore?: boolean;
|
||||
},
|
||||
): Promise<FlatESLintConfig[]>;
|
||||
export function extendConfig(options?: ExtendConfigOptions): Promise<FlatESLintConfig[]>;
|
||||
|
||||
export const error = 'error';
|
||||
export const warn = 'warn';
|
||||
|
Reference in New Issue
Block a user