import { Component, IgnoreFile, Project } from "projen"; import { TypeScriptProjectOptions } from "projen/lib/typescript"; import { DeepRequired } from "../util/deep-required"; import { Dynamic } from "../util/dynamic"; /** * option to enable or disable ignore in eslint */ export declare type EslintIgnoreOptions = { /** * enable or disable creating an eslint ignore file * * @default true */ eslintIgnore?: boolean; }; /** * adds an .eslintignore file populated with the project's generated files */ export declare class EslintIgnore extends Component { static defaultProjectOptions: Required>; static defaultOptions: Dynamic, Project>; options: DeepRequired; ignoreFile?: IgnoreFile; /** * adds ignore to eslint if neither eslint nor eslintIgnore are disabled * * @param project the project to add to * @param options - see `EslintIgnoreOptions` */ constructor(project: Project, options?: Dynamic); /** * adds the project's generated files to the .eslintignore file */ synthesize(): void; }