Reference

Linting

Rule catalog for @routecraft/eslint-plugin-routecraft.

Rules

RuleDefaultDescriptionAutofix
require-named-routeerrorEvery craft() chain must call .id(<non-empty string>) before .from()No
batch-before-fromwarn.batch() must appear before .from() -- using it after has no effect on the current routeNo
single-to-per-routewarnEach craft() chain should have at most one .to(); extra outputs belong in .tap()No
capability-boundariesoff (opt-in)From outside a capability folder, import only its public-surface route.ts, never its internalsNo

Presets

PresetDescription
routecraftPlugin.configs.recommendedThe convention rules at their default levels
routecraftPlugin.configs.allThe convention rules as errors

capability-boundaries is not in either preset. It encodes a specific repository layout (capabilities/<domain>/<capability>/route.ts), so it is opt-in only and must be enabled explicitly. See Capability boundaries.


Linting

Install, configure, and customize rule severity.

Previous
Plugins