Skip to content

chore: Migrate pre-commit tooling to Lefthook and update CI/Node version#66

Merged
monkey0722 merged 4 commits intomainfrom
upgrade-settings
Dec 29, 2025
Merged

chore: Migrate pre-commit tooling to Lefthook and update CI/Node version#66
monkey0722 merged 4 commits intomainfrom
upgrade-settings

Conversation

@monkey0722
Copy link
Owner

This pull request updates the CI workflow and replaces the pre-commit tooling from Husky and lint-staged to Lefthook, simplifying configuration and improving compatibility with newer Node.js versions. It also updates the minimum required Node.js version and makes some minor package metadata changes.

CI workflow and Node.js version updates:

  • Updated .github/workflows/ci.yml to use Node.js v24, and upgraded the actions for checkout, setup-node, and cache to their latest major versions for improved compatibility and performance.
  • Increased the minimum required Node.js version in package.json from 22 to 24.

Pre-commit tooling migration:

  • Removed Husky and lint-staged configuration and dependencies from package.json, .husky/pre-commit, and .husky/.gitignore. [1] [2] [3]
  • Added Lefthook configuration in lefthook.yml to run Prettier and ESLint in parallel on staged TypeScript files during pre-commit.
  • Added Lefthook as a dev dependency in package.json.

Minor metadata change:

  • Changed the package version in package.json from 1.0.0 to 0.0.1 and set "private": true.

- Removed .husky directory and its pre-commit hook script.
- Added lefthook.yml configuration for pre-commit hooks to run Prettier and ESLint in parallel.
- Updated package.json to include Lefthook as a dependency and removed Husky and lint-staged.
- Cleaned up yarn.lock by removing unused dependencies related to Husky and lint-staged.
@monkey0722 monkey0722 self-assigned this Dec 29, 2025
@monkey0722 monkey0722 merged commit 6cbbcad into main Dec 29, 2025
1 check passed
@monkey0722 monkey0722 deleted the upgrade-settings branch December 29, 2025 10:44
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