Commit 6cbbcad
authored
chore: Migrate pre-commit tooling to Lefthook and update CI/Node version (#66)
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]](diffhunk://#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519L19-L32)
[[2]](diffhunk://#diff-d2bc4bbf14eadc292d84e0ef5f7a93115c23557f533809fc80b896934291529dL1-L4)
[[3]](diffhunk://#diff-5fc3027edd7960e78082fabc0f456e83c50ce5898f24f60512ce32009df85d48L1)
* 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`.1 parent 17e6c25 commit 6cbbcad
File tree
6 files changed
+86
-217
lines changed- .github/workflows
- .husky
6 files changed
+86
-217
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
19 | | - | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | 26 | | |
34 | 27 | | |
35 | 28 | | |
| |||
41 | 34 | | |
42 | 35 | | |
43 | 36 | | |
44 | | - | |
| 37 | + | |
45 | 38 | | |
46 | 39 | | |
47 | 40 | | |
0 commit comments