UNPKG

declapract

Version:

A tool to declaratively define best practices, maintainable evolve them, and scalably enforce them.

18 lines (17 loc) 730 B
import type { PracticeDeclaration } from '../../../domain.objects'; import type { FilePracticeEvaluation } from '../../../domain.objects/FilePracticeEvaluation'; import type { ProjectCheckContext } from '../../../domain.objects/ProjectCheckContext'; /** * given: * - practice declarations * - directory to project * * does: * - check that the project conforms to the practices specified * * note: not checking against use case specifically because we may be asked to apply multiple use cases to the same project */ export declare const evaluateProjectAgainstPracticeDeclarations: ({ practices, project, }: { practices: PracticeDeclaration[]; project: ProjectCheckContext; }) => Promise<FilePracticeEvaluation[]>;