Upgrade from v3
lintlane 4 replaces its own staged-file and commit code with the tools above.
- Upgrade:
npm install -D lintlane@4(or your package manager’s equivalent). - Run
npx lintlane init --dry-run, thennpx lintlane init. Untouched 3.x hooks are upgraded; a hook you edited is left alone and reported. - Run
npx lintlane doctor.
Breaking changes
lintlanenow has runtime dependencies (lint-staged, commitlint, Commitizen).bin/pre-commit.mjs,commit-msg.mjs,prepare-commit-msg.mjs,pre-push-check.mjsare gone. Hooks that call them do nothing, whichdoctorreports as a failure.pre-commit.mjs --restoreis gone too: lint-staged keeps its own backup stash.lintlane commitis Commitizen.--write-message-to-fileand-lare gone;--dry-run,--retry,-a,-Swork as in Commitizen,-- <git args>as before.check-commit:--allow-abort,--allowed-prefixesand-lare gone; setlintlane.commit.allowedPrefixes/messageLengthLimitor edit the commitlint config.- Commit settings
retryAfterFailureis gone (uselintlane commit --retry). Customtypesstill apply to commitlint but no longer to the prompt; configure the prompt through Commitizen. - The CI workflow now runs every detected check (typecheck, tests, build), not
only Biome, and the commit check calls
lintlane check-commit. Existing workflows are not rewritten; turn checks off withlintlane.checks. - Messages are formatted by commitlint, so wording of rejections changed.