@effective/eslint-cfg
Version:
A library for generating ESLint Flat Configs with React and TypeScript support.
16 lines (15 loc) • 633 B
TypeScript
import { Linter } from "eslint";
export interface Options {
strict?: boolean;
style?: boolean;
node?: boolean;
react?: boolean;
disabled?: boolean;
fast?: boolean;
biome?: boolean;
}
export declare const flags: readonly ["strict", "style", "node", "react", "disabled", "fast", "biome"];
export declare function optionsToNumber(opts: Options): number;
export declare function numberToShortHash(num: number): string;
export type ConfigName = "base" | "test" | "e2e" | "storybook";
export declare function getConfigObject(config: Linter.Config[], objectName?: ConfigName): Linter.Config<Linter.RulesRecord>;