import { Component } from "projen"; import { TypeScriptProject, TypeScriptProjectOptions } from "projen/lib/typescript"; import { DeepRequired } from "../util/deep-required"; import { Dynamic } from "../util/dynamic"; /** * option to enable or disable unicorn in eslint */ export declare type EslintUnicornOptions = { /** * enable or disable unicorn in eslint * * @default true */ eslintUnicorn?: boolean; }; /** * adds unicorn to eslint if neither eslint nor eslintUnicorn are disabled */ export declare class EslintUnicorn extends Component { static defaultProjectOptions: Required>; static defaultOptions: Dynamic, TypeScriptProject>; options: DeepRequired; /** * adds unicorn to eslint if neither eslint nor eslintUnicorn are disabled * * @param project the project to add to * @param options - see `EslintUnicornOptions` */ constructor(project: TypeScriptProject, options?: Dynamic); }