Migrating from Pint
Convert your Pint config, compare the results, and update scripts.
Start from a clean Git working tree. Keep Pint installed until you have compared the results.
Convert the config
pun migrate --from pint --dry-run
pun migrate --from pintMigration skips unsupported rules and warns about each one. Review the warnings.
Compare the results
vendor/bin/pint
pun check --fix
vendor/bin/pint --test
pun check
git diffInvestigate any difference before you switch. pun check can also report lint and analysis findings that Pint does not check.
Update scripts and CI
{
"scripts": {
"lint": "pun check --fix",
"test:lint": "pun check"
}
}In CI, replace vendor/bin/pint --test with pun check. See the CI guide.
What moved where
Layout rules become format rules. Risky and code-deleting rules become lint rules, so pun format alone does not apply your full Pint config. The Pint mapping lists every fixer and its Pun rule.
Migration keeps pint.json and the Pint dependency. To roll back, restore your scripts and CI commands, and review any rewritten ignore comments.