UNPKG

eslint-doc-generator

Version:

Automatic documentation generator for ESLint plugins and rules.

16 lines (15 loc) 557 B
import type { ResolvedGenerateOptions } from './options.js'; import type { ConfigsToRules, GenerateOptions, Plugin } from './types.js'; /** * Context about the current invocation of the program, like what end-of-line * character to use. */ export interface Context { configsToRules: ConfigsToRules; endOfLine: string; options: ResolvedGenerateOptions; path: string; plugin: Plugin; pluginPrefix: string; } export declare function getContext(path: string, userOptions?: GenerateOptions, useMockPlugin?: boolean): Promise<Context>;