@perfective/eslint-config
Version:
ESLint shareable rules configuration
14 lines (13 loc) • 338 B
TypeScript
import { Linter } from 'eslint';
/**
* An ESLint flat config or a function that returns one.
*
* @since v0.31.0
*/
export type LinterConfig = Linter.Config | (() => Linter.Config);
/**
* A function to instantiate ESLint flat config.
*
* @since v0.31.0
*/
export declare function linterConfig(config: LinterConfig): Linter.Config;