Skip to content

Upgrade from v3

lintlane 4 replaces its own staged-file and commit code with the tools above.

  1. Upgrade: npm install -D lintlane@4 (or your package manager’s equivalent).
  2. Run npx lintlane init --dry-run, then npx lintlane init. Untouched 3.x hooks are upgraded; a hook you edited is left alone and reported.
  3. Run npx lintlane doctor.

Breaking changes

  • lintlane now has runtime dependencies (lint-staged, commitlint, Commitizen).
  • bin/pre-commit.mjs, commit-msg.mjs, prepare-commit-msg.mjs, pre-push-check.mjs are gone. Hooks that call them do nothing, which doctor reports as a failure. pre-commit.mjs --restore is gone too: lint-staged keeps its own backup stash.
  • lintlane commit is Commitizen. --write-message-to-file and -l are gone; --dry-run, --retry, -a, -S work as in Commitizen, -- <git args> as before.
  • check-commit: --allow-abort, --allowed-prefixes and -l are gone; set lintlane.commit.allowedPrefixes / messageLengthLimit or edit the commitlint config.
  • Commit settings retryAfterFailure is gone (use lintlane commit --retry). Custom types still 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 with lintlane.checks.
  • Messages are formatted by commitlint, so wording of rejections changed.