Skip to content

Replace Husky and lint-staged with Lefthook - #248

Merged
polaroidkidd merged 1 commit into
masterfrom
migrate-to-lefthook
Nov 20, 2026
Merged

polaroidkidd merged 1 commit into
masterfrom
migrate-to-lefthook

Conversation

@polaroidkidd

Copy link
Copy Markdown
Collaborator

Added

  • Add lefthook.yml with a parallel pre-commit hook that runs eslint --fix on staged *.{ts,svelte} files and prettier --write on staged *.{json,css,yaml,yml,md,svx} files, re-staging fixed files.
  • Add a patch changeset for the hook tooling migration.

Changed

  • Run lefthook install from the prepare script.
  • Update the README to point to Lefthook.
  • Bump @sveltejs/adapter-auto (specifier latest) from 8.0.1 to 9.0.0 during lockfile re-resolution.

Removed

  • Remove husky, lint-staged, the lint-staged config block, and .husky/.

Run staged-file ESLint and Prettier fixes through lefthook.yml and
re-stage fixed files, dropping two dev dependencies in the process.
Lefthook is a single fast binary with parallel jobs and built-in
staged-file globbing, so lint-staged is no longer needed.
@polaroidkidd
polaroidkidd merged commit 6b8f139 into master Nov 20, 2026
4 checks passed
@polaroidkidd
polaroidkidd deleted the migrate-to-lefthook branch November 20, 2026 10:59

This branch was successfully deployed

1 active deployment
Previews — 4e9ec4fb Deployed Nov 20, 2026 by polaroidkidd via Deploy Webapp #335
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant