If both knip and jscpd configs exist in your project, fallow merges them into a single unified config.
Options
| Flag | Description |
|---|---|
--toml | Output as fallow.toml (mutually exclusive with --jsonc) |
--jsonc | Write to .fallowrc.jsonc instead of .fallowrc.json. The generated content is the same JSONC (with // comments) either way; the .jsonc extension lets editors auto-detect JSON-with-comments syntax highlighting and silences linters that flag comments in .json |
--dry-run | Preview the generated config without writing |
--from <PATH> | Path to the config file to migrate |
What it detects
Fallow auto-detects:knip.json,knip.jsonc,.knip.json,.knip.jsonc,knip.ts,knip.config.tsknipfield inpackage.json
TypeScript config files (
knip.ts, knip.config.ts) are detected but cannot be parsed. Convert to knip.json first, then re-run migrate..jscpd.jsonjscpdfield inpackage.json
Examples
See also
Migrating from knip
Detailed comparison and migration guide from knip.
Migrating from jscpd
Detailed comparison and migration guide from jscpd.