Feat/husky lint (#431)

* add poc husky lint script

* test commit change

* undo test change

* test change

* undo test change

* test

* test

* test

* test

* do

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* refactor to pre-commit to NodeJS script

* add logs for demo

* small refactor of pre-commit.js

* add shebang to pre-commit

* add other folders to husky script

* added postman to pre-commit

* remove test md change

* add comments for pre-commit.js

* adjust lint:fix scripts

* Update .husky/pre-commit.js

Co-authored-by: The Dark Jester <thedarkjester@users.noreply.github.com>
Signed-off-by: kyzooghost <73516204+kyzooghost@users.noreply.github.com>

---------

Signed-off-by: kyzooghost <73516204+kyzooghost@users.noreply.github.com>
Co-authored-by: The Dark Jester <thedarkjester@users.noreply.github.com>
This commit is contained in:
kyzooghost
2024-12-20 23:34:59 +11:00
committed by GitHub
parent 4a7b76c90d
commit a5119c43b0
6 changed files with 246 additions and 3 deletions

12
pnpm-lock.yaml generated
View File

@@ -26,6 +26,9 @@ importers:
eslint-plugin-prettier:
specifier: 5.1.3
version: 5.1.3(eslint-config-prettier@9.1.0(eslint@8.57.0))(eslint@8.57.0)(prettier@3.2.5)
husky:
specifier: 9.1.7
version: 9.1.7
prettier:
specifier: 3.2.5
version: 3.2.5
@@ -260,6 +263,8 @@ importers:
specifier: 17.7.2
version: 17.7.2
contracts/lib/forge-std: {}
e2e:
devDependencies:
'@jest/globals':
@@ -5861,6 +5866,11 @@ packages:
resolution: {integrity: sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==}
engines: {node: '>=16.17.0'}
husky@9.1.7:
resolution: {integrity: sha512-5gs5ytaNjBrh5Ow3zrvdUUY+0VxIuWVL4i9irt6friV+BqdCfmV11CQTWMiBYWHbXhco+J1kHfTOUkePhCDvMA==}
engines: {node: '>=18'}
hasBin: true
i18next-browser-languagedetector@7.1.0:
resolution: {integrity: sha512-cr2k7u1XJJ4HTOjM9GyOMtbOA47RtUoWRAtt52z43r3AoMs2StYKyjS3URPhzHaf+mn10hY9dZWamga5WPQjhA==}
@@ -17287,6 +17297,8 @@ snapshots:
human-signals@5.0.0: {}
husky@9.1.7: {}
i18next-browser-languagedetector@7.1.0:
dependencies:
'@babel/runtime': 7.25.7