Skip to content
This repository was archived by the owner on Nov 19, 2025. It is now read-only.

Commit e1d5c61

Browse files
committed
feat: add lefthook
1 parent 4abe43b commit e1d5c61

File tree

3 files changed

+107
-0
lines changed

3 files changed

+107
-0
lines changed

lefthook.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pre-push:
2+
parallel: true
3+
jobs:
4+
- name: packages audit
5+
run: pnpm audit

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"devDependencies": {
33
"editorconfig-checker": "6.0.1",
4+
"lefthook": "1.11.3",
45
"syncpack": "13.0.2"
56
},
67
"engines": {
@@ -10,6 +11,7 @@
1011
"packageManager": "pnpm@10.6.1+sha512.40ee09af407fa9fbb5fbfb8e1cb40fbb74c0af0c3e10e9224d7b53c7658528615b2c92450e74cfad91e3a2dcafe3ce4050d80bda71d757756d2ce2b66213e9a3",
1112
"scripts": {
1213
"preinstall": "npx only-allow pnpm",
14+
"prepare": "lefthook install",
1315
"syncpack-fix-mismatches": "syncpack fix-mismatches",
1416
"syncpack-format": "syncpack format"
1517
}

pnpm-lock.yaml

Lines changed: 100 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)