Skip to content

@kekkai/blueprint / runImpact

Function: runImpact()

runImpact(root, options?): Promise<{ impacts: RuleImpact[]; total: number; }>

Defined in: impact/impact.ts:85

Run blueprint impact in root. Read-only; requires an authored config. Compiles the blueprint with emitLint, lints the layer files with only that config through the project's own ESLint, and reports what wiring would flag today — per rule, with the heaviest files named.

Parameters

root

string

options?

ImpactOptions = {}

Returns

Promise<{ impacts: RuleImpact[]; total: number; }>

Example

ts
const { impacts, total } = await runImpact(process.cwd());