Skip to content
Esc
↑↓navigate↵open⌘Jpreview
On this page

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 pint

Migration 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 diff

Investigate 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.

Last updated on

Was this page helpful?