@moth-tools/arch-lens-rules
v0.1.0-beta.4
Published
Built-in rules and rule type definitions for Arch-Lens.
Maintainers
Readme
@moth-tools/arch-lens-rules
Built-in rules and the rule authoring contract for Arch-Lens.
This package owns the core types plugin and rule authors program against: ArchLensRule,
RuleContext (with graph, projectGraph, owners, options), RuleViolation,
ArchitectureGraph, and Ownership.
import { loadBuiltInRules, type ArchLensRule } from '@moth-tools/arch-lens-rules';
const rules = loadBuiltInRules(); // the default built-in rule setBuilt-in rule ids include: structure/required-feature-index, structure/required-files,
structure/filename-case, structure/no-loose-files, dependency/no-cross-feature-import,
dependency/no-cross-layer, dependency/no-circular, dependency/allow-list.
See the project README. MIT licensed.
