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

View File

@@ -9,7 +9,8 @@
"prettier": "prettier -c '**/*.{js,ts}'",
"prettier:fix": "prettier -w '**/*.{js,ts}'",
"lint": "eslint . --ext .ts",
"lint:fix": "eslint . --ext .ts --fix",
"lint:fix": "pnpm run lint:ts:fix",
"lint:ts:fix": "eslint . --ext .ts --fix",
"test": "node --experimental-vm-modules node_modules/jest/bin/jest --bail --detectOpenHandles --forceExit",
"clean": "rimraf node_modules dist coverage",
"postpack": "shx rm -f oclif.manifest.json",