Migrate your existing knip, jscpd, or stylelint configuration to fallow. The migrate command reads your current config, translates it to fallow's format, and writes a new config file.
If more than one source config exists in your project, fallow merges them into a single config.
fallow migrate
| 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 |
Without --jsonc or --toml, fallow auto-mirrors the source extension: a knip.jsonc migration writes .fallowrc.jsonc, a knip.json migration writes .fallowrc.json. The fallow config parser accepts comments in both extensions.
Fallow auto-detects:
knip.json, knip.jsonc, .knip.json, .knip.jsonc, knip.ts, knip.config.tsknip field in package.jsonTypeScript config files (knip.ts, knip.config.ts) are detected but cannot be parsed. Convert to knip.json first, then re-run migrate.
.jscpd.jsonjscpd field in package.json# Detect config files and migrate
fallow migrate
# Preview without writing
fallow migrate --dry-runWarnings are shown for any config fields that can't be migrated automatically.