UNPKG

bun-git-hooks

Version:

A modern, zero dependency tool for managing git hooks in Bun projects.

20 lines (17 loc) 498 B
export declare type StagedLintTask = string | string[] export interface StagedLintConfig { [pattern: string]: StagedLintTask } export type GitHooksConfig = { [K in typeof VALID_GIT_HOOKS[number]]?: string | { 'stagedLint'?: StagedLintConfig 'staged-lint'?: StagedLintConfig } } & { 'preserveUnused'?: boolean | typeof VALID_GIT_HOOKS[number][] 'verbose'?: boolean 'staged-lint'?: StagedLintConfig } export interface SetHooksFromConfigOptions { configFile?: GitHooksConfig }