UNPKG

auto-cr-cmd

Version:

Fast automated code review CLI powered by SWC-based static analysis

14 lines (13 loc) 626 B
import { RuleSeverity, type Rule } from 'auto-cr-rules'; type RuleSettingInput = RuleSeverity | 'off' | 'warn' | 'warning' | 'error' | 'optimizing' | 0 | 1 | 2 | boolean; export interface AutoCrRcConfig { rules?: Record<string, RuleSettingInput>; } export interface LoadedAutoCrRc { path?: string; rules?: Record<string, RuleSettingInput>; warnings: string[]; } export declare function loadAutoCrRc(configPath?: string): LoadedAutoCrRc; export declare function applyRuleConfig(rules: Rule[], ruleSettings: Record<string, RuleSettingInput> | undefined, onWarning: (message: string) => void): Rule[]; export {};