test: integrate Lefthook (#727)
Some checks failed
Build / Build Action (push) Has been cancelled
Test / Test Action (macos-14) (push) Has been cancelled
Test / Test Action (ubuntu-24.04) (push) Has been cancelled
Test / Test Action (windows-2022) (push) Has been cancelled
Test / Test Action With Specified Directories (push) Has been cancelled
Test / Test Action Without Run Build (push) Has been cancelled
Test / Test Action With Additional Options (push) Has been cancelled
Test / Test Action With Custom Generator (push) Has been cancelled

* style: ignore `dist` and `README.md` in `.prettierignore`

Signed-off-by: Alfi Maulana <alfi.maulana.f@gmail.com>

* test: integrate Lefthook

Signed-off-by: Alfi Maulana <alfi.maulana.f@gmail.com>

* build: remove `build`, `format`, and `lint` scripts

Signed-off-by: Alfi Maulana <alfi.maulana.f@gmail.com>

---------

Signed-off-by: Alfi Maulana <alfi.maulana.f@gmail.com>
This commit is contained in:
Alfi Maulana
2025-06-10 13:01:57 +07:00
committed by GitHub
parent e71bbfd78e
commit bef022bb70
6 changed files with 149 additions and 6 deletions

View File

@@ -3,9 +3,6 @@
"private": true,
"type": "module",
"scripts": {
"build": "rollup -c",
"format": "prettier --write --cache . !dist !README.md",
"lint": "eslint",
"test": "vitest run"
},
"dependencies": {
@@ -19,6 +16,7 @@
"@types/node": "^22.15.30",
"@vitest/coverage-v8": "^3.1.4",
"eslint": "^9.28.0",
"lefthook": "^1.11.13",
"prettier": "^3.5.3",
"rollup": "^4.41.1",
"tslib": "^2.8.1",