Reference
Linting
Rule catalog for @routecraft/eslint-plugin-routecraft.
Rules
| Rule | Default | Description | Autofix |
|---|---|---|---|
require-named-route | error | Every craft() chain must call .id(<non-empty string>) before .from() | No |
batch-before-from | warn | .batch() must appear before .from() -- using it after has no effect on the current route | No |
single-to-per-route | warn | Each craft() chain should have at most one .to(); extra outputs belong in .tap() | No |
Presets
| Preset | Description |
|---|---|
routecraftPlugin.configs.recommended | All rules at their default levels |
routecraftPlugin.configs.all | All rules as errors |
Related
Linting
Install, configure, and customize rule severity.