UNPKG

eslint-rule-benchmark

Version:

Benchmark ESLint rules with detailed performance metrics for CI and plugin development

20 lines (19 loc) 818 B
/** * Initializes and runs the command-line interface for the ESLint Rule Benchmark * tool. * * This function sets up the CLI using 'cac', defining two main commands: * * - 'run': Executes benchmarks based on a benchmark configuration file (see * `UserBenchmarkConfig`). Allows overriding some reporter options via CLI * flags. * - 'run-single': Executes a benchmark for a single ESLint rule. All parameters * (rule path, source code path, benchmark settings) are provided via CLI * flags. This command internally constructs a `UserBenchmarkConfig` object * with one test specification, which in turn contains a single test case * derived from the CLI options. * * It parses command-line arguments and delegates to the appropriate command * actions. */ export declare function run(): void